tree: d45d5184a0bdf7f8c82b5cdd13a6c47e143ee4c0 [path history] [tgz]
  1. acls/
  2. botsrv/
  3. bq/
  4. cfg/
  5. cmd/
  6. hmactoken/
  7. internals/
  8. model/
  9. monitor/
  10. pubsub/
  11. rbe/
  12. rpcs/
  13. testing/

Swarming server Go code

To deploy from a local checkout: upload -A chromium-swarm-dev default-go

To run locally using fake bots and tasks (but with real Datastore and real RBE):

# Terminal 1: launch the server locally and keep it running.
cd server/cmd
go run main.go \
  -cloud-project chromium-swarm-dev \
  -shared-hmac-secret devsecret://aaaa \

# Terminal 2: launch a fake bot and keep it running.
cd server/testing/fakebot
go run main.go -bot-id fake-bot-1 -pool "${USER}-local-test"

# Terminal 3: launch a task and see it handled by the fake bot.
cd server/testing/fakesubmit
go run main.go -pool "${USER}-local-test"

Note that these tests hit real RBE instance (by default default_instance in chromium-swarm-dev project), so they may theoretically interfere with other similar tests running on other machines or even with real chromium-swarm-dev RBE traffic. pool dimension can be used to namespace them.