Skip to content

perf(test): reuse the Periphery producer workflow snapshot - #189681

Merged
vincentkoc merged 1 commit into
mainfrom
perf-test-periphery-producer-snapshot-next100-20261101
Nov 27, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
perf-test-periphery-producer-snapshot-next100-20261101

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Periphery publication fixtures reread and parse the same producer workflow while constructing event metadata and checking artifact wiring.

User Impact

The complete suite uses its existing immutable producer-workflow snapshot. No application or workflow behavior changes.

Why This Change Was Made

The test file already owns a parsed producer snapshot. Use it in metadata projection, upload-step lookup and publication admission. Each metadata projection still creates independent event rows; the commenter keeps its separate reader. Workflow inputs and assertions are unchanged.

Evidence

  • Complete owner:78 cases pass under Node and Bun; original owner also passes its78-case control.
  • Actual producer read instrumentation measures93 reads/parses originally and1 after the change. Rejecting a second producer read leaves all78 candidate cases green and fails the original suite at its real read boundary.
  • Matching frozen-source script types, type-aware lint, formatting and diff checks pass.
  • Complete-context independent review found no actionable P0-P2 finding (.99).
  • Production/tooling0 LOC; tests/support-2 LOC. Removes92 redundant producer reads/parses per complete owner run; no process, elapsed-time or billed-minute saving is claimed.

@clawsweeper

clawsweeper Bot commented Oct 31, 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.

@vincentkoc vincentkoc self-assigned this Oct 31, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 31, 2026 18:59
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR reuses the existing parsed Periphery producer workflow in metadata fixtures, artifact checks, and publication admission tests.

Example: Construct metadata for a ready_for_review Periphery run.

  • Before: Each fixture call rereads and parses macos-periphery.yml.
  • After: Each call reads the existing snapshot while creating fresh event metadata.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is narrow and source-supported; validation consists of reported suite and instrumentation results rather than independently inspected execution output.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, test-only optimization changes no shipped behavior; the body reports complete-suite controls and read instrumentation, which this review did not execute.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Periphery publication tests repeatedly read and parse unchanged producer YAML.
Reason: The maintainer-authored change removes unnecessary work using an existing owner while preserving test coverage and fixture isolation.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR removes redundant test fixture parsing without changing assertions or workflow behavior; no actionable defect was found.

Priority: P3
Reviewed head: 518c49df3c19d7f3ec28845c93f6f18ba8064e6b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The test suite reads producer YAML and executes the commenter script with synthetic GitHub responses to check report publication behavior.

flowchart LR
  A[Producer workflow YAML] --> B[Shared parsed snapshot]
  B --> C[Fresh event and job fixtures]
  D[Commenter workflow YAML] --> E[Commenter executor]
  C --> E
  E --> F[Publication assertions]
Loading

Technical review

Best possible solution:

Reuse the existing producer snapshot while retaining fresh invocation state and all publication assertions.

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

Source confirms repeated synchronous reads and parses of the same producer YAML; execution was excluded by the read-only review.

Is this the best way to solve the issue?

This is the smallest complete change: consume the snapshot already owned by the suite without adding a cache, wrapper, or test scaffolding.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9e64fc4ab762.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit b649540 adds test/scripts/ios-periphery-comment-workflow.test.ts:65 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b649540dbec1; files: test/scripts/ios-periphery-comment-workflow.test.ts)
  • Peter Steinberger: Raw commit f2ef967 adds test/scripts/ios-periphery-comment-workflow.test.ts:92 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f2ef967008fc; files: test/scripts/ios-periphery-comment-workflow.test.ts)

PR surface

Tests -2. Total -2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 5 7 -2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 5 7 -2

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a focused test setup optimization with no application or workflow behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 3:12 PM ET / 19:12 UTC.

@vincentkoc
vincentkoc merged commit 8f8e2d5 into main Nov 27, 2026
137 of 138 checks passed
@vincentkoc
vincentkoc deleted the perf-test-periphery-producer-snapshot-next100-20261101 branch November 27, 2026 08:11
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit 'fd681ab8786e062045fa5ec6261b1b06f60832eb': (2115 commits)
  fix: keep doctor --fix pending checks from creating SQLite sidecars (#206485)
  fix(ci): update iOS screenshot reducer gate (#206497)
  fix: keep chat photo previews sharp within their byte limits (#206461)
  fix: let agents use short Workboard card IDs
  fix(tui): run provider sign-in in the local TUI (#200605)
  improve(config): reduce repeated directory checks for larger agent rosters (#206494)
  perf(test): reuse the Periphery producer workflow snapshot (#189681)
  fix(ci): keep locale assets within the installed package budget (#206492)
  fix: preserve failed Apple chat messages across partial history pages (#205404)
  improve: avoid merging unrelated settings for agent directory lookups (#206489)
  fix: show typing while a queued follow-up turn runs (#201920)
  fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341)
  refactor(codex): centralize native completion delivery (#206447)
  fix(subagents): finish claimed stops after session rotation (#206405)
  fix: let owners fork a chat with exec after a subagent or exec completion (#206483)
  test(cli): gate agent --local cold-start processes and workers (#206466)
  perf(ci): skip baseline inventory when line-cap debt is empty (#189909)
  refactor(test): share core process-result fixtures (#174149)
  refactor(ci): reuse canonical budget flag parsing (#189480)
  fix: recover Codex chats after oversized requests (#206475)
  ...
vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit 'fd681ab8786e062045fa5ec6261b1b06f60832eb': (923 commits)
  fix: keep doctor --fix pending checks from creating SQLite sidecars (#206485)
  fix(ci): update iOS screenshot reducer gate (#206497)
  fix: keep chat photo previews sharp within their byte limits (#206461)
  fix: let agents use short Workboard card IDs
  fix(tui): run provider sign-in in the local TUI (#200605)
  improve(config): reduce repeated directory checks for larger agent rosters (#206494)
  perf(test): reuse the Periphery producer workflow snapshot (#189681)
  fix(ci): keep locale assets within the installed package budget (#206492)
  fix: preserve failed Apple chat messages across partial history pages (#205404)
  improve: avoid merging unrelated settings for agent directory lookups (#206489)
  fix: show typing while a queued follow-up turn runs (#201920)
  fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341)
  refactor(codex): centralize native completion delivery (#206447)
  fix(subagents): finish claimed stops after session rotation (#206405)
  fix: let owners fork a chat with exec after a subagent or exec completion (#206483)
  test(cli): gate agent --local cold-start processes and workers (#206466)
  perf(ci): skip baseline inventory when line-cap debt is empty (#189909)
  refactor(test): share core process-result fixtures (#174149)
  refactor(ci): reuse canonical budget flag parsing (#189480)
  fix: recover Codex chats after oversized requests (#206475)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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