Skip to content

ci(deploy): SKIP_DEV_TESTS flag and a dev rollback button - #501

Merged
saqibmanan merged 2 commits into
devfrom
ci-dev-test-skip-flag
Oct 9, 2026
Merged

saqibmanan merged 2 commits into
devfrom
ci-dev-test-skip-flag

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

Lets dev deploys run without the CivicDataSpace-test gates while the test owner is away, and adds a one-click rollback for dev.

Skip flag: repo variable SKIP_DEV_TESTS

  • Off (default): variable unset. Nothing changes.
  • On: gh variable set SKIP_DEV_TESTS --body true -R CivicDataLab/<repo>, or Settings → Secrets and variables → Actions → Variables.
  • Back off: gh variable delete SKIP_DEV_TESTS -R CivicDataLab/<repo>.

When it's on, a dev deploy:

  • skips Smoke and Functional tests;
  • shows a green Tests skipped (SKIP_DEV_TESTS) job with a notice;
  • still runs the post-deploy step (promote / Finalize Deploy), so the deploy is recorded as the rollback point.

main ignores the flag: prod deploys are always gated.

Rollback button

Actions → this workflow → Run workflow → branch dev → tick rollback.

This skips the build and runs the existing rollback job:

  • Frontend: relinks the release from before the last deploy, then records it as last-known-good.
  • Backend: restores the image that was live before the last deploy.

The run is green when the rollback succeeds. The rollback is ignored on main. As before, migrations are not reverted.

Checks

  • actionlint is clean.
  • On a dev push, the flag decides whether Smoke Tests or Tests skipped runs. Rollback only fires when tests fail, or from the button.

A green 'Tests skipped' job records it on the run, and promote still marks
the release last-known-good. main ignores the flag.
Run workflow on dev with 'rollback' ticked skips the build and runs the
existing rollback job: relinks the release before the last deploy and
records it as last-known-good.
@saqibmanan
saqibmanan deployed to development October 9, 2026 13:39 — with GitHub Actions Active
@saqibmanan
saqibmanan merged commit 8835106 into dev Oct 9, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
development — 676fe7dc Deployed Oct 9, 2026 by saqibmanan via build (24.x) #849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant