Skip to content

CI is not a merge signal (D56): lanes on push to main and dispatch, never on pull requests - #1304

Merged
ehartford merged 4 commits into
mainfrom
ci-not-a-signal
Sep 22, 2026
Merged

ehartford merged 4 commits into
mainfrom
ci-not-a-signal

Conversation

@ehartford

@ehartford ehartford commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Eric: "reduce it to 20 minutes or ignore it as any kind of signal. You decide." Measured (last green macOS lane): SDK 105 m + build 29 m + fixpoint 34 m + battery 71 m; without the SDK still ~2 h on a 4-core runner. A lane cannot be a signal, so it stops pretending: the five lanes drop pull_request, keep push-to-main (queued, never cancelled; they build and cache the SDK packages), gain workflow_dispatch. The seed-driven battery on the maintainer machine gates a PR — draft until green, ready when posted. Branch protection already requires no status check. D56 in decisions.md; one sentence in CLAUDE.md/AGENTS.md.

Battery: queued (workflow-only change; the gate keys on the tree).

SDK on release only

Eric (2026-09-22): "the SDK build is something we need to do only on release, not on push", and CI is "overzealous in what it does every push".

  • Lanes (ci.yml, selfhost-*.yml): the source-sdk step is gone; Build/Fixpoint/battery run on the SDK the lane's Fetch/Provision step put at LLVM_PREFIX (macOS: job env + build :deps; linux: job env + PATH/LD_LIBRARY_PATH exports in each step; windows: Configure native toolchain env writes LLVM_PREFIX and PATH to $GITHUB_ENV/$GITHUB_PATH) — the exact chain every lane had before wasm32 target: With runtime over WASI preview1 plus an emitted JS host #1210 added the action. The push trigger and its paths-ignore are gone too: each lane runs on a nightly cron (09:00 UTC, staggered five minutes per platform) and on workflow_dispatch; cancel-in-progress: false stays.
  • WebAssembly fixtures step stays, unconditional, renamed. It is red on the pinned SDK assets (no WebAssembly target) until they are republished from sdk-release.yml and the WITH_SDK_* pins are bumped; lanes are not a signal (D56), so a red cell is information, not a gate.
  • sdk-release.yml (new, workflow_dispatch with a required tag): five jobs, each its lane's preamble verbatim, then source-sdk, then gh release upload --clobber of with-llvm-sdk-*.tar.gz, .sha256 and .manifest to the release named by tag (GITHUB_TOKEN, contents: write; the repo's default token permission is read, so the workflow declares it). The action already uploads the same files as the source-sdk-<host> workflow artifact. The tree built is the ref the workflow is dispatched on; the tag only names where the assets go. First dispatch needs the release for tag to exist already (gh release view <tag> runs first and fails loudly otherwise) and the workflow file to be on the default branch.
  • nightly-release.yml does not call it: that workflow fetches the pinned, digest-verified SDK the compiler was built against and republishes exactly that; a package built in the same run would not be the one the compiler was verified with, and its digest cannot be pinned before it exists. The two agree on asset names (build/sdk.w sdk_asset_for_platform: with-llvm-sdk-22.1.6-<platform>.tar.gz). After a republish, bump sdk_version/sdk_sha256 there and WITH_SDK_* in the lanes.
  • Docs: D56 gains the nightly/dispatch and SDK-on-release sentences; CLAUDE.md/AGENTS.md rule updated to match; source-sdk/action.yml header says it runs only from sdk-release.yml.

Eric Hartford added 4 commits September 22, 2026 09:46
…atch, never on pull requests

Eric, 2026-09-22: "We either reduce it to 20 minutes or we ignore it as any
kind of signal." Measured on the last green macOS lane: source-SDK 105 min,
compiler build 29 min, fixpoint 34 min, battery 71 min; even without the
SDK build a lane is ~2 h on a 4-core runner, and a lane that skips the
battery is not a signal. So: the seed-driven battery on the maintainer
machine gates a PR (draft until green, ready when posted); the five lane
workflows drop their pull_request trigger, keep push-to-main (queued, never
cancelled — they build and cache the SDK packages) and gain
workflow_dispatch. Branch protection already requires no status check.
decisions.md D56 records the measurements and the cost accepted; the agent
rules carry the sentence.
… built only on release (Eric, 2026-09-22)

Remove the source-sdk step from the five lanes: each Build/Fixpoint/battery
now runs on the SDK its Fetch/Provision step already put at LLVM_PREFIX,
the env chain every lane had before #1210 added the action. The
WebAssembly fixtures step stays, unconditional, renamed; it is red until
the pinned SDK assets are republished from sdk-release.yml (lanes are not
a signal, D56).

The push trigger goes too (Eric: CI was overzealous in what it did on
every push): each lane runs on a nightly cron, staggered five minutes per
platform from 09:00 UTC, and on workflow_dispatch. paths-ignore has no
push to filter and is gone; cancel-in-progress stays false.
…against a release tag

One job per platform, each the lane's preamble verbatim (checkout, seed,
pinned SDK asset, native toolchain env), then the source-sdk action, then
gh release upload --clobber of with-llvm-sdk-*.tar.gz, .sha256 and
.manifest to the release named by the tag input (GITHUB_TOKEN, contents:
write). The action already uploads the same files as the source-sdk-<host>
workflow artifact. Asset names are build/sdk.w's sdk_asset_for_platform,
the ones nightly-release.yml pins; that workflow does not call this one
because it republishes the digest-verified SDK the compiler was built
against, which a package built in the same run could not be.
…ase (Eric, 2026-09-22)

decisions.md D56, CLAUDE.md/AGENTS.md and the source-sdk action header say
so; the action runs only from sdk-release.yml.
@ehartford
ehartford merged commit 501cf0b into main Sep 22, 2026
@ehartford
ehartford deleted the ci-not-a-signal branch September 22, 2026 14:48
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