Skip to content

fix(ci): route UI E2E PR retries to hosted runners - #120997

Merged
vincentkoc merged 4 commits into
mainfrom
fix/ci-ui-e2e-retry-hosted-20260809
Aug 9, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
fix/ci-ui-e2e-retry-hosted-20260809

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 9, 2026 •

Copy link
Copy Markdown
Member

Related: #119112, #119115, #119120, #120927

Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Fixes an issue where rerunning the checks-ui-e2e pull-request job could reuse
the same Blacksmith runner path instead of providing an independent
GitHub-hosted retry.

Hosted four-shard passes already exist in these full CI runs:

Prior red UI E2E failures map to
#119112 and
#119115. Their owner fixes merged in
#119120 and
#120927.

Why This Change Was Made

This PR owns only the checks-ui-e2e retry runner and its dependency-cache
coupling. Same-repository first attempts and pushes retain the Blacksmith path.
Pull-request retries, fork pull requests, and manual dispatches use
ubuntu-24.04; those hosted paths disable sticky dependency storage and use
the Actions cache path.

It does not change Control UI runtime behavior, test timeouts, shard count, or
the owner fixes linked above.

User Impact

Maintainers can rerun failed pull-request UI E2E checks on independent hosted
capacity without changing the canonical first-attempt path.

Evidence

  • Focused workflow guard: 108 passed, 2 skipped.
  • node scripts/check-workflows.mjs: passed (zizmor and composite-action input checks).
  • actionlint .github/workflows/ci.yml: passed.
  • pnpm docs:list: completed successfully.
  • oxfmt --check for the three changed files: passed.
  • git diff --check: passed.
  • All three published descendant commits retain valid ED25519 signatures and the
    Punchcard-Session: amber-workshop-workshop-36 trailer.
  • Follow-up capture guard autoreview: clean, no actionable findings.

Punchcard-Session: amber-workshop-workshop-36

Punchcard-Receipt: pc1.cHVuY2hjYXJkLXNlcnZlci1yZWNlaXB0LXYxAGF0dF8wMUtaSzI3NlNER0dITUc1QThHWVFKOFZUVAB0bnRfMDFKMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAdXNyXzAxSjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxAGRldl9FMDNCQTNBOENDNzdGOUQ5QjFCRTI3RTE5MgB3cmtfMDFLWkFCN1pDVzBHRktKTVI5QTdKRjA2MlQAc2VzXzAxS1pGWE42TVBWRDRBMzM2VlZDWVdHUDQ1AGFtYmVyLXdvcmtzaG9wLXdvcmtzaG9wLTM2AG9wZW5jbGF3L29wZW5jbGF3AAAxMjA5OTcAYmNiMDg0ZTVlZjJkMmFjY2E3NjA4MzdkZGQ2MWU3ZWMwNTcxOGM4OWIyZjkwNjEwNzdhMWNiNjA2NjAxM2NlZABzaWduaW5nLXYxAFFWR1JZTFRSM1hVakp1MGhCMjBtNzNJaXBxS1BvT3hUWDN6YXRPYUl0VXhFTzJHb213Wm9Ka2ZKMnp6alJqMDBKZWhfRVdvLXRaWWxFNnJBZkw3VkFnADIwMjYtMDgtMDlUMTA6NDg6NDEuMDA1WgA.HH1kvxVpWAJxYGhcyuNUWyJ7U9Sl4WdEZp_MZG6FBYYM5ksnXUS6UMczKdKsZM9D2FxVe7GxuWAbUdBlU003BQ

Punchcard-Session: amber-workshop-workshop-36
@vincentkoc vincentkoc self-assigned this Aug 9, 2026
@clawsweeper

clawsweeper Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS maintainer Maintainer-authored PR labels Aug 9, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 9, 2026
@clawsweeper

clawsweeper Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 9, 2026, 7:40 AM ET / 11:40 UTC.

ClawSweeper review

What this changes

Routes retried Control UI E2E pull-request jobs to GitHub-hosted runners while making their dependency-cache mode match the selected runner.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: this maintainer-owned CI change is not on current main, addresses a narrow retry-path gap, and has no concrete correctness finding after the prior type-safety issue was fixed.

Priority: P1
Reviewed head: 7730ed4ad0395a09c107e843b5c920d99bb5ba49
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused automation change with green exact-head checks and no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored CI workflow PR is evaluated through workflow guards and exact-head CI, not the external-contributor real-behavior-proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored CI workflow PR is evaluated through workflow guards and exact-head CI, not the external-contributor real-behavior-proof gate.
Evidence reviewed 4 items Current-main gap: Current main keeps same-repository PR reruns on Blacksmith and retains sticky storage; it has no retry-specific hosted fallback, so this PR is not obsolete.
Runner/cache contract: The shared setup action constrains sticky disk to Blacksmith Linux and couples it with Actions-cache selection, supporting the PR's paired conditions.
Exact-head validation: The supplied exact-head checks for 7730ed4 include check-test-types and all four checks-ui-e2e shards passing after the capture guard fix.
Findings None None.
Security None None.

