Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,12 @@ jobs:
(["DB", "MAIL_OBJECTS", "HQBASE_JOBS", "MAIL_SENDER", "MAIL_EVENTS"] - $names) |
length == 0
' <<<"$version"
- name: Reset disposable sign-in probes before final lifecycle
run: |
config=".hqbase/deployments/$DEPLOYMENT_NAME/wrangler.jsonc"
database="hqbase-$DEPLOYMENT_NAME"
pnpm exec wrangler d1 execute "$database" --remote --config "$config" \
--command "DELETE FROM rate_limits WHERE scope IN ('auth.email', 'auth.ip')"
- name: Verify PWA, app shell, access, and operator lifecycle
run: pnpm test:e2e:staging
- name: Exercise populated remote backup and restore
Expand Down
9 changes: 8 additions & 1 deletion test/unit/scripts/staging-workflow.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ describe("staging workflow lifecycle record", () => {
" - name: Prove the canonical same-version retry is idempotent"
);
const bindings = releaseWorkflow.indexOf(" - name: Verify active Worker bindings");
const resetSignInProbes = releaseWorkflow.indexOf(
" - name: Reset disposable sign-in probes before final lifecycle"
);
const lifecycle = releaseWorkflow.indexOf(
" - name: Verify PWA, app shell, access, and operator lifecycle"
);
Expand All @@ -238,7 +241,8 @@ describe("staging workflow lifecycle record", () => {
expect(final).toBeGreaterThan(repair);
expect(retry).toBeGreaterThan(final);
expect(bindings).toBeGreaterThan(retry);
expect(lifecycle).toBeGreaterThan(bindings);
expect(resetSignInProbes).toBeGreaterThan(bindings);
expect(lifecycle).toBeGreaterThan(resetSignInProbes);
expect(backup).toBeGreaterThan(lifecycle);
expect(releaseWorkflow.slice(stale, repair)).toContain("after_deploy_ledger_table_count:0");
expect(releaseWorkflow.slice(stale, repair)).toContain("alias_table_count:2");
Expand All @@ -260,6 +264,9 @@ describe("staging workflow lifecycle record", () => {
expect(releaseWorkflow.slice(retry, bindings)).toContain(
'node "$GITHUB_WORKSPACE/scripts/release/bootstrap.mjs" --config "$config"'
);
expect(releaseWorkflow.slice(resetSignInProbes, lifecycle)).toContain(
"DELETE FROM rate_limits WHERE scope IN ('auth.email', 'auth.ip')"
);
});

it("gates publication on the deployed update action and exact cleanup", () => {
Expand Down