Skip to content

Copilot setup steps: Considered, WebKit and a Rust cache, so cloud sessions check and test from their first step - #294

Open
agorischek wants to merge 2 commits into
mainfrom
agorischek-musical-disco
Open

agorischek wants to merge 2 commits into
mainfrom
agorischek-musical-disco

Conversation

@agorischek

@agorischek agorischek commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 02e9a23e2ae3d0b5a4048f354f0bb7e55e8d3426

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ The workflow's own run on this PR passed every step in 9 min, starting cold with no Rust cache.
↑ Each install step runs the same command as CI, and all four verification targets passed in a cloud session set up the same way.
↑ actionlint, the CI actions-lock job and tools check --fast pass.
↓ The Copilot agent can only use the file after merge, so whether GITHUB_ENV reaches the agent's shell is unverified.
↓ The Rust cache hit rate is unmeasured until main saves a cache.

What changed

.github/workflows/copilot-setup-steps.yml already existed. It left out what the cheapest checks and the browser suites need:

  • Considered is now installed. Without it, tools check --fast fails its considered gate.
  • WebKit is installed next to Chromium, using tools/scripts/install-browsers.sh chromium webkit, the same call as the browser action. WebKit suites run on Linux.
  • Rust cache: Swatinem/rust-cache@v2.9.3 with key: build, saved only on main, as in the check action. A weekly schedule run keeps main's cache in step with the lockfile, so Copilot branches can restore it. The CLI's release build took about 6 of the old setup's 13 minutes. actions.lock was regenerated with gh actions-lock.
  • CI's release profile: CARGO_PROFILE_RELEASE_LTO=false and CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 are exported through GITHUB_ENV, as ci.yml sets them. Builds then match the caches main saves, and the CLI links in seconds instead of minutes.
  • Disk cleanup now runs in the background, as in CI. It used to block for 82 s.
  • Steps are split up and named, so the session log shows where time goes. Setup ends with tools doctor, which exits 0 on warnings.
  • Docs: AGENTS.md gets a "Cloud sessions" section. It covers what is preinstalled, the order to verify in, and what still needs CI or a local machine. CONTRIBUTING.md now links to it; it is at its Considered 500-line limit, so the section doesn't fit there.

copilot-setup-steps.yml only takes effect from the default branch. Cloud sessions pick this up after merge. This PR's run of the workflow shows whether the steps work.

Evidence

This PR's copilot-setup-steps run (47146602400) passed in 9 min with no Rust cache. Before this change it took about 13 min, without WebKit or Considered. Steps: Rust 12 s, npm ci 9 s, Considered 1 s, npm run build 7.5 min, browsers 47 s, doctor 7 s.

Cloud session:

All of this ran in a 2-CPU, 7.5 GB Ubuntu 24.04 cloud session with the same steps:

Step Result Time
npm ci --no-audit --no-fund 672 packages 14 s
node tools/scripts/considered.mjs install v0.1.6 1 s
npm run tools -- check --fast (before Considered) fail: considered not installed 24 s
npm run tools -- check --fast (clean tree / this change) pass / pass 17 s / 17 s
npm run tools -- build packages/cli (cold, no Rust cache) pass 493 s
npm run tools -- build packages/cli (no-op) pass 8 s
npm run tools -- test packages/renderers/kit pass, 195 tests 167 s
tools/scripts/install-browsers.sh chromium webkit pass 78 s
npm run tools -- test packages/renderers/harness --browser chromium-desktop --filter "graph/service-platform:" pass, 8 tests 18 s
same, --browser webkit-desktop pass, 5 tests 19 s
CLI rebuild after a one-file edit, default release profile → CI's profile pass 150 s → 54 s
npm run tools -- build packages/cli cold, CI's profile pass 369 s
npm run tools -- doctor warn (no terraform, no docs nightly), exit 0 —
actionlint 1.7.7 on the workflow clean —
gh actions-lock .github/workflows/copilot-setup-steps.yml --ignore-local-actions pinned rust-cache —

CI: one browser-macos WebKit shard failed with page.evaluate: Target page, context or browser has been closed (1 of 467). This PR touches no browser code, and the shard is being re-run. These still need CI or a local machine: WebKit on macOS (browser-macos), the macOS and Windows suites, the release proofs, the opt-in native extractor suites, and the generated reference docs (pinned nightly).

  • Documentation that this change affects is updated, and generated reference
    pages are regenerated (npm run docs:generate).
  • Fixes include a regression test.
  • A changelog fragment at changelog.d/<this PR's number>.md describes what
    users will notice, or the PR has the no changelog label (see
    changelog.d/README.md).
  • No credentials, private source or machine-specific paths are included.

…ssions check and test from their first step

The cloud agent's setup now installs Considered (tools check --fast failed without it), WebKit beside Chromium, and
restores main's Rust build cache; it frees disk in the background as CI does and ends with tools doctor. AGENTS.md
gains a Cloud sessions section: what is preinstalled and what still needs CI or a local machine.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@agorischek agorischek added the no changelog Users won't notice this change: no changelog.d/ fragment needed (changelog.d/README.md) label Dec 3, 2026
@agorischek
agorischek requested a balanced review from Copilot December 3, 2026 15:55
…s and main's Rust cache fits

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI 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.

🟢 Approval recommended

No active review issues block the cloud-session setup and documentation changes.

No open issues 🎉

What changed in this PR

Prepares Projections’ GitHub Copilot cloud sessions to run checks and browser tests from the first step.

Changes:

  • Installs Considered and WebKit, adds Rust caching with weekly refreshes, and runs disk cleanup in the background.
  • Aligns release build settings with CI and adds a final environment diagnostic.
  • Documents cloud capabilities and remaining platform/toolchain limitations.
File Description
CONTRIBUTING.md Links to the cloud-session guidance.
AGENTS.md Documents setup, verification, and cloud limitations.
.github/​workflows/​copilot-setup-steps.yml Expands setup dependencies, caching, and diagnostics.
.github/​workflows/​actions.lock Registers the workflow’s Rust cache action.

Review effort: Balanced

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

no changelog Users won't notice this change: no changelog.d/ fragment needed (changelog.d/README.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants