Repository navigation
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
Open
agorischek wants to merge 2 commits into
agorischek wants to merge 2 commits into
Conversation
…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>
…s and main's Rust cache fits Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
02e9a23e2ae3d0b5a4048f354f0bb7e55e8d3426↑ 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-lockjob andtools check --fastpass.↓ The Copilot agent can only use the file after merge, so whether
GITHUB_ENVreaches 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.ymlalready existed. It left out what the cheapest checks and the browser suites need:tools check --fastfails itsconsideredgate.tools/scripts/install-browsers.sh chromium webkit, the same call as the browser action. WebKit suites run on Linux.Swatinem/rust-cache@v2.9.3withkey: build, saved only onmain, as in the check action. A weeklyschedulerun 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.lockwas regenerated withgh actions-lock.CARGO_PROFILE_RELEASE_LTO=falseandCARGO_PROFILE_RELEASE_CODEGEN_UNITS=16are exported throughGITHUB_ENV, asci.ymlsets them. Builds then match the caches main saves, and the CLI links in seconds instead of minutes.tools doctor, which exits 0 on warnings.Evidence
This PR's
copilot-setup-stepsrun (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 ci9 s, Considered 1 s,npm run build7.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:
npm ci --no-audit --no-fundnode tools/scripts/considered.mjs installnpm run tools -- check --fast(before Considered)npm run tools -- check --fast(clean tree / this change)npm run tools -- build packages/cli(cold, no Rust cache)npm run tools -- build packages/cli(no-op)npm run tools -- test packages/renderers/kittools/scripts/install-browsers.sh chromium webkitnpm run tools -- test packages/renderers/harness --browser chromium-desktop --filter "graph/service-platform:"--browser webkit-desktopnpm run tools -- build packages/clicold, CI's profilenpm run tools -- doctoractionlint1.7.7 on the workflowgh actions-lock .github/workflows/copilot-setup-steps.yml --ignore-local-actionsCI: one
browser-macosWebKit shard failed withpage.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).pages are regenerated (
npm run docs:generate).changelog.d/<this PR's number>.mddescribes whatusers will notice, or the PR has the
no changeloglabel (seechangelog.d/README.md).