Skip to content

[3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews - #3909

Merged
integry merged 3 commits into
3758-epic-runtime-abstraction-sc0from
3907/gpt-6.2-sol-sprites-runtime-chromium--20261130-0203-xdx
Nov 30, 2026
Merged

integry merged 3 commits into
3758-epic-runtime-abstraction-sc0from
3907/gpt-6.2-sol-sprites-runtime-chromium--20261130-0203-xdx

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3907

Branch: 3907/gpt-6.2-sol-sprites-runtime-chromium--20261130-0203-xdx
Commits: ✅ Changes committed (7b1bd1b)


AI Processing Completed

Execution Details:

Summary:
Fresh Sprites now install Chromium’s Ubuntu 26.04 libraries and fonts before ProPR creates the clean checkpoint. Warm runs inherit those dependencies, and repositories can download the browser that matches their Playwright version.

98 targeted tests passed, and Playwright produced a valid 1024×768 PNG locally. The fresh-Sprite smoke test now captures a screenshot as the unprivileged node user, but live verification remains pending because PROPR_SPRITES_LIVE_TOKEN was unavailable.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • scripts/sprites-agent-setup.sh (+18/−5)
  • Low risk (1 file)
    • test/spritesRuntime.live.test.ts (+8/−1)

Diff size: 2 files changed, +26/−6 lines

View task for the run's logs and conversation.


This PR was created automatically by ProPR after processing issue #3907.


💡 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!

Fresh Sprites now install Chromium’s Ubuntu 26.04 libraries and fonts before ProPR creates the clean checkpoint. Warm runs inherit those dependencies, and repositories can download the browser that matches their Playwright version.

98 targeted tests passed, and Playwright produced a valid 1024×768 PNG locally. The fresh-Sprite smoke test now captures a screenshot as the unprivileged `node` user, but live verification remains pending because `PROPR_SPRITES_LIVE_TOKEN` was unavailable.

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev

propr-dev Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 3/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 3/4
  • Result: failure
  • Commit: 7b1bd1bc8068 (7b1bd1bc80680b6a1ed3ae199abd0d4542d62adf)
  • Run: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:27622
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 02edf9b

Summary of Changes

Fixed the flaky OpenSSH test that failed Full Test Suite Shard 3/4. ssh2 occasionally generates an Ed25519 key that its own parser rejects. The test now uses the Sprite runtime’s existing helper, which validates each key and retries when parsing fails. Failed CI job

On CI’s Node.js version, 76 targeted tests passed, including both tests against a real OpenSSH daemon. The core build passed. Two live Sprite tests were skipped because the token was unavailable, and the full shard remains unverified.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/agents/runtime/sprites/spritesMcpForward.ts (+3/−3)
  • Low risk (1 file)
    • test/spritesMcpForwardOpenSsh.test.ts (+4/−4)

Diff size: 2 files changed, +7/−7 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @propr-dev[bot]
  • Time: 5m 56s
  • Tokens: 1,334,499 (1,329,435 in / 5,064 out)
  • Cost: $0.30

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7267144704✓

Fixed the flaky OpenSSH test that failed Full Test Suite Shard 3/4. `ssh2` occasionally generates an Ed25519 key that its own parser rejects. The test now uses the Sprite runtime’s existing helper, which validates each key and retries when parsing fails. [Failed CI job](https://github.com/integry/propr/actions/runs/46339096530/job/141586237879)

On CI’s Node.js version, 76 targeted tests passed, including both tests against a real OpenSSH daemon. The core build passed. Two live Sprite tests were skipped because the token was unavailable, and the full shard remains unverified.

PR: #3909
Comment by: @propr-dev[bot] (ID: 7267144704)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev propr-dev Bot changed the title 🔨 [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews ✅ [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews Nov 30, 2026
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ✅ [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews 🔨 [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews Nov 30, 2026
@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Ready to merge within the reviewed scope. The change installs Chromium dependencies during provisioning and adds a screenshot smoke test. Review was static; no commands or tests were run. Current-head checks report 24 passed and 17 skipped.

✅ Checkpoint placement — Dependencies are installed before provisioning creates the clean checkpoint, so subsequent restores retain them.

✅ Unprivileged browser smoke test — The live test verifies execution as node, downloads a version-matched browser, captures a screenshot, and checks that the output is nonempty.

✅ Shared key-generation behavior — OpenSSH tests reuse the existing parse-checked key generator without changing production key-generation semantics.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise screenshots after restore

In test/spritesRuntime.live.test.ts, screenshot capture runs only during the first, Claude iteration. Optionally repeat it during a later provider iteration to directly demonstrate browser operation after checkpoint restoration. The provisioning order supports persistence already, so this is additional coverage rather than a merge requirement. Running the live test when credentials are available would also confirm the package list against an actual Sprite.

Score

The implementation is focused, the changed paths are consistent with the objective, and current checks show no failures. Actual Sprite browser execution remains unverified in this review and reportedly pending in the implementation run.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 21s
  • Tokens: 40,233 (39,847 in / 386 out)
  • Cost: $0.31

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews ✅❽ [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews Nov 30, 2026
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

One regression to fix before merge. scripts/sprites-agent-setup.sh runs under set -euo pipefail, and install_chromium_dependencies has no failure handling. If apt-get update or the Chromium package install fails (a transient mirror error, a renamed t64 package on a future base image), the whole Sprite setup aborts, and every agent run on Sprites fails, not just visual previews. Before this change, the apt step was best-effort: the openssh install logged and continued.

Please:

  1. Make the Chromium dependencies best-effort. If apt-get update or the install fails, log one clear line ("Chromium libraries could not be installed; visual previews on this Sprite will be unavailable") and continue. Keep install_forward_sshd best-effort too, now that it relies on that shared apt-get update; if the update failed, it should still try its own install or log and continue as before.
  2. Remove apt-get from the required-tools list, restoring the old command -v apt-get guard that logs and skips.
  3. Add a test, following the existing setup-script tests, where a failing apt-get shim makes the setup still complete (exit 0) and log the preview warning.

@propr-dev propr-dev Bot changed the title ✅❽ [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews 🔨 [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews Nov 30, 2026
@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c9554ac

Summary of Changes

Sprite setup now continues if apt-get update or the Chromium package install fails, logging one warning that visual previews will be unavailable. apt-get is optional again. If it’s present and SSH needs to be installed, setup still attempts that install after a failed update and logs any failure without aborting.

Regression tests verified exit code 0 and the preview warning for both apt failure modes, plus graceful handling when apt-get is missing. All 70 targeted tests passed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • scripts/sprites-agent-setup.sh (+12/−8)
  • Low risk (1 file)
    • test/spritesRuntime.test.ts (+28/−0)

Diff size: 2 files changed, +40/−8 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 4m 40s
  • Tokens: 416,033 (411,908 in / 4,125 out)
  • Cost: $0.15

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7276760575✓

Sprite setup now continues if `apt-get update` or the Chromium package install fails, logging one warning that visual previews will be unavailable. `apt-get` is optional again. If it’s present and SSH needs to be installed, setup still attempts that install after a failed update and logs any failure without aborting.

Regression tests verified exit code 0 and the preview warning for both apt failure modes, plus graceful handling when `apt-get` is missing. All 70 targeted tests passed.

PR: #3909
Comment by: @integry (ID: 7276760575)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev propr-dev Bot changed the title 🔨 [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews ✅❽ [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews Nov 30, 2026
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Reviewed c9554ac: the Chromium libraries and the openssh install are best-effort again, apt-get is no longer a required tool, and a test covers a failing apt. Live: on propr-dev-3868 a fresh Sprite was set up with this package list under the earlier fail-fast script, and the smoke task (integry/propr-fly-fixture#148) ran, so the packages install cleanly on the current Sprite image. End-to-end preview capture will be exercised on the demo repo during the recorded walkthrough.

@integry
integry merged commit ad74c6d into 3758-epic-runtime-abstraction-sc0 Nov 30, 2026
41 checks passed
@propr-dev propr-dev Bot changed the title ✅❽ [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews [3907 by GPT-6.2 Sol] Sprites runtime: Chromium system libraries missing for visual previews Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant