Repository navigation
fix: PR workflow tests fail during repository identity checks - #149294
Conversation
|
🦞👀 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. Reviewed September 15, 2026, 1:23 PM ET / 17:23 UTC. ClawSweeper reviewWhat this changesUpdates fake GitHub clients with consistent REST and GraphQL repository identities so native PR workflow tests reach their intended assertions. Merge readiness✅ Ready for maintainer review This remains a useful, focused fixture repair: current main still lacks these responses, and related PRs identify the same inherited failures. No actionable correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's native PR tooling checks repository identity before merging or reconciling retained outcomes. These tests supply synthetic GitHub responses while checking checkout ownership, authorization, merge receipts, and cleanup. flowchart LR
A[Workflow test scenarios] --> B[Fake GitHub client]
B --> C[REST and GraphQL identities]
C --> D[Native repository identity checks]
D --> E[Merge and recovery workflow]
E --> F[Ownership and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +22. Total +22 across 4 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the authoritative production identity checks and make the existing fixtures accurately model their responses without weakening downstream assertions. Do we have a high-confidence way to reproduce the issue? Yes, from source: current initialization requests a REST repository endpoint that the original fake clients reject, preventing downstream assertions; this review did not execute tests. Is this the best way to solve the issue? Yes. Updating existing fixture responses and accounting for the additional read is the narrow repair, and the important behavioral assertions remain intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fff7de747ec5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
This also covers the four PR-tooling suites failing in #148914's CI after #149230. The additional operation-lock fixture coverage makes this the complete repair among #149288, #149289, and this PR; small31 has now passed in the current run. Are you already taking this through the native landing workflow? I can handle the remaining review/prepare/merge steps once the current-head gates pass, if you would like to hand it off. I have made no changes to this branch. |
|
Merged via squash.
|
Resolve the textual overlap with #149294 without rebasing or modifying Models. Preserve exact REST command checks and all original authorization, freshness, no-dispatch, and cleanup assertions. All 274 affected cases pass; prior 667-case consumer proof remains retained. Co-authored-by: steipete <[email protected]>
(cherry picked from commit 7dc8a1e)
(cherry picked from commit 7dc8a1e)
…48988) * fix: keep environment inventory responsive during pairing cleanup * test: include pairing snapshot in isolated gateway expectations * fix: let profiler help drain pending cleanup * test: preserve process events in runtime identity fixtures * test: avoid loading QA runtime in receipt producers * fix: repair native PR repository identity fixtures (#149294) (cherry picked from commit 7dc8a1e) * fix: keep Codex model attribution fixture focused (#149301) (cherry picked from commit 273b6c5) * test: align canonical model attribution fixture Adopt the complete fixture from #149349 and #149261 so merging the inventory branch retains one terminal-list response. Preserve the controlled completion/timeout cases and the original runtime budget. * test: provide dependencies for PR alias fixtures Keep alias delegation cases on their intended supervisor boundary after code-only linked checkouts gained dependency materialization. Preserve exact arguments, exit status, and trust refusals; retain separate materializer coverage. * test: retire superseded PR alias fixture setup Canonical main already owns linked dependency setup before checkout. Remove the branch-local later setup so the merged fixture matches #149477 exactly, without changing the inventory or lifecycle implementation.
…enclaw#148988) * fix: keep environment inventory responsive during pairing cleanup * test: include pairing snapshot in isolated gateway expectations * fix: let profiler help drain pending cleanup * test: preserve process events in runtime identity fixtures * test: avoid loading QA runtime in receipt producers * fix: repair native PR repository identity fixtures (openclaw#149294) (cherry picked from commit 3df0afa) * fix: keep Codex model attribution fixture focused (openclaw#149301) (cherry picked from commit f778132) * test: align canonical model attribution fixture Adopt the complete fixture from openclaw#149349 and openclaw#149261 so merging the inventory branch retains one terminal-list response. Preserve the controlled completion/timeout cases and the original runtime budget. * test: provide dependencies for PR alias fixtures Keep alias delegation cases on their intended supervisor boundary after code-only linked checkouts gained dependency materialization. Preserve exact arguments, exit status, and trust refusals; retain separate materializer coverage. * test: retire superseded PR alias fixture setup Canonical main already owns linked dependency setup before checkout. Remove the branch-local later setup so the merged fixture matches openclaw#149477 exactly, without changing the inventory or lifecycle implementation.
* fix(agents): restore history after failed context assembly * fix(agents): restore validated history after failed context hooks * fix(scripts): preserve merge receipts across repository ID formats (#149230) Bind native PR initialization to GitHub's authoritative node/database ID pair while preserving exact historical repository objects and recovery provenance. Reject unknown identities, numeric strings, and extra fields. Consume the landed prerequisite unchanged for #117328 CI fixture repair. (cherry picked from commit 7e8a52c) * test: refresh repository identity fixtures for PR workflows Consume Peter's canonical #149289 fixture repair unchanged. Original 133-case proof retained with exact fixture, runtime, runner and dependency bindings; no replay. (cherry picked from commit 89321f8) * test: align native PR identity fixtures with landed repair Preserve the two remaining fixture corrections from Peter Steinberger's landed #149294 after adopting the earlier #149289 repair. Both files match the landed source exactly; Context history source is unchanged. Source-commit: 7dc8a1e * test(agents): extract context guard fixtures for line caps Move unchanged message and guard fixtures into a shared test-support module. Preserve every test body and keep the line-cap configuration unchanged. --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…17328) * fix(agents): restore history after failed context assembly * fix(agents): restore validated history after failed context hooks * fix(scripts): preserve merge receipts across repository ID formats (openclaw#149230) Bind native PR initialization to GitHub's authoritative node/database ID pair while preserving exact historical repository objects and recovery provenance. Reject unknown identities, numeric strings, and extra fields. Consume the landed prerequisite unchanged for openclaw#117328 CI fixture repair. (cherry picked from commit 3492551) * test: refresh repository identity fixtures for PR workflows Consume Peter's canonical openclaw#149289 fixture repair unchanged. Original 133-case proof retained with exact fixture, runtime, runner and dependency bindings; no replay. (cherry picked from commit 89321f8) * test: align native PR identity fixtures with landed repair Preserve the two remaining fixture corrections from Peter Steinberger's landed openclaw#149294 after adopting the earlier openclaw#149289 repair. Both files match the landed source exactly; Context history source is unchanged. Source-commit: 3df0afa * test(agents): extract context guard fixtures for line caps Move unchanged message and guard fixtures into a shared test-support module. Preserve every test body and keep the line-cap configuration unchanged. --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Native PR workflow tests fail before reaching their intended merge, recovery, and cleanup assertions. The repository identity lookup added in #149230 now requests authoritative REST metadata, but several fake GitHub clients do not handle that request.
User Impact
Restores CI coverage of the native maintainer workflow. Production behavior is unchanged.
Why This Change Was Made
Update the affected fixtures to return consistent REST repository IDs and GraphQL node/database IDs. Account for the extra lookup while retaining owner-checkout routing, revocation, pinned-head, receipt, and cleanup assertions. The shared refresh fixture also covers hosted merge tests.
Evidence