Skip to content

CI: shared gate workflow; FreeBSD nightly and on release - #2204

Merged
aiongg merged 4 commits into
storytold:mainfrom
aiongg:shared-gate
Oct 23, 2026
Merged

aiongg merged 4 commits into
storytold:mainfrom
aiongg:shared-gate

Conversation

@aiongg

@aiongg aiongg commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Adds EffectCraft's first CI gate, through the suite's shared gate workflow, and takes the slow platform builds off the pull-request path. Depends on storytold/craft-common-actions#69; merge after it. Until then this PR's CI fails, because gate.yml doesn't exist yet.

  • ci.yml is new. It calls storytold/craft-common-actions/.github/workflows/gate.yml@main, which runs cargo xtask ci with the cached apt install, nextest, rust-cache saved only from main (keyed on the root Cargo.toml, so profile changes start a fresh cache), and a check that Cargo.lock is unchanged. Every push to main runs to the end, and pushes to a PR branch cancel their older run. Packages: pkg-config libxkbcommon-dev libwayland-dev libx11-dev libxcb1-dev libxcursor-dev libxrandr-dev libxi-dev libfontconfig1-dev libfreetype-dev mesa-vulkan-drivers libgl1-mesa-dev libasound2-dev. These are the windowing, GL and font libraries that release.yml's Linux build and the FreeBSD workflow install, plus ALSA for cpal (alsa-sys is in Cargo.lock). The app has no craft-fonts pin, so the gate uses the suite default, as release.yml does.
  • Merge the CI-speed PR first. cargo xtask ci builds clippy and the tests with --release (xtask/src/main.rs:412-413), which would take the gate about 1.5 hours and run into the 60-minute default timeout. The CI-speed PR moves it to the dev profile.
  • freebsd.yml already ran nightly, on pushes to release and on PRs that change the workflow or the FreeBSD packaging. Only the comment and the position of the schedule block change.
  • windows-arm64.yml is unchanged: it already runs nightly and on pushes to release.

A CI-speed PR for the cargo xtask ci speed changes follows. Every craft app gets the same pair of PRs. Background: storytold/craft-common-actions#60.

Summary by CodeRabbit

  • Chores
    • Added automated checks for changes submitted to the main branch and pull requests, with an option to run them manually.
  • Documentation
    • Clarified that FreeBSD builds run for pull requests affecting FreeBSD packaging or build configuration, rather than on every pull request.

…SD nightly and on release

ci.yml is new: it calls the shared workflow (cached apt packages, nextest, main-only cache saves, Cargo.lock check). FreeBSD runs nightly and on pushes to release instead of on pull requests. Depends on storytold/craft-common-actions#69.
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 41c068e and 268db9e.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 89b8db7 and 41c068e.

📒 Files selected for processing: 2
  • .github/workflows/ci.yml
  • .github/workflows/freebsd.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

📝 Walkthrough

The pull request adds a CI workflow that delegates to a shared gate and updates a comment in the FreeBSD workflow. The FreeBSD schedule and event filters remain unchanged.

Changes: CI gate workflow

Layer / File(s) Summary
CI triggers and delegated gate
.github/workflows/ci.yml
Adds push, pull-request, and manual triggers. The workflow uses read-only contents permission, passes system packages to the shared gate workflow, and configures run concurrency.

FreeBSD workflow

Layer / File(s) Summary
FreeBSD trigger conditions
.github/workflows/freebsd.yml
Updates the comment to describe the nightly build, release pushes, and pull requests that change the workflow or FreeBSD packaging. The schedule and event filters do not change.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

  • storytold/soundcraft#900: Requests a PR workflow that runs cargo xtask ci, matching the CI gate pattern added here.
  • storytold/cadcraft#1935: Identifies missing PR CI for cargo xtask ci, which this pull request addresses with a shared gate workflow.

Possibly related PRs

  • storytold/effectcraft#2187: Configures FreeBSD pull-request validation path filters, which the updated workflow comment describes.

Suggested reviewers: echelon

Merge Risk: ⚪ Minimal · up to 41c06

No actionable merge-blocking defect was established. The shared gate follows the repository’s centralized-update convention, and FreeBSD scheduling is unchanged. Normal CI checks should confirm the external workflow is available and completes successfully.

Security architecture risk: 🟡 Moderate · up to 41c06

The new gate follows the shared workflow’s moving main branch. An unauthorized change there could weaken checks or produce misleading success results without a change reviewed in this repository. Read-only repository access and no explicitly passed secrets limit direct authority. This follows an intentional existing convention, but the shared implementation and required-check enforcement could not be verified.

Retained concerns

  • Medium · security · inferred: The new CI gate takes its implementation from shared main, allowing upstream changes to alter check execution and results without a reviewed change here. Compromise of that upstream authority could undermine this gate’s integrity; whether that would bypass a required merge check is unverified.
Security review details

Security Blast Radius

  • inferred — Control of the shared main branch could affect this repository’s new gate across pull-request, main-push, and manual executions resolving the changed workflow. This PR does not establish increased authority over other consumers, production environments, or data stores.

Security Findings and Attack Paths

  • inferred — The retained finding identifies a mutable gate reference. The supported attack prerequisite is unauthorized control of shared main or its update path, enabling changes that skip checks or return misleading success. An ordinary pull-request author’s ability to replace that shared workflow, and any resulting merge-policy bypass, were not established.

Trust Boundaries and Controls

  • inferred — The caller limits declared repository-token access to reading contents and does not explicitly pass secrets. These controls constrain direct repository authority but do not constrain the checks or success result implemented by the trusted external workflow.

Hardening Proposals

  • proposed — An immutable shared-workflow revision with a reviewed update process would make gate changes auditable here, trading automatic suite-wide propagation for explicit adoption.
Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two changes: a shared gate workflow for CI and a FreeBSD workflow change. The raw summary and objectives support both. The title does not mention the FreeBSD change accurately. The sum…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Full details: Title check

Explanation

The title names two changes: a shared gate workflow for CI and a FreeBSD workflow change. The raw summary and objectives support both. The title does not mention the FreeBSD change accurately. The summary says the FreeBSD workflow change only edits a comment and moves a schedule block, and it does not add a nightly or release trigger. The objectives say the workflow already ran nightly and on release pushes, so the title's 'FreeBSD nightly and on release' wording describes behavior that the diff does not add. The main change, the new ci.yml gate, is covered, so the title is partially related. It is also somewhat overloaded and does not say the gate depends on an external shared workflow.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@aiongg
aiongg merged commit 23584c0 into storytold:main Oct 23, 2026
6 checks passed
bflatastic added a commit to vbasky/effectcraft that referenced this pull request Oct 30, 2026
Since storytold#2204, ci.yml runs `cargo xtask ci` through craft-common-actions' shared gate on every
pull request and push to main; gaps.md still listed "No CI gate on pull requests" as gap 4 and
in the Stability row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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