Repository navigation
fix: stop the Workshop learning end-to-end test from failing unrelated PRs - #201113
Conversation
… session request #200545 made the Workshop review send the session's own request: the full conversation, the session's tool list (skill_workshop sits behind the tool catalog) and the session's output limit. This e2e file still asserted the removed 64 KiB / 2,048-token / skill_workshop-only review request and called skill_workshop directly, so both cases failed on main. Main CI does not run .e2e.test.ts files; only the per-PR changed-test plan selects it.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR updates Workshop learning tests to use the session’s tool catalog and removes assertions for retired request limits. Example: The coding-profile Workshop review patches the map-publication skill.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this focused test repair matches the intentional Workshop fork contract and preserves meaningful failure and learning coverage; no actionable defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway tests drive Workshop reviews through the loaded plugin and a synthetic HTTP provider, then inspect requests, skill files, recorded changes, and the source transcript. flowchart TD
A[Gateway test fixture] --> B[Loaded Workshop plugin]
B --> C[Session fork runner]
C --> D[Synthetic HTTP provider]
D --> E[Tool catalog dispatcher]
E --> F[Workshop skill updates]
F --> G[Change records and Learned notice]
Technical reviewBest possible solution: Merge the focused test repair while retaining the existing production fork owner and behavioral assertions. Do we have a high-confidence way to reproduce the issue? The old assertions contradict the current fork implementation, and the PR supplies specific before-and-after failures; this read-only review executed no target code. Is this the best way to solve the issue? The patch is the smallest complete repair: update obsolete expectations and the mock tool route while preserving the distinct no-retry and successful-learning checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 81c9c3b2dacf. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -13. Total -13 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 4:53 AM ET / 09:53 UTC. |
…d PRs (openclaw#201113) * test(gateway): update Workshop learning e2e for reviews that fork the session request openclaw#200545 made the Workshop review send the session's own request: the full conversation, the session's tool list (skill_workshop sits behind the tool catalog) and the session's output limit. This e2e file still asserted the removed 64 KiB / 2,048-token / skill_workshop-only review request and called skill_workshop directly, so both cases failed on main. Main CI does not run .e2e.test.ts files; only the per-PR changed-test plan selects it. * test(gateway): drop "bounded" from the Workshop rate-limit case title
Related: #200545
What Problem This Solves
Every pull request whose changes reach the Gateway session code fails its required checks, because
src/gateway/gateway-workshop-learning.e2e.test.tsfails onmainin both of its cases. The failures have nothing to do with those pull requests. Example: #201060, wherechecks-node-changedfails only on this file.User Impact
No user-visible change. Contributors and maintainers no longer see an unrelated required-check failure on pull requests that touch the Gateway session code.
Why This Change Was Made
#200545 changed the Skill Workshop review on purpose. The review is now a fork of the chat: it sends the session's own request (full conversation, system prompt, the session's tool list and output limit) so that the provider's prompt cache serves it. The 32 KiB excerpt, the 2,048-token output cap and the
skill_workshop-only tool list were removed, anddocs/tools/self-learning.mdwas updated to match. That pull request updatedgateway-plugin-forked-turn.e2efor the new contract, but this file kept asserting the old one:max_output_tokens: 2048and onlyskill_workshoplisted. The review now sends the whole conversation (about 723 KB with the test's 700 KB history), soexpected 723137 to be less than 65536. The case now drops those removed-contract checks and their fixtures. It still checks what holds: a TPM rate limit ends the review after exactly one request (no retry), and that request carries the conversation's evidence.skill_workshopby name. In the session's tool list (tools.profile: "coding"), plugin tools sit behind the tool catalog, so the review's calls never reached the Workshop and no💾 Learned:notice was written. The mock now calls it throughdispatch_action(asgateway-plugin-forked-turn.e2edoes since refactor: let background chat forks reuse the chat's prompt cache #200545). Every other assertion is unchanged: the skill and its support file are patched, two review changes are recorded, the source history is untouched, and the notice and undo hint are announced.Main's CI did not catch this. The base Vitest configs exclude
*.e2e.test.ts, and main's Node test plan does not list this file. Only the per-PR changed-test plan picks it up, through the import graph of the files a pull request touches.Test-only change. One file, +9/−22. No production code.
Evidence
Each run was the single file (
node scripts/run-vitest.mjs run src/gateway/gateway-workshop-learning.e2e.test.ts,CI=true) on a Linux x86-64 test machine:main(febe2937243)expected 723012 to be less than 65536💾 Learned:(80 s poll)2a7ca163a57)expected 726306 to be less than 65536💾 Learned:234be124953), case timeouts raised only for that slow machine's cold buildmain(four runs)On the same head,
oxfmt --checkandoxlinton the file andpnpm tsgo:core:testpass.The rate-limit case keeps its 60 s budget. On that machine, the first Gateway start right after a cold rebuild can run past it, on
mainas well as on this branch. Warm runs take 45–52 s there;checks-node-changedtook 33 s for the same case onmain.These reproduce the failures in
checks-node-changedon #201060 (run 44260687609).