Skip to content

fix: PR workflow tests fail during repository identity checks - #149294

Merged
steipete merged 1 commit into
mainfrom
codex/gateway-perf10-pr-fixtures
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/gateway-perf10-pr-fixtures

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The original cleanup fixture reproduces four failures during repository identity resolution; the independent GC case passes. With the repair, all five cleanup cases pass.
  • All 133 tests across cross-checkout, Crabbox merge bypass, main refresh, and hosted merge suites pass.
  • Independent P0–P2 review found no actionable defects. Four-file formatting and diff checks pass.
  • Selected root-test typechecking, scripts and fixture lint, repository guards, and unused-export scans pass. Exact-head CI and the required merge gate pass, including all four previously failing shards.

@steipete steipete self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 15, 2026 17:16
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 1:23 PM ET / 17:23 UTC.

ClawSweeper review

What this changes

Updates 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
Reviewed head: 348bf025a82361e84030c79a1b20354065a85f97

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair that matches the production contract and preserves useful coverage.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored fixture-only repair does not change production authority or runtime behavior; the reported test results are supplemental validation, not live GitHub proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored fixture-only repair does not change production authority or runtime behavior; the reported test results are supplemental validation, not live GitHub proof.
Evidence reviewed 6 items Current identity contract: Initialization requests authoritative REST metadata and accepts its node or numeric identity; subsequent GraphQL observations compare against id or databaseId. The patched fixtures supply precisely those fields.
Meaningful assertions retained: Cross-checkout tests still verify owner-only operations, unchanged foreign refs, retained captures, and absence of redispatch. Crabbox cases retain revoked-membership rejection and final merge-request assertions; cleanup cases retain failure and lock-release checks.
Repair still absent from fetched main: Comparing the four affected files against fetched main shows the same fixture repairs as the verified introduced delta. The production identity owner has no difference between fetched main and the reviewed head. The supplied verified test-merge result also changes only these fixtures.
Findings None None.
Security None None.

How this fits together

OpenClaw'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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +22. Total +22 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 30 8 +22
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 30 8 +22

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #149294
Summary: This PR owns the native repository-identity fixture repair; related performance PRs encounter the failure but implement distinct changes.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label changes:

  • add P2: Repairs a concrete native-workflow test failure affecting multiple PRs, with no production behavior change.
  • 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 maintainer-authored fixture-only repair does not change production authority or runtime behavior; the reported test results are supplemental validation, not live GitHub proof.

Label justifications:

  • P2: Repairs a concrete native-workflow test failure affecting multiple PRs, with no production behavior change.
  • 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 maintainer-authored fixture-only repair does not change production authority or runtime behavior; the reported test results are supplemental validation, not live GitHub proof.

Evidence

What I checked:

  • Current identity contract: Initialization requests authoritative REST metadata and accepts its node or numeric identity; subsequent GraphQL observations compare against id or databaseId. The patched fixtures supply precisely those fields. (scripts/pr-lib/merge-outcome.sh:21, 348bf025a823)
  • Meaningful assertions retained: Cross-checkout tests still verify owner-only operations, unchanged foreign refs, retained captures, and absence of redispatch. Crabbox cases retain revoked-membership rejection and final merge-request assertions; cleanup cases retain failure and lock-release checks. (test/scripts/pr-cross-checkout.test.ts:177, 348bf025a823)
  • Repair still absent from fetched main: Comparing the four affected files against fetched main shows the same fixture repairs as the verified introduced delta. The production identity owner has no difference between fetched main and the reviewed head. The supplied verified test-merge result also changes only these fixtures. (test/scripts/pr-main-refresh.test-support.ts:428, fff7de747ec5)
  • Merged contract change and routing history: Provided GitHub metadata verifies fix(scripts): preserve merge receipts across repository ID formats #149230 merged the repository identity repair. Local history and its raw commit record corroborate that context. Recent cleanup history also identifies Jason (Json) as an adjacent routing candidate; source-line introduction attribution was not established. (scripts/pr-lib/merge-outcome.sh:21, 7e8a52c3f76e)
  • Discussion and reported validation: The supplied complete PR body reports four original cleanup failures, five passing repaired cleanup cases, and 133 passing related tests. improve: reduce filesystem work for standalone state access #148900 and improve(tooling): reduce import-cycle check peak memory #149266 independently name this repair for inherited native-fixture failures. These are reported results, not tests executed during this review. (348bf025a823)
  • Inspection boundaries: Root and test-scoped AGENTS.md were read fully; no maintainer-notes directory exists. Diff whitespace checks passed and the checkout remained clean. Tests were not executed under the read-only review contract. Missing historical blobs prevented complete blame and release-source inspection, so no release or exact introduction claim is made. (test/AGENTS.md:1, 348bf025a823)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@steipete

Copy link
Copy Markdown
Contributor Author

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.

@steipete
steipete merged commit 7dc8a1e into main Sep 15, 2026
178 checks passed
@steipete
steipete deleted the codex/gateway-perf10-pr-fixtures branch September 15, 2026 18:04
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Sep 15, 2026
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]>
steipete added a commit that referenced this pull request Sep 15, 2026
steipete added a commit that referenced this pull request Sep 15, 2026
fuller-stack-dev pushed a commit that referenced this pull request Sep 16, 2026
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
steipete added a commit that referenced this pull request Sep 16, 2026
…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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…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.
fuller-stack-dev added a commit that referenced this pull request Sep 16, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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