Repository navigation
Conversation
The workflow runs deploy/gcp/dev/deploy.sh from GitHub Actions on each eligible master push and on workflow_dispatch (mode deploy or rollback, migrate_only). It gets its Google token through the WIF provider github-d-inference for d-inference-dev-deploy. deploy.sh waits for the SUCCESS dev-build of the commit and runs swap.sh over IAP. The job passes only when the public /health reports the commit, version and draining false. Re-attach and smoke-dev.sh notify only. A LatestProviderVersion change dispatches release-swift.yml with environment=dev. The deploy step passes vars.DEV_DEPLOY_PAUSED to deploy.sh, so the pause applies to each run, a dispatch included. The workflow never overrides the pause. MIGRATE_ONLY tests the event first: on push, inputs.migrate_only is null. scripts/test-dev-deploy.py now fails if deploy-dev.yml names --override-pause, lacks the pause pass-through, or has a job environment, a pull request trigger or a secret. Docs: dev-environment.md step 7, test.md, one AGENTS.md line. Linear: DBLM-569 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run step with no shell runs as bash -e, without pipefail, so `deploy.sh | tee` took the exit status of tee: a paused or failed deploy showed green. defaults.run.shell: bash adds pipefail. The workflow test now requires it. Refactor pass: one LatestProviderVersion reader form, an accurate timeout comment, clearer /health and summary text in dev-environment.md, assertNotIn in the workflow tests. Linear: DBLM-569 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Deployment failed for project d-inference with the following error: View Documentation: https://vercel.com/docs/accounts/team-members-and-roles |
|
Note on the red Release Integrity check: it is not caused by this PR.
This PR merges only after DBLM-559 (two manual deploys). By then PR 1367 is in |
A workflow_dispatch has no head commit, so HEAD_TS is empty, and GNU `date -d ""` returns midnight of the current day. The summary then showed false "Merge to job start" and "Merge to healthy" times. Set MERGE only when HEAD_TS has a value. Refactor pass: the provider release step exits on "no base commit" before it reads the version; the pipefail check is its own test; the deploy step is sliced once in setUp; test.md names the pipefail check. Linear: DBLM-569 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Deployment failed for project eigen-homepages-darkbloom with the following error: View Documentation: https://vercel.com/docs/accounts/team-members-and-roles |
|
Deployment failed for project darkbloom-status with the following error: View Documentation: https://vercel.com/docs/accounts/team-members-and-roles |
|
Deployment failed for project d-inference-console-ui-dev with the following error: View Documentation: https://vercel.com/docs/accounts/team-members-and-roles |
|
Deployment failed for project d-inference-landing with the following error: View Documentation: https://vercel.com/docs/accounts/team-members-and-roles |
This comment has been minimized.
This comment has been minimized.
Linear DBLM-575, decided 2026-10-07. The suite runs every 3 hours, or after 10 first-parent master commits since the last tested commit (on a successful deploy-dev.yml run), whichever comes first. It skips a run when the deployed commit (public /health build_commit) is the last tested commit; force=true on a dispatch always runs. The last tested commit is the artifact devnet-suite-tested-commit of the newest successful run. Concurrency group devnet-suite with cancel-in-progress false: one running and one pending run; a newer pending run cancels the older one. Every job needs vars.DEVNET_SUITE_ENABLED == 'true', which is unset, so nothing runs before DevNet exists. scripts/devnet-suite.sh checks /health (hard), active_providers (report only) and, when DEVNET_SMOKE_API_KEY is set, smoke-dev.sh with the authenticated chat (hard). It writes the tested commit, each check, the result and the duration to the job summary. An optional DEVNET_SUITE_SLACK_WEBHOOK posts the result. Public endpoints only: no WIF, no GCP, no deploy gate, no production change. Tests in scripts/test-dev-deploy.py check each cadence rule, the master switch, no job environment, no printed secret, and the script with a stub curl. Docs: dev-environment.md step 13 and the checklist. Linear: DBLM-575 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refactor pass (subagent): a forced run no longer reads the artifact; one reason string for the threshold decision; add_row and one label per check in devnet-suite.sh; the docs and comments say that a missing build_commit skips even a forced run, and that smoke-dev.sh also fails with no attached provider. Rulings on its findings: on workflow_run, a failed commit count now skips, because the decided rule runs that trigger only at 10 or more commits; the 3-hour schedule tests the commit. The Slack post reports a cancelled run as cancelled, not as fail. Linear: DBLM-575 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review of head
Smaller items, from reading:
The red Release Integrity check is as you described: Review assisted by Claude Code. |
…devnet/deploy-dev-workflow Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/test-dev-deploy.py reads .github/workflows/devnet-suite.yml and scripts/devnet-suite.sh, so the path test failed after the merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
deploy.sh ignores the check runs of devnet-suite.yml, whose jobs are now all named "DevNet suite...": the suite is not a deploy gate, so a red run does not stop the next deploy. devnet-suite.sh adds a hard check that the tested commit is on origin/master (the gate reads the commit from /health, so the /health check alone was circular) and reports how far it trails master. The suite job checks out the master history. When /health is down, the gate job fails and says so in its summary. deploy-dev.yml pairs the provider release in a separate job with the only actions: write token, against the commit that /health reported before the swap, for pushes and deploy dispatches. A rollback dispatch has its own concurrency group, so a push cannot replace it. Tests pin the triggers, the job permissions and the concurrency. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…devnet/deploy-dev-workflow Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refactor pass (subagent): one workflow_jobs, workflow_step and run_step_script test helper each; the unread pair result output is gone; the deploy summary names the release job; the suite header says why each job name starts with "DevNet suite"; the runbook states the pairing and concurrency behavior exactly. The pair job also warns when /health gave no commit before the swap, because then no release is compared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@jonathan308 Your review is addressed at
Item 2 ( Tests at
Not verified: a real Actions run of these workflows (the concurrency groups, the job outputs, |
|
Moved to Layr-Labs/darkbloom-platform#11, because coordinator development now happens there (docs/developer/platform-bootstrap.md in that repo). This PR is closed; its branch is kept. |
Summary
This PR adds
.github/workflows/deploy-dev.yml(Linear DBLM-569). After each eligiblemasterpush, the workflow runsdeploy/gcp/dev/deploy.sh. That script waits for the SUCCESSdev-buildof the commit, then swaps the dev coordinator withswap.sh, the production steps. The job passes only when the public/healthreports the commit. Production stays human-only.The PR also adds
.github/workflows/devnet-suite.yml(Linear DBLM-575): the DevNet test cadence that David decided on 2026-10-07. It is the same CI layer.Stacked on d-inference PR 1367 (DBLM-556). The base is
devnet/dev-deploy-scripts. Per DBLM-569, merge this PR only after PR 1367 merges and after DBLM-559 (two manual deploys and the rollback test) passes.DEV_DEPLOY_PAUSEDstaystrueuntil then.Linked issue
Linear DBLM-569 and DBLM-575. Trigger policy: DBLM-568. WIF: DBLM-567.
What the workflow does
pushtomasterwith the DBLM-568 path filter, andworkflow_dispatchwith the inputsmode(deployorrollback) andmigrate_only. It has nopull_requesttrigger and no job environment. The WIF providergithub-d-inferencegives a token only to this file, onmaster, forpushorworkflow_dispatch. It gives the token tod-inference-dev-deploy@darkbloom-dev.iam.gserviceaccount.com. These values come from darkbloom-devnet-infraterraform/iam.vars.DEV_DEPLOY_PAUSED == 'false'. The deploy step passesDEV_DEPLOY_PAUSED: ${{ vars.DEV_DEPLOY_PAUSED }}todeploy.sh, so the pause applies to each run, a dispatch included (exit 3, no change). The workflow never overrides the pause.MIGRATE_ONLYtests the event first. On a push,inputs.migrate_onlyis null, and null == false is true./healthreportsstatusok,drainingfalse,version=LatestProviderVersionandbuild_commit= the commit. Notify only: providers attach again within 120 s, andscripts/smoke-dev.sh. The workflow has no secrets, so the authenticated chat test does not run.LatestProviderVersion, the job dispatchesrelease-swift.ymlwithenvironment=dev. It then removes the OS Login key and writes the job summary.blacksmith-4vcpu-ubuntu-2404. Permissionscontents: read,id-token: write,actions: write(release dispatch only). Concurrencydeploy-dev, no cancel. Actions are pinned by full SHA:actions/checkoutuses the same pin as master;google-github-actions/authv3.0.0 andsetup-gcloudv3.0.1 were checked withgit ls-remote.Differences from the sample in darkbloom-devnet-infra:
deploy.shalready does this wait (up to 20 min, it fails on FAILURE, TIMEOUT or CANCELLED). The summary reads the build ID from the deploy log.deploy/gcp/dev/env-overrides. It is not a literal.defaults.run.shell: bashadds pipefail, sodeploy.sh | teefails whendeploy.shfails.flowchart LR subgraph Before direction TB B1(["master push"]):::ev --> B2["dev-build builds the image"]:::gcp B2 --> B3["a human runs deploy.sh<br/>with --override-pause"]:::human B3 --> B4["swap.sh on d-inference-dev"]:::gcp end subgraph After direction TB A1(["master push (path filter)<br/>or workflow_dispatch"]):::ev --> A2{"push and<br/>PAUSED != false?"}:::gate A2 -- "yes" --> A0(["run skipped"]):::skip A2 -- "no" --> A3["deploy-dev.yml: WIF token"]:::ci A3 --> A4["deploy.sh with DEV_DEPLOY_PAUSED<br/>pause check, build wait, step 1"]:::ci A4 -- "paused" --> AX(["exit 3, no change"]):::fail A4 --> A5["swap.sh over IAP"]:::gcp A5 --> A6{"public /health:<br/>commit, version, not draining"}:::gate A6 -- "pass" --> A7["notify: re-attach, smoke<br/>release-swift on version bump"]:::ci A6 -- "fail" --> AY(["job red"]):::fail A7 --> A8["remove key, job summary"]:::ci end classDef ev fill:#dbeafe,stroke:#1d4ed8,color:#0b1b3f classDef ci fill:#dcfce7,stroke:#15803d,color:#052e16 classDef gcp fill:#fef9c3,stroke:#a16207,color:#3f2d00 classDef gate fill:#ede9fe,stroke:#6d28d9,color:#2e1065 classDef human fill:#fde2e2,stroke:#b91c1c,color:#450a0a classDef fail fill:#fecaca,stroke:#b91c1c,color:#450a0a classDef skip fill:#e5e7eb,stroke:#4b5563,color:#111827Legend: blue = trigger, green = GitHub Actions, yellow = GCP, purple = gate, red = human step or failure, grey = skipped.
flowchart LR subgraph "Code before" C1["scripts/test-dev-deploy.py<br/>deploy.sh pause tests"]:::t end subgraph "Code after" D1[".github/workflows/deploy-dev.yml (new)"]:::ci --> D2["deploy/gcp/dev/deploy.sh (PR 1367)"]:::gcp D3["test-dev-deploy.py<br/>+ DeployWorkflowTests"]:::t -. "reads" .-> D1 end classDef ci fill:#dcfce7,stroke:#15803d,color:#052e16 classDef gcp fill:#fef9c3,stroke:#a16207,color:#3f2d00 classDef t fill:#dbeafe,stroke:#1d4ed8,color:#0b1b3fDevNet suite (DBLM-575)
23 */3 * * *), or after 10 first-parentmastercommits since the last tested commit (on a successfuldeploy-dev.ymlrun). The first of the two starts the suite. A run is skipped when the deployed commit (public/healthbuild_commit) is the last tested commit. A dispatch withforce=truealways runs. If/healthdoes not answer, the run is skipped with a notice.devnet-suite-tested-commitof the newest successful run. The suite uploads it only on success. No variable writes and no new token: the gate usesGITHUB_TOKENwithactions: read.devnet-suite,cancel-in-progress: false. This gives one running run and one pending run; a newer pending run cancels the older pending run.vars.DEVNET_SUITE_ENABLED == 'true'. The variable is not set, so nothing runs before DevNet exists. David enables it after DBLM-559.scripts/devnet-suite.sh):/healthstatusokandbuild_commit= the tested commit (hard);active_providers>= 1 (report only);scripts/smoke-dev.shwith the authenticated chat test, only when the secretDEVNET_SMOKE_API_KEYis set (hard). The script never prints the key.DEVNET_SUITE_SLACK_WEBHOOKis set.contents: read, plusactions: readon the gate job.e2e/suites start their own coordinator (testbed.NewSuite).scripts/startup_measurementtakes--base-url, but it observes coordinator startup; it is not a test suite. The suite does not use either.flowchart LR subgraph Before B1["merge to master"]:::ev --> B2["deploy-dev.yml<br/>cheap check"]:::ci B3["DevNet test"]:::skip end subgraph After A1["merge to master"]:::ev --> A2["deploy-dev.yml<br/>cheap check (no change)"]:::ci A2 -->|"workflow_run, success"| G{"gate<br/>DEVNET_SUITE_ENABLED"}:::gate A0["schedule every 3 h"]:::ev --> G A9["dispatch, force"]:::human --> G G -->|"new commit, and 3 h or 10 commits"| S["devnet-suite.sh<br/>/health, providers, chat"]:::ci G -->|"same commit, or no /health"| K["skip"]:::skip S --> R["summary, artifact on success,<br/>optional Slack"]:::gate end classDef ev fill:#dbeafe,stroke:#1d4ed8,color:#0b1b3f classDef ci fill:#dcfce7,stroke:#15803d,color:#052e16 classDef gate fill:#ede9fe,stroke:#6d28d9,color:#2e1065 classDef human fill:#fde2e2,stroke:#b91c1c,color:#450a0a classDef skip fill:#e5e7eb,stroke:#4b5563,color:#111827Test plan
actionlint -config-file .github/actionlint.yaml .github/workflows/deploy-dev.yml: no output.shellcheckon the 11 extractedrun:scripts: clean.python3 scripts/test-dev-deploy.py: OK (26 tests). The newDeployWorkflowTestsfail when the workflow names--override-pause, when it drops theDEV_DEPLOY_PAUSEDpass-through, or when it drops the bash default shell. Each mutation was run once against the committed state, and the matching test failed.python3 scripts/test_operations_scripts.py: OK.make docs-check: 339 files OK.make docs-impact-check BASE=origin/devnet/dev-deploy-scripts: OK.actionlintondevnet-suite.ymlandshellcheckonscripts/devnet-suite.shand its 5run:scripts: clean.python3 scripts/test-dev-deploy.py: OK (36 tests).DevnetSuiteWorkflowTestscheck the concurrency group, theDEVNET_SUITE_ENABLEDswitch on each job, the 3-hour schedule, the threshold of 10, no job environment and no printed secret. Each rule was broken once on the committed state, and its test failed.DevnetSuiteScriptTestsrundevnet-suite.shagainst a stubcurl.deploy-dev.ymlrun after the merge confirms it (runbook 09).Components touched
Protocol / interface changes
Documentation impact
docs/operations/dev-environment.md(step 7, rollback row, checklist),docs/developer/test.md, one line inAGENTS.md; step 13 and checklist item 7 for the DevNet suite.Notes for reviewers
run:step withoutshell:has no pipefail, so a paused or failed deploy showed green. This PR fixes that and adds a test for it. The pass also unified theLatestProviderVersionreader, corrected the timeout comment and made the doc text clearer. A second pass found that a dispatch (no head commit) gave false merge times in the summary, becausedate -d ""returns midnight. The summary now showsn/afor them. The refactor pass on the DevNet suite gave small cleanups. It also found aworkflow_runcase that ran when the gate could not count commits; that case now skips, as the decided rule requires, and the schedule tests the commit.timeout-minutes: 45is the DBLM-569 value. The worst case is a 20 min build wait plus a 25 min swap cap, which is more than 45 min. The swap runs undersystemd-runon the VM, so a job timeout does not stop the swap.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.