Skip to content

ci: use artcraft-k8s-main runner on main - #305

Open
dylanmtaylor wants to merge 3 commits into
mainfrom
ci/trusted-main-runners
Open

dylanmtaylor wants to merge 3 commits into
mainfrom
ci/trusted-main-runners

Conversation

@dylanmtaylor

@dylanmtaylor dylanmtaylor commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Switches Linux CI jobs on main (non-pull_request runs) to use the self-hosted artcraft-k8s-trusted ARC runner scale set, while keeping pull requests on GitHub-hosted ubuntu-24.04 / ubuntu-latest runners.

Why we're doing this

  • Faster builds with shared cluster & node caches: artcraft-k8s-trusted pods run in our K3s cluster with node-local SSD/page-cache mounts (/cache for CARGO_HOME, npm, pnpm, uv, pip, go) and authenticated write access to the shared cluster-wide sccache WebDAV cache (arc-cache:8080) and BuildKit layer registry (arc-registry:5001).
  • Trusted-only cache writes: artcraft-k8s-trusted is in the artcraft-trusted GitHub runner group, which is locked down via selected_workflows to default-branch (@refs/heads/main) workflows only, so untrusted PRs cannot target artcraft-k8s-trusted or poison the shared caches.

What changed

  • Updated Linux runs-on and gate.yml os inputs to evaluate:
    • github.ref == 'refs/heads/main' && github.event_name != 'pull_request' -> artcraft-k8s-trusted
    • Pull requests / other branches -> ubuntu-24.04 / ubuntu-latest (unchanged)

Summary by CodeRabbit

  • Chores
    • Updated the automated checks used for changes to the main branch. Their execution environment now differs from the one used for pull requests and other cases. These changes affect the project’s internal verification process; no user-facing product changes are included.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

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 cd765f9 and dbefc9a.

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.

Walkthrough

The CI workflow selects artcraft-k8s-main for non-pull-request runs on main. Other runs continue to use ubuntu-24.04. Both OS matrices include windows-latest.

Changes: CI runner selection

Layer / File(s) Summary
Conditional runner selection
.github/workflows/ci.yml
For non-pull-request runs on main, the OS matrix selects artcraft-k8s-main. Other cases retain ubuntu-24.04, and both matrices include windows-latest.

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

Change: Other

Suggested reviewers: chasse20, fredapps

Merge Risk: Minimal · previous review cd765

This change moves Linux CI on main pushes to a self-hosted runner and leaves pull requests on GitHub-hosted runners. No concrete defect was found in the workflow edit. Before merging, confirm that the artcraft-k8s-main runner is online and that its runner group admits only trusted default-branch workflows. Those settings are outside the repository.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci: use artcraft-k8s-main runner on main" matches the single change in the diff. The CI workflow now selects the artcraft-k8s-main runner when the ref is main and the event is not a pull re…
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 "ci: use artcraft-k8s-main runner on main" matches the single change in the diff. The CI workflow now selects the artcraft-k8s-main runner when the ref is main and the event is not a pull request. The title names the runner and the branch condition, so a reviewer scanning history can see the primary change. The objectives note the runner was renamed from artcraft-k8s-trusted, which the title does not mention, but that detail is secondary.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4181b48 and cd765f9.

Files selected for processing: 1

  • .github/workflows/ci.yml

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

@dylanmtaylor dylanmtaylor changed the title ci: use artcraft-k8s-trusted runner on main ci: use artcraft-k8s-main runner on main Nov 22, 2026

@vangel76 vangel76 left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Source review of cd765f9. The shared gate consumes the selected runner matrix. The expression keeps PRs on ubuntu-24.04 and Windows on windows-latest. Please update the PR description to name artcraft-k8s-main, which the current diff selects, and identify its runner group and cache setup if that differs from the old label. Runner availability and runtime behavior were outside this source review.

Source review only. I did not build the project, run tests, or check CI.

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

Read the diff: one line in ci.yml that sends the os matrix to the artcraft-k8s-main runner for pushes to main and keeps ubuntu-24.04 for pull requests, with windows-latest unchanged. It is the same expression photocraft's ci.yml already uses, so the label exists and the pull-request path is unaffected. CI is green on this head.

Nit, not blocking: the description says the runner is artcraft-k8s-trusted, but the workflow uses artcraft-k8s-main. Please fix the text so it matches what runs. I did not run anything.

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@FredApps

FredApps commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The isolated MaterialCraft runner validation reached and ran the shared Ubuntu gate on artcraft-k8s-main, so this repository can schedule that label for the dispatched proof. The gate did not pass: menu_bar::a_suspended_engine_cooks_nothing_until_it_is_resumed failed at menu_bar.rs:49 because the initial cook had not settled within the test's five-second deadline. The GitHub-hosted PR gate passed the same test; intervening main changes were documentation only. This does not establish whether the runner failure is transient or a sustained responsiveness problem, so the proposed main-runner switch remains unverified. The proof ran by workflow dispatch on an isolated branch; it does not prove a default-branch push or its runner-group permissions.

This branch has not been deployed

No deployments
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.

3 participants