Skip to content

ci: keep Linux required checks reporting when Linux is unchanged - #363

Merged
sambitcreate merged 1 commit into
mainfrom
ci/linux-required-checks-post
Oct 6, 2026
Merged

sambitcreate merged 1 commit into
mainfrom
ci/linux-required-checks-post

Conversation

@sambitcreate

Copy link
Copy Markdown
Owner

Mobile-only PRs stay BLOCKED forever: the linux matrix job is skipped at the job level, so GitHub posts it as Linux ${{ matrix.arch }} and the required Linux x64, Linux arm64 and Linux x64 · Fedora RPM checks never report.

  • linux now always starts; every step is gated on needs.changes.outputs.linux == 'true', so an unrelated PR finishes in seconds under the real check names. Linux-relevant PRs and main pushes run exactly as before.
  • linux-rpm needs [changes, linux] and skips at the job level (non-matrix, so the skip posts under its real name).
  • check-ci-policy.test.mjs asserts the new invariant on the parsed workflow.

npm run test:ci-policy: 55 pass.

🤖 Generated with Claude Code

A skipped matrix job posts as 'Linux ${{ matrix.arch }}', so mobile-only
PRs never satisfied the required Linux x64/arm64 and Fedora RPM checks.
Run the Linux job always and gate each step on the linux change area;
skip the RPM job at the job level so it reports under its real name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sambitcreate
sambitcreate enabled auto-merge October 6, 2026 02:50
@very-hermes-bot

Copy link
Copy Markdown
Collaborator

Hermes Review Bot

Confidence: 5

Engine: agy/gemini-3.8-flash-high
Review mode: small
Head: 035176b913be096ef8c2b6e39f299ab9692b15c6
Generated: 2026-10-06T02:54:08+00:00
Reviews: 1

Summary

GitHub Actions evaluates matrix dimensions only after a job starts; skipping a matrix job at the job level leaves the matrix unexpanded and posts a single check titled Linux ${{ matrix.arch }} rather than the per-architecture checks required by repository rulesets. To prevent non-Linux pull requests from remaining blocked indefinitely, the linux job now starts unconditionally, expanding into Linux x64 and Linux arm64, while each operational step is gated on needs.changes.outputs.linux == 'true'. The downstream linux-rpm job is non-matrix and safely skips at the job level under its canonical check name (Linux x64 · Fedora RPM) after depending on both changes and linux. The workflow policy test in scripts/check-ci-policy.test.mjs is updated to verify that no job-level if is present on linux, all non-failure steps include the area gate, and linux-rpm declares the required dependencies. Maintainers should double-check that the required check names configured in the GitHub branch ruleset match Linux x64, Linux arm64, and Linux x64 · Fedora RPM exactly.

Confidence Score: 5/5

The GitHub Actions workflow execution paths, matrix evaluation semantics, step conditions, and policy regression tests were fully traced and verified.

📁 Important Files Changed
  • .github/workflows/ci.yml: Removes the job-level condition from the linux matrix job so Linux x64 and Linux arm64 are always instantiated and reported, adds step-level gates for needs.changes.outputs.linux == 'true', and configures linux-rpm to depend on [changes, linux] with a job-level gate.
  • scripts/check-ci-policy.test.mjs: Updates CI workflow policy assertions to ensure jobs.linux has no job-level gate, each non-failure step retains the Linux area condition, and linux-rpm needs both changes and linux.

Findings

No findings.

Sequence Diagram

sequenceDiagram
    participant GH as GitHub Actions Engine
    participant Changes as changes Job
    participant LinuxX64 as Linux x64 Runner
    participant LinuxARM as Linux arm64 Runner
    participant RPM as linux-rpm Job
    participant Status as GitHub Status Checks

    GH->>Changes: Run change detection
    Changes-->>GH: outputs.linux = 'false'
    GH->>LinuxX64: Start matrix job (x64)
    GH->>LinuxARM: Start matrix job (arm64)
    Note over LinuxX64,LinuxARM: All steps skipped (gate is false)
    LinuxX64-->>Status: Report "Linux x64" (success)
    LinuxARM-->>Status: Report "Linux arm64" (success)
    GH->>RPM: Evaluate if (outputs.linux == 'true')
    RPM-->>Status: Report "Linux x64 · Fedora RPM" (skipped)
Loading
[]

Last reviewed commit: 035176b913be
Reviews (1) · Comment /hermes review to trigger a new review · /hermes review full for full re-review

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes in the Linux required-check reporting workflow and its CI-policy coverage, including the active branch ruleset and GitHub Actions skip semantics.

  • Matrix check reporting: Linux x64 and arm64 jobs now expand even when Linux is unchanged, with ordinary steps gated on the Linux area output and x64-only work retaining its architecture condition.
  • Fedora gating: The fixed-name RPM job directly depends on changed-area detection and skips when Linux is unselected, avoiding a missing-artifact download.
  • Policy coverage: Workflow assertions reflect the new gating. npm run test:ci-policy passed all 55 tests locally. Full hosted CI was still running; its Linux-selected path does not exercise the non-Linux no-op case.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@sambitcreate
sambitcreate merged commit 823168e into main Oct 6, 2026
24 checks passed
@sambitcreate
sambitcreate deleted the ci/linux-required-checks-post branch October 6, 2026 03:14
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.

2 participants