Allow for services needed to do service integration
tests to be easily started and stopped using nix.
Details
Details
Unfortunately, cannot do a test workflow as we hardcode services
using docker-compose domains (e.g. https://github.com/CommE2E/comm/blob/master/services/blob/src/constants.rs#L5)
To test that the script is running:
nix develop comm-dev services stop # ensure rabbitmq and localstack are stopped pgrep beam.smp # should be empty docker ps | localstack # should be empty comm-dev services start # should emit some rabbitmq info comm-dev services start # should be no-op pgrep beam.smp # should show a PID docker ps | localstack # should show a running container comm-dev services stop # cleanup rabbitmq and localstack pgrep beam.smp # should be empty docker ps | localstack # should be empty
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Wow, I wasn't even aware of the comm-dev services command, nice! I used to run nix run .#localstack-up directly
Idea:
I still prefer to use cd services && yarn init-local-cloud or yarn reset-local-cloud instead of the Nix one because these yarn commands also run Terraform to set up the infra. But of course, this is unrelated to this particular diff
scripts/comm-dev.sh | ||
---|---|---|
29–30 ↗ | (On Diff #21220) | These would also need to be updated |
scripts/comm-dev.sh | ||
---|---|---|
29–30 ↗ | (On Diff #21220) | Knew it was too easy |