How this fits together

The CI workflow schedules Control UI E2E shards and selects setup cache behavior for each runner. Results feed the aggregate CI gate used by maintainers to validate pull requests.

flowchart LR
A[Pull request event] --> B[UI E2E workflow job]
B --> C{First attempt or retry}
C --> D[Blacksmith runner]
C --> E[GitHub-hosted runner]
D --> F[Sticky dependency storage]
E --> G[Actions cache]
F --> H[CI gate]
G --> H[CI gate]
Loading

Decision needed

Question Recommendation
Should maintainers accept GitHub-hosted capacity for UI E2E PR retries in exchange for an independent retry path? Accept the retry policy: Merge the tested retry-only hosted fallback while keeping first attempts and pushes on Blacksmith.

Why: This is an operational capacity and cost policy choice, even though the implementation is narrow and validated.

Before merge

  • Resolve merge risk (P1) - Merging changes the runner and cache path used when maintainers rerun UI E2E failures; retain the exact-head workflow guards and required CI checks before merge.
Agent review details

Security

None.

PR surface

Tests +125, Docs 0, Config -1. Total +124 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 133 8 +125
Docs 1 11 11 0
Config 1 6 7 -1
Generated 0 0 0 0
Other 0 0 0 0
Total 3 150 26 +124

Review metrics

Metric Value Why it matters
Production versus test LOC workflow/docs +17/-18; tests +133/-8 The production change is net-negative and the added test coverage enumerates runner/cache routing cases.

Stored data model

Persistent data-model change detected: persistent cache schema: .github/workflows/ci.yml. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Merge with the tested retry boundary (recommended)
    Retain the retry-specific hosted runner and matching cache conditions, with the existing workflow guards and exact-head required checks.
  2. Decline the hosted capacity tradeoff
    Keep all same-repository UI E2E attempts on Blacksmith if operational policy does not support a hosted fallback.

Technical review

Best possible solution:

Keep a retry-only hosted fallback with cache settings coupled to runner type, preserving Blacksmith for first same-repository attempts and pushes.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is CI policy behavior, assessed through workflow expressions, guard coverage, and exact-head CI rather than a product-runtime reproduction.

Is this the best way to solve the issue?

Yes: current main lacks the retry-only branch, while existing macOS retry policy and the setup-action contract support placing the decision in this workflow rather than changing E2E tests or timeouts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4cb33d48cddb.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored CI workflow PR is evaluated through workflow guards and exact-head CI, not the external-contributor real-behavior-proof gate.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: This changes the retry path maintainers rely on when diagnosing failing Control UI E2E checks.
  • merge-risk: 🚨 automation: Runner selection and cache routing for a required CI job change on merge.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored CI workflow PR is evaluated through workflow guards and exact-head CI, not the external-contributor real-behavior-proof gate.

Evidence

What I checked:

Likely related people:

  • steipete: Recent main-chain integration work is adjacent to the PR base, but shallow history prevents a stronger attribution to the UI E2E runner policy. (role: recent integration contributor; confidence: low; commits: 7af8e129d685; files: .github/workflows/ci.yml, test/scripts/ci-workflow-guards.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-09T08:44:37.965Z sha ba994d0 :: found issues before merge. :: [P1] Disable Blacksmith sticky storage on hosted retries
  • reviewed 2026-08-09T10:39:37.417Z sha a7d2791 :: found issues before merge. :: [P1] Guard the workflow-expression capture before evaluation

Punchcard-Session: amber-workshop-workshop-36
Punchcard-Session: amber-workshop-workshop-36
@vincentkoc
vincentkoc marked this pull request as ready for review August 9, 2026 10:17
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 9, 2026
Punchcard-Session: amber-workshop-workshop-36
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 9, 2026
@vincentkoc
vincentkoc merged commit f83ba2b into main Aug 9, 2026
195 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-ui-e2e-retry-hosted-20260809 branch August 9, 2026 11:50
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
* fix(ci): route UI E2E PR retries to hosted runners

Punchcard-Session: amber-workshop-workshop-36

* fix(ci): align UI E2E retry cache routing

Punchcard-Session: amber-workshop-workshop-36

* fix(ci): clarify UI E2E retry routing

Punchcard-Session: amber-workshop-workshop-36

* fix(ci): validate workflow expression capture

Punchcard-Session: amber-workshop-workshop-36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant