Skip to content

test(pr): initialize alias fixture dependencies once and preserve links - #149638

Merged
steipete merged 1 commit into
mainfrom
upd/redmain43-alias-fixture
Sep 16, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/redmain43-alias-fixture

Conversation

@steipete

@steipete steipete commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The alias fixture still initializes dependencies twice, and its helper deletes and recreates every link on repeated setup. This is a maintainer-requested follow-up to the fixture regressions reintroduced by overlapping squash merges.

Refs #149475, #149481, #149488, #149520, #149558.

User Impact

No user-visible runtime change. This is an internal test-fixture repair; production code, update behavior, configuration, and dependencies are unchanged.

Why This Change Was Made

Initialize the alias fixture once and preserve existing dependency links on repeated setup. Main now creates the directory recursively but deletes and recreates every dependency link. This change skips existing entries, retaining installed third-party package targets and the Windows junction branch. The existing repeat-initialization regression from #149558 remains unchanged.

Scope: production +0/-0; tests and test support +6/-6.

Evidence

  • Exact-head CI run 35051979002: green for 37f7e0d77a044bb5e4105ec5592142f1a38c2e0e. Native hosted CI/Testbox preparation passed without changing the head.

  • Published ClawSweeper review: exact head verified; no findings and no before-merge or rank-up actions.

  • Original baseline: the full pr-wrappers.test.ts run reported 12 failed / 80 passed, all twelve alias cases failing at duplicate directory creation.

  • The repeat-initialization regression failed against the original helper with EEXIST.

  • Initial repair: the full wrapper file passed 93/93; node scripts/check-changed.mjs, diff checks, and independent Codex branch review through P1 passed.

  • Rebased candidate 37f7e0d77a044bb5e4105ec5592142f1a38c2e0e: node scripts/run-vitest.mjs test/scripts/pr-wrappers.test.ts passed 93/93; node scripts/check-changed.mjs --staged and git diff --check passed. Fresh Codex review of the resolved patch was scoped-clean through P1.

  • The requested full test/scripts/ run recorded 4,925 passing cases before interruption after an unrelated temp-directory cleanup failure. Its log line was:

× ci-git-owner.test.ts > workflow sanity retains real 30-second fetch timeout 82553ms
→ ENOTEMPTY, Directory not empty: <fixture-temp-dir>

The maintainer authorized one rerun of node scripts/run-vitest.mjs test/scripts/ci-git-owner.test.ts and proceeding with this unrelated pre-existing teardown flake documented. The original 30-second-timeout case passed on that rerun in 42.519 seconds. The one-time rerun finished with 122 passed, 32 skipped, 5 failed. Three release-ancestry cases reported the same ENOTEMPTY, Directory not empty teardown signature (local log lines 5–15). Two publisher cases reported a separate fixture deadline exceeded assertion: verify_publication cancel at ^ls-tree (45.622 s; line 446) and ordinary stale-lease 125 permits the exact deletion rebuild (47.609 s; line 529). None references the alias fixture helper. These historical failures belong to the pre-rebase candidate and are recorded separately from current candidate proof. The maintainer explicitly authorized proceeding unless the rerun failed in the alias helper. No exclusions, timeout changes, or further retries were made.

@clawsweeper

clawsweeper Bot commented Sep 16, 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.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 16, 2026
@steipete
steipete marked this pull request as ready for review September 16, 2026 03:29
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 11:37 PM ET / September 16, 2026, 03:37 UTC.

ClawSweeper review

What this changes

The PR removes duplicate dependency setup from the PR-command test fixture and preserves existing package links when setup repeats.

Merge readiness

✅ Ready for maintainer review

This maintainer-requested follow-up remains useful: current main tolerates repeated setup but still recreates dependency links and initializes the alias fixture twice. No actionable correctness or security defect was found in the introduced patch.

