Repository navigation
[3411 by Claude Opus 5.5] CI robustness: stop the Chromium install from hanging for an hour on GitHub-hosted runners. Check current upstream main first. - #3412
Conversation
…ies once, so a stalled apt mirror fails or recovers within 10 minutes instead of holding the PR for an hour. Upstream `main` is still the same commit as this branch's base, and its install script is identical to the old one here, so nothing upstream had already fixed this. What changed - `scripts/ci-install-chromium.sh`, hosted path: - It writes an apt drop-in at `/etc/apt/apt.conf.d/99propr-ci-network-timeouts` with `Acquire::Retries "3"`, `Acquire::http::Timeout "30"` and `Acquire::https::Timeout "30"`. A drop-in is needed because Playwright runs apt-get through sudo, which drops apt's command-line settings. If the drop-in can't be written, the script fails rather than installing without limits. - Each `npx playwright install --with-deps chromium` attempt is capped at 3 minutes. If one times out, the script stops any leftover `apt-get`/`dpkg`, finishes any half-done package setup (capped at 60 seconds), and tries once more. - Package names still come from Playwright, and no Ubuntu release name appears anywhere, so the move to Ubuntu 26 won't matter. - Fail-closed: any failure other than a timeout ends the step with its own exit code and isn't retried. If both attempts time out, the step fails with an error. - Self-hosted path: unchanged; it still runs `npx playwright install chromium`. - Step timeouts (`timeout-minutes: 10`) on every step that installs Chromium: - `pr-build-check.yml`: the PWA smoke-test install (two 3-minute attempts plus cleanup fit inside it) - `pr-test-on-label.yml`: the browser-test install - `desktop-release-guard.yml`: both installs - `.propr/setup.sh`: the nightly and labelled docs-validation jobs install Chromium through this script rather than in a separate step, so I capped its browser download at 10 minutes there instead. It falls back to an unbounded download on machines without `timeout`. This goes slightly beyond what the issue listed; it's how I covered the nightly workflow. - Tests: - New `test/ciChromiumInstall.test.mjs`, also added to `test:unit`. It runs the script with sudo, `timeout` and npx stubbed out and checks the apt settings, the retry, the fail-closed cases and the unchanged self-hosted path. It also checks that every Chromium install step in every workflow has a timeout of 15 minutes or less, and that the two attempts fit inside the step's limit. - In `test/ciRunnerRouting.test.mjs` I removed the hosted-runner assertion, which the new file now covers. - CHANGELOG: a "CI: Chromium install no longer hangs for an hour" entry under [Unreleased] → Fixed. There's no CI/tooling heading, so I used a bold "CI:" label. Checks - The new tests pass (7/7). Run against the old script, 3 of them fail, so they really test the change. - The related workflow-contract suites pass (289 + 26 tests, 0 failures). - shellcheck v0.10.0 is clean on both scripts, and `bash -n` passes. - ESLint reports nothing on the two test files. - actionlint v1.7.7 (an older release than CI's) only flagged the `macos-15-intel` runner label, on lines this change doesn't touch. Nothing ran on a real GitHub-hosted runner, so whether the 30-second apt timeouts are enough on their own against that mirror stall is unproven. If they aren't, the 3-minute cap and retry are the backstop. There's no visual change, so I made no previews.
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the visible scope. The PR bounds Chromium installation while preserving failure propagation and the self-hosted package boundary. The supplied current-head status reports 38 passed checks and no failures or pending checks. ✅ Layered time limits — Workflow step deadlines cap installation time, while hosted installs add apt network limits and one retry after a timeout. ✅ Preserved host isolation — Self-hosted and unset runner environments still take the browser-only path before any privileged commands. ✅ Focused regression coverage — Tests exercise success, timeout recovery, exhausted retries, ordinary failures, and unavailable sudo. The supplied issue objective is truncated; this assessment covers its visible requirements and the complete supplied diff. No commands were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Bound cleanup termination explicitlyIn S2: 🟢 Cover multiline workflow commandsThe workflow scanner in ScoreThe implementation addresses the visible objective, preserves relevant safety boundaries, and has focused tests backed by passing current-head checks. No merge-blocking regression was demonstrated. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
Main now has the 0.9.1 release prep (#3414, tagged v0.9.1). Please merge current main into this branch and make sure the CHANGELOG entry for the Chromium install fix sits under the new empty |
|
✅ Applied the requested follow-up changes in commit 585ad5b Summary of ChangesI brought current Why this isn't a real merge:
Tests:
I didn't create a visual preview, because this change has nothing a user would see. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… into this branch. The Chromium install entry now sits under `## [Unreleased]` → `### Fixed`, and both tests you asked for pass. I brought current `main` (2ee3573, the v0.9.1 release prep) into this branch. The Chromium install entry now sits under `## [Unreleased]` → `### Fixed`, and both tests you asked for pass. **Why this isn't a real merge:** `git merge` and `git fetch` fail here because the worktree's git directory is read-only. The local `origin/main` ref already pointed at the latest commit, so I applied main's changes directly to the files. When ProPR commits, the result will be an ordinary commit, not a merge commit with two parents. - **Files only main changed (32):** copied byte-for-byte from `origin/main`, including the six new macOS-preview files. A check found no differences from main in any of them. - **`package.json`:** combined with a three-way merge. Main's version bump to 0.9.1 and the dependency bumps sit alongside this branch's addition of `test/ciChromiumInstall.test.mjs` to `test:unit`. There were no conflicts. - **`CHANGELOG.md`:** I took main's file and added `### Fixed` with the Chromium install entry under the empty `## [Unreleased]`. A byte comparison confirms `## [0.9.1]` and everything below it is identical to main. - **Files only this branch changed:** the workflows, `.propr/setup.sh`, `scripts/ci-install-chromium.sh` and the two tests are unchanged. Main didn't touch any of them. **Tests:** - `test/ciChromiumInstall.test.mjs`: 7/7 pass. - `test/ciRunnerRouting.test.mjs`: 51/51 pass. I didn't create a visual preview, because this change has nothing a user would see. PR: #3412 Comment by: @integry (ID: 6554709875) Model: Claude Opus 5.5
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryI resolved the one conflict, in What the conflict was about: Both branches changed the area just below
Git flagged the PR's new entry against main's empty section. How I resolved it: I kept the PR's Why: Main's side had no content of its own in that spot; it was just the emptied section after the release. The PR's Chromium fix isn't part of 0.9.1, so it belongs under Check: The file has no conflict markers, and the release headings are in order ( 🤖 Resolution Details
System-triggered merge conflict resolution |
…tness-stop-the-ch-20261101-0257-fou Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - CHANGELOG.md PR: #3412 Model: Claude Opus 5.5
AI Implementation Summary
Closes #3411
Branch:
3411/claude-opus-5-5-ci-robustness-stop-the-ch-20261101-0257-fouCommits: ✅ Changes committed (8b08b7f)
AI Processing Completed
Execution Details:
Summary:
The Chromium install on GitHub-hosted runners is now bounded and retries once, so a stalled apt mirror fails or recovers within 10 minutes instead of holding the PR for an hour. Upstream
mainis still the same commit as this branch's base, and its install script is identical to the old one here, so nothing upstream had already fixed this.What changed
scripts/ci-install-chromium.sh, hosted path:/etc/apt/apt.conf.d/99propr-ci-network-timeoutswithAcquire::Retries "3",Acquire::http::Timeout "30"andAcquire::https::Timeout "30". A drop-in is needed because Playwright runs apt-get through sudo, which drops apt's command-line settings. If the drop-in can't be written, the script fails rather than installing without limits.npx playwright install --with-deps chromiumattempt is capped at 3 minutes. If one times out, the script stops any leftoverapt-get/dpkg, finishes any half-done package setup (capped at 60 seconds), and tries once more.npx playwright install chromium.timeout-minutes: 10) on every step that installs Chromium:pr-build-check.yml: the PWA smoke-test install (two 3-minute attempts plus cleanup fit inside it)pr-test-on-label.yml: the browser-test installdesktop-release-guard.yml: both installs.propr/setup.sh: the nightly and labelled docs-validation jobs install Chromium through this script rather than in a separate step, so I capped its browser download at 10 minutes there instead. It falls back to an unbounded download on machines withouttimeout. This goes slightly beyond what the issue listed; it's how I covered the nightly workflow.test/ciChromiumInstall.test.mjs, also added totest:unit. It runs the script with sudo,timeoutand npx stubbed out and checks the apt settings, the retry, the fail-closed cases and the unchanged self-hosted path. It also checks that every Chromium install step in every workflow has a timeout of 15 minutes or less, and that the two attempts fit inside the step's limit.test/ciRunnerRouting.test.mjsI removed the hosted-runner assertion, which the new file now covers.Checks
bash -npasses.macos-15-intelrunner label, on lines this change doesn't touch.Nothing ran on a real GitHub-hosted runner, so whether the 30-second apt timeouts are enough on their own against that mirror stall is unproven. If they aren't, the 3-minute cap and retry are the backstop.
There's no visual change, so I made no previews.
Detailed Logs:
02ce24ad-b987-4786-8090-edf95230bb27Log files stored at:
/usr/src/app/logs/executions/issue-3411-2026-11-01T03-04-09-819Z-conversation.json/usr/src/app/logs/executions/issue-3411-2026-11-01T03-04-09-819Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3411.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!