go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/swarming/server/README.md (about)

     1  Swarming server Go code
     2  -----------------------
     3  
     4  To deploy from a local checkout:
     5  
     6  ```
     7  gae.py upload -A chromium-swarm-dev default-go
     8  ```
     9  
    10  To run locally using fake bots and tasks (but with real Datastore and real RBE):
    11  
    12  ```
    13  # Terminal 1: launch the server locally and keep it running.
    14  cd server/cmd
    15  go run main.go \
    16    -cloud-project chromium-swarm-dev \
    17    -shared-hmac-secret devsecret://aaaa \
    18    -expose-integration-mocks
    19  
    20  # Terminal 2: launch a fake bot and keep it running.
    21  cd server/testing/fakebot
    22  go run main.go -bot-id fake-bot-1 -pool "${USER}-local-test"
    23  
    24  # Terminal 3: launch a task and see it handled by the fake bot.
    25  cd server/testing/fakesubmit
    26  go run main.go -pool "${USER}-local-test"
    27  ```
    28  
    29  Note that these tests hit real RBE instance (by default `default_instance` in
    30  `chromium-swarm-dev` project), so they may theoretically interfere with other
    31  similar tests running on other machines or even with real `chromium-swarm-dev`
    32  RBE traffic. `pool` dimension can be used to namespace them.