Priority: P3
Reviewed head: 37f7e0d77a044bb5e4105ec5592142f1a38c2e0e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture cleanup with preserved behavioral coverage, reported validation at the reviewed head, and no blocking finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored fixture cleanup is exempt from external-contributor runtime proof; the captured body reports 93/93 wrapper cases passing at the reviewed head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored fixture cleanup is exempt from external-contributor runtime proof; the captured body reports 93/93 wrapper cases passing at the reviewed head.
Evidence reviewed 7 items Verified introduced patch: The pinned merge-base-to-head diff changes only fixture setup: existing entries are retained, and one redundant initialization is removed. Assertions and production scripts are unchanged.
Setup ordering and retained coverage: The remaining initialization at line 1267 precedes the Node recorder. Nine delegation cases still check exact arguments, caller directory, and exit 73; three refusal cases still require rejection without execution. The existing repeat-initialization regression remains intact.
Current main still has the proposed cleanup: Fetched main uses recursive directory creation but unconditionally removes each dependency entry before recreating it. Its alias fixture also retains both initialization calls, so this branch is not redundant.
Findings None None.
Security None None.

How this fits together

PR-command fixtures create temporary Git checkouts with installed dependencies to test command delegation. They let the tests verify arguments, working directories, and trust-anchor refusals before native PR operations execute.

flowchart LR
  A[Temporary Git checkouts] --> B[Dependency setup]
  C[Installed packages] --> B
  B --> D{Link already exists}
  D -->|Yes| E[Preserve link]
  D -->|No| F[Create package link]
  E --> G[Alias delegation checks]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 6 6 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 6 6 0

Review metrics

None.

Technical review

Best possible solution:

Keep dependency initialization in the existing fixture owner, preserve established links, and retain the executable delegation and refusal checks.

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

Not applicable to a remaining runtime bug: main already prevents the historical EEXIST failure, while source inspection confirms redundant initialization and link replacement remain.

Is this the best way to solve the issue?

Yes. The patch consolidates setup without weakening assertions or changing dependency targets, and retains the existing regression coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8432c139340a.

Labels

Label changes:

  • add P3: This is a bounded internal fixture cleanup with no production or user-facing 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: The maintainer-authored fixture cleanup is exempt from external-contributor runtime proof; the captured body reports 93/93 wrapper cases passing at the reviewed head.

Label justifications:

  • P3: This is a bounded internal fixture cleanup with no production or user-facing 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: The maintainer-authored fixture cleanup is exempt from external-contributor runtime proof; the captured body reports 93/93 wrapper cases passing at the reviewed head.

Evidence

What I checked:

  • Verified introduced patch: The pinned merge-base-to-head diff changes only fixture setup: existing entries are retained, and one redundant initialization is removed. Assertions and production scripts are unchanged. (test/scripts/pr-wrapper.test-support.ts:19, 37f7e0d77a04)
  • Setup ordering and retained coverage: The remaining initialization at line 1267 precedes the Node recorder. Nine delegation cases still check exact arguments, caller directory, and exit 73; three refusal cases still require rejection without execution. The existing repeat-initialization regression remains intact. (test/scripts/pr-wrappers.test.ts:1267, 37f7e0d77a04)
  • Current main still has the proposed cleanup: Fetched main uses recursive directory creation but unconditionally removes each dependency entry before recreating it. Its alias fixture also retains both initialization calls, so this branch is not redundant. (test/scripts/pr-wrapper.test-support.ts:19, 8432c139340a)
  • Earlier merged fixture repair: GitHub's commit patch for test(gateway): stabilize yielded-session settlement #149558 confirms the earlier recursive-directory repair and repeat-initialization regression. It does not provide this PR's link-preservation behavior. Local historical blob reads failed; the relevant patch was inspected through the read-only GitHub API. (test/scripts/pr-wrappers.test.ts:191, 2dd0ed92ea6f)
  • Latest release boundary: The helper file at v2026.9.4 contains only source-copying support and lacks the dependency-link helper. The reviewed fixture work concerns later development tooling; no shipped fix is claimed. (test/scripts/pr-wrapper.test-support.ts:1, 3a9d69db306c)
  • Captured validation and proof scope: The complete captured PR body reports 93/93 wrapper tests passing at the reviewed head and separates earlier unrelated teardown failures. Tests were not executed during this read-only review. The three inspected downloaded images belong to the related plugin-details PR and do not demonstrate this fixture change. (37f7e0d77a04)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • steipete: 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
steipete merged commit 4c807f7 into main Sep 16, 2026
179 checks passed
@steipete
steipete deleted the upd/redmain43-alias-fixture branch September 16, 2026 04:04
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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