Skip to content

feat(image): add pwtrace to code agent image#17

Open
subhashkhileri wants to merge 3 commits into
redhat-developer:mainfrom
subhashkhileri:feat/e2e-agent-tooling
Open

feat(image): add pwtrace to code agent image#17
subhashkhileri wants to merge 3 commits into
redhat-developer:mainfrom
subhashkhileri:feat/e2e-agent-tooling

Conversation

@subhashkhileri

@subhashkhileri subhashkhileri commented Jun 19, 2026

Copy link
Copy Markdown
Member

Summary

  • pwtrace (pinned v0.3.0): Playwright trace analysis CLI for inspecting browser actions, DOM state, console errors, and network requests from failed E2E test traces. Currently downloaded on-the-fly via npx each invocation.

Security considerations

  • pwtrace pinned to exact version to avoid supply-chain surprises

Test plan

  • Build the image locally: podman build -t rhdh-fullsend-code:local -f images/code/Containerfile images/code/
  • Verify pwtrace --version works inside the container
  • Run the e2e-fix agent against a nightly failure and confirm trace analysis work end-to-end

🤖 Generated with Claude Code

The e2e-fix agent needs these tools for nightly failure analysis:

- gcloud CLI (pinned v526.0.0): downloads test artifacts from GCS
  buckets where Prow stores nightly/PR E2E results. Only the base
  SDK is installed (no extra components). Auth is runtime-only —
  no credentials baked into the image.

- pwtrace (pinned v0.3.0): Playwright trace analysis CLI that lets
  agents inspect browser actions, DOM state, console errors, and
  network requests from failed test traces.

Both are version-pinned for reproducible builds and installed under
USER root before dropping back to sandbox.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
curl and python3 are already in the base image. Use
dpkg --print-architecture instead of uname+sed for the
download URL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@subhashkhileri subhashkhileri changed the title feat(image): add gcloud CLI and pwtrace to code agent image feat(image): add pwtrace to code agent image Jun 22, 2026
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.

1 participant