Skip to content

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

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 LightCraft'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, 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 libdbus-1-dev. These are the windowing, GL and font libraries that release.yml's Linux build and the FreeBSD workflow install, plus libdbus-1-dev from Ci/cross platform tests #2377, which nix/package.nix lists for the file dialog. The craft-fonts pin is the commit release.yml and freebsd.yml use (the gate sets CRAFT_FONTS_REQUIRED=1, as Gap 9: cargo xtask ci on every PR (Linux x64); ci --quick; one local ci at a time #2302 and Ci/cross platform tests #2377 did). It installs no nextest (tools: ""): xtask ci runs cargo test, because the demo scene cache is per process and nextest's process per test regenerates it. The timeout is 90 minutes, as in Gap 9: cargo xtask ci on every PR (Linux x64); ci --quick; one local ci at a time #2302, until a warm run shows how long the gate takes.
  • freebsd.yml runs nightly, on pushes to release, and on PRs that change the workflow or the FreeBSD packaging, instead of on every push to main and every change under crates/ or the Cargo files.
  • windows-arm64.yml runs nightly, on pushes to release, and on PRs that change the workflow or the Windows packaging, instead of on every push to main and every change under crates/ or the Cargo files.

Supersedes #1148 (thanks @THEtheChad), #2302 (thanks @mattsivak) and #2377 (thanks @insideTheFlux). This gate runs on Linux only, so the macOS and Windows test legs and the GPU equivalence tests from #1148 and #2377, and the xtask ci --quick mode and run lock from #2302, aren't part of this PR.

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 pushes to the main branch, pull requests, and manual runs.
    • Updated FreeBSD and Windows ARM64 checks to run nightly and on release-branch pushes. Pull-request checks now run when their platform packaging or workflow files change, regardless of the target branch.
    • FreeBSD and Windows ARM64 checks no longer run for main-branch pushes or for changes limited to Rust manifests, lockfiles, or crate files.

…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 and Windows ARM64 run 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
Contributor

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 77be832 and 078d475.

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 d5e639b and 77be832.

📒 Files selected for processing: 3
  • .github/workflows/ci.yml
  • .github/workflows/freebsd.yml
  • .github/workflows/windows-arm64.yml

Limit details: You’ve used all 10 included reviews currently available.

📝 Walkthrough

The PR adds a Linux CI workflow that delegates to a shared gate. It also changes the FreeBSD and Windows ARM64 workflows to run on release pushes, selected pull-request changes, and nightly schedules.

Changes: CI workflow coverage

Layer / File(s) Summary
Linux CI gate
.github/workflows/ci.yml
Adds push, pull-request, and manual triggers; read-only content permissions; and concurrency settings for pull-request runs. The gate job delegates to a shared workflow with the configured commit, timeout, tools value, and system packages.
Platform workflow triggers
.github/workflows/freebsd.yml, .github/workflows/windows-arm64.yml
Both workflows now run on pushes to release and daily schedules. Pull-request runs are limited to changes to each workflow or its related packaging paths, without a base-branch restriction.

Priority: ➖ Normal

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

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions as GitHub Actions
  participant SharedGateWorkflow as Shared gate workflow
  participant CargoXtaskCi as cargo xtask ci
  GitHubActions->>SharedGateWorkflow: invoke gate job
  SharedGateWorkflow->>CargoXtaskCi: run CI checks
Loading

Possibly related issues

  • storytold/soundcraft#900: The PR adds the missing pull-request gate that runs cargo xtask ci.
  • storytold/cadcraft#1932: The PR adds a shared Linux gate for the CI command described in the issue.
  • storytold/cadcraft#1935: The PR adds the pull-request CI gate described in the issue.
  • storytold/filmcraft#2813: The PR adds a visible cargo xtask ci gate, but does not address the issue’s separate all-features, deny, or fuzzing findings.

Possibly related PRs

Suggested reviewers: dylanmtaylor, fredapps

Merge Risk: ⚪ Minimal · up to 77be8

The Linux gate reference is available, and no blocking issue was established. The change is ready to merge after normal checks.

Architecture risk: 🔵 Low · up to 77be8

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/ci.yml: Adds workflow name, push/pull-request/manual triggers, read-only content permissions, and concurrency settings that cancel prior runs for the same pull-request branch but not runs for pushes to main.
  • observed — Modified behavior in .github/workflows/ci.yml: Adds a gate job using the shared workflow at @main, configured with a craft-fonts commit, 90-minute timeout, empty tools value, and the specified system packages.
  • observed — Modified behavior in .github/workflows/freebsd.yml: Comments now describe nightly runs and release pushes, and note that pull requests run when the workflow or FreeBSD packaging changes.
  • observed — Modified behavior in .github/workflows/freebsd.yml: The push trigger changes from filtered main pushes to all pushes on release. Pull requests no longer require the main base branch and are limited to changes in the workflow or packaging/freebsd/**; the previous Rust-related path filters are removed. A daily schedule at 7 4 * * * is added.
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 accurately identifies the shared CI gate and the FreeBSD trigger changes. It omits the related Windows ARM64 workflow changes, but it still clearly describes major changes in the pull reques…
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 accurately identifies the shared CI gate and the FreeBSD trigger changes. It omits the related Windows ARM64 workflow changes, but it still clearly describes major changes in the pull request.

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. (3 skipped: 3 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 marked this pull request as ready for review October 23, 2026 16:37
@aiongg
aiongg merged commit 069e32f into storytold:main Oct 23, 2026
9 checks passed
francoisgn added a commit to francoisgn/lightcraft that referenced this pull request Oct 23, 2026
…nd3a-integration

.github/workflows/ci.yml (add/add with storytold#2302): upstream's, which runs the
same `cargo xtask ci` gate through craft-common-actions' gate.yml. storytold#2302's
workflow is superseded; its `ci --quick` (xtask) stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
insideTheFlux added a commit to insideTheFlux/lightcraft that referenced this pull request Oct 23, 2026
Picks up storytold#2667 (the shared Linux gate) so this PR runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtjHGt5gnCHXgLt4NbGorf
insideTheFlux added a commit to insideTheFlux/lightcraft that referenced this pull request Oct 23, 2026
Picks up storytold#2667 (the shared Linux gate) so this PR runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtjHGt5gnCHXgLt4NbGorf
insideTheFlux added a commit to insideTheFlux/lightcraft that referenced this pull request Oct 23, 2026
Picks up storytold#2667 (the shared Linux gate) so this PR runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtjHGt5gnCHXgLt4NbGorf
insideTheFlux added a commit to insideTheFlux/lightcraft that referenced this pull request Oct 23, 2026
Picks up storytold#2667 (the shared Linux gate) so this PR runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtjHGt5gnCHXgLt4NbGorf
insideTheFlux added a commit to insideTheFlux/lightcraft that referenced this pull request Oct 23, 2026
Picks up storytold#2667 (the shared Linux gate) so this PR runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtjHGt5gnCHXgLt4NbGorf
insideTheFlux added a commit to insideTheFlux/lightcraft that referenced this pull request Oct 23, 2026
Picks up storytold#2667 (the shared Linux gate) so this PR runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtjHGt5gnCHXgLt4NbGorf
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