Skip to content

ci(releases): scope flake-check to x86_64 - #1294

Merged
kalbasit merged 2 commits into
mainfrom
ci-releases-scope-flake-check-to
May 29, 2026
Merged

kalbasit merged 2 commits into
mainfrom
ci-releases-scope-flake-check-to

Conversation

@kalbasit

Copy link
Copy Markdown
Owner

Summary

The release workflow (v*.*.* tag builds) called build.yml without test_systems, so it re-ran the full nix flake check + coverage on both x86_64 and aarch64 — including the slower, flaky aarch64 Postgres path that the CI workflow (#1291) already learned to avoid.

  • releases.yml: pass test_systems: '["x86_64-linux"]' to the shared build workflow. The integration suite + coverage now run on x86_64 only; the aarch64 leg still builds and pushes its OCI image, so the multi-arch manifest is unchanged. run_flake_check stays at its default (true) so releases still gate on the full suite.
  • Mirrors the CI workflow's scoping.
  • flake-check-topology spec: the "Integration cohorts validated on a single CI architecture" requirement now covers both ci.yml and releases.yml, with a new release-tag scenario.

Independent of the fan-out PR (#1293); branched off main. Relies on the test_systems input already on kalbasit/gh-actions@main (merged in #8).

Test plan

  • actionlint .github/workflows/releases.yml — exit 0
  • task fmt clean; pre-commit hooks pass
  • Confirm on the next release tag that the aarch64 leg builds the image but skips nix flake check

@kalbasit

kalbasit commented May 29, 2026 •

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 29, 2026
@coderabbitai

coderabbitai Bot commented May 29, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ef1693ed-0e81-44f0-847a-c69db70729b4

📥 Commits

Reviewing files that changed from the base of the PR and between 8e08171 and 4b9f1a7.

📒 Files selected for processing (2)
  • .github/workflows/releases.yml
  • openspec/specs/flake-check-topology/spec.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/releases.yml

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Standardized release and integration testing to run full integration suite and coverage only on the canonical x86_64 build.
    • Clarified release behavior so non-canonical architectures still produce and publish OCI images for complete multi-arch manifests without re-running the integration suite.

Walkthrough

Release workflow narrows test_systems to x86_64-linux only while aarch64-linux continues building OCI images. Flake-check topology spec is updated to document this architecture scoping pattern for both CI and release workflows and to define the new release tag build scenario.

Changes

Integration Test Architecture Gating

Layer / File(s) Summary
Release workflow x86_64-linux restriction
.github/workflows/releases.yml
The reusable build workflow receives test_systems: ["x86_64-linux"] instead of including aarch64-linux. A comment explains that aarch64-linux continues to build and push OCI images for multi-arch manifests without re-running the integration suite.
Flake check topology specification
openspec/specs/flake-check-topology/spec.md
Spec is reworded to clarify that integration test suite execution is scoped to x86_64-linux across both CI and release workflows. A new release tag build scenario is added to document that v*.*.* releases run nix flake check and coverage only on x86_64-linux while aarch64-linux skips them but still builds and pushes OCI images and assembles the multi-arch manifest.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • kalbasit/ncps#1235: Both PRs update .github/workflows/releases.yml to control which Nix/integration test systems run via test_systems/systems inputs while wiring the release build to the shared kalbasit/gh-actions workflows.
  • kalbasit/ncps#1291: Main PR narrows the release workflow's test_systems input to ["x86_64-linux"] and updates the flake-check topology spec to match, aligning with PR #1291's change to pass the same test_systems: ["x86_64-linux"] to the shared CI workflow.
  • kalbasit/ncps#1293: Related change applying x86_64-linux-only fan-out for flake-check matrix logic in CI workflows.

Suggested labels

size:XS, merge-stack

Poem

🐰 The tests now race on x86 alone,
While ARM still builds the images shown,
A focused spec, both CI and release,
Multi-arch manifests find their peace! 🏗️

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: scoping the flake-check to x86_64 in the release workflow, which is the core objective of this PR.
Description check ✅ Passed The description is detailed and directly related to the changeset, explaining the problem, the solution, affected files, and test plan for scoping flake-check to x86_64-linux in the release workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the spec.md file to clarify that the integration test suite validation on a single canonical architecture (x86_64-linux) applies to both the CI and release workflows, and adds a specific scenario for release tag builds. The review comments suggest minor grammatical improvements to ensure plural agreement when referring to the OCI images built by multiple architectures or legs.

kalbasit and others added 2 commits May 29, 2026 16:18
The release workflow (tag builds) called build.yml without test_systems,
so it re-ran the full nix flake check + coverage on both x86_64 and
aarch64 — including the slower, flaky aarch64 Postgres path that the CI
workflow already learned to avoid.

Pass test_systems: '["x86_64-linux"]' so releases validate the
architecture-independent integration suite on x86_64 only; the
aarch64-linux leg still builds and pushes its OCI image for the
multi-arch manifest. Mirrors ci.yml. Update the flake-check-topology
spec's single-CI-architecture requirement to cover releases.yml too,
with a release-tag scenario.
Address review feedback on #1294: "non-canonical architectures" and "both
legs" are plural, so refer to their respective OCI images (plural).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@kalbasit
kalbasit force-pushed the ci-releases-scope-flake-check-to branch from 8e08171 to 4b9f1a7 Compare May 29, 2026 23:19
@kalbasit
kalbasit enabled auto-merge (squash) May 29, 2026 23:20
@kalbasit
kalbasit merged commit f3ce8ac into main May 29, 2026
38 of 51 checks passed
@kalbasit
kalbasit deleted the ci-releases-scope-flake-check-to branch May 29, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant