Skip to content

fix(test): stop collecting empty Vydra helper suite - #116139

Merged
vincentkoc merged 1 commit into
mainfrom
fix/vydra-test-helper-collection-20260729
Jul 30, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/vydra-test-helper-collection-20260729

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a test-suite problem where Vydra shared fixtures were collected as an empty test file, adding misleading (0 test) output to full extension runs.

Why This Change Was Made

Renames the shared fixture module so it no longer matches Vitest test-file patterns, while keeping the image and video provider tests on the same reusable helpers.

User Impact

No user-visible runtime impact. Test output now reflects only executable Vydra suites, making dead-test audits and suite accounting accurate.

Evidence

  • Before: extensions/vydra/provider-test-helpers.test.ts (0 test) appeared in the extension run.
  • After: node scripts/run-vitest.mjs extensions/vydra/image-generation-provider.test.ts extensions/vydra/video-generation-provider.test.ts collected 2 files and passed all 13 tests.
  • git diff --check passed.
  • Autoreview passed with no findings (0.99 confidence).

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 30, 2026
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 8:35 PM ET / July 30, 2026, 00:35 UTC.

ClawSweeper review

What this changes

This PR renames the shared Vydra provider-test fixture from a Vitest-matching filename and updates the image and video provider suites to import the new helper path.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

The patch is a focused, plausible test-discovery cleanup with no concrete correctness or security defect in the three-file diff. It should remain open for explicit maintainer handling because it is authored by a repository member, carries the protected maintainer label, is still a draft, and is behind current main.

Priority: P3
Reviewed head: a049834215b9bb202f7e851bf3c78ac2cb906ed8
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, coherent test-only patch with consistent imports and focused reported validation; the remaining work is branch refresh and maintainer disposition, not a patch defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This repository-member PR is exempt from the external-contributor proof gate; its body nevertheless records a focused after-change Vitest run with 13 passing tests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This repository-member PR is exempt from the external-contributor proof gate; its body nevertheless records a focused after-change Vitest run with 13 passing tests.
Evidence reviewed 4 items Current-main discovery trigger: Current main names the shared fixture provider-test-helpers.test.ts, so it matches the same test-file convention used by the two executable suites.
Current-main consumers: Both Vydra provider suites import the shared helper through the .test.js path; the PR updates each consumer consistently with the rename.
Focused branch change: The proposed head renames only the helper module and adjusts the two corresponding imports; it does not alter provider runtime behavior, configuration, dependencies, or CI workflow code.
Findings None None.
Security None None.

How this fits together

Vydra is an extension that supplies image and video provider implementations. Vitest discovers the extension’s test files, while both executable provider suites consume common request/auth stubs from the shared helper module.

flowchart LR
  A[Vitest extension discovery] --> B[Test filename matching]
  B --> C[Shared Vydra helper module]
  C --> D[Image provider tests]
  C --> E[Video provider tests]
  B --> F[Empty suite output]
  C --> G[Renamed non-test helper]
  G --> D
  G --> E
Loading

Decision needed

Question Recommendation
Should this repository-member draft be refreshed against current main and merged as the focused Vydra test-discovery cleanup? Refresh and merge: Rebase onto current main and merge if the focused Vydra provider-test command still passes with the helper excluded from discovery.

Why: The patch appears mechanically correct, but the protected maintainer label and member authorship require explicit maintainer handling rather than automated cleanup or closure.

Before merge

  • Resolve merge risk (P1) - The branch is marked draft and behind main; refresh it against the current base and preserve the focused provider-test result before merging.
  • Complete next step (P2) - No mechanical repair is needed; protected maintainer handling should decide whether to refresh and merge this correct draft.
Agent review details

Security

None.

PR surface

Source 0, Tests 0. Total 0 across 3 files.

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

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the helper as a non-test module, refresh the branch onto current main, and merge once the focused Vydra provider suites still collect only executable test files.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the helper as a non-test module, refresh the branch onto current main, and merge once the focused Vydra provider suites still collect only executable test files.

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

No live reproduction was run in this read-only review. Current main contains a helper whose .test.ts name matches the claimed discovery mechanism, and both Vydra suites import it, so the reported empty-suite path is source-reproducible with medium confidence.

Is this the best way to solve the issue?

Yes. Renaming a reusable fixture module so it no longer matches Vitest’s test-file pattern is the narrowest maintainable fix and leaves the provider-test behavior unchanged.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 156d2e623eb3.

Labels

Label changes:

  • add P3: This is low-risk test-suite hygiene with no user-visible runtime 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 repository-member PR is exempt from the external-contributor proof gate; its body nevertheless records a focused after-change Vitest run with 13 passing tests.

Label justifications:

  • P3: This is low-risk test-suite hygiene with no user-visible runtime 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 repository-member PR is exempt from the external-contributor proof gate; its body nevertheless records a focused after-change Vitest run with 13 passing tests.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Authored the focused Vydra test-helper cleanup and is a repository member; no independent current-main ownership trail was available in the supplied review evidence. (role: current Vydra test-area contributor; confidence: low; commits: a049834215b9; files: extensions/vydra/provider-test-helpers.ts, extensions/vydra/image-generation-provider.test.ts, extensions/vydra/video-generation-provider.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase or otherwise refresh the draft against current main, then retain the focused Vydra provider-test output in the PR body or checks.

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.

@vincentkoc
vincentkoc force-pushed the fix/vydra-test-helper-collection-20260729 branch from a049834 to 4b2d514 Compare July 30, 2026 02:14
@vincentkoc
vincentkoc marked this pull request as ready for review July 30, 2026 02:15
@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up move handled: the branch was rebased, the focused Vydra provider suites pass 13/13 with the helper absent from test collection, fresh autoreview is clean, and the exact openclaw/ci-gate is green. Current main drift is only the unrelated Discord webhook fix; the repo-native landing flow will verify it before merge.

@vincentkoc
vincentkoc merged commit 3672ab6 into main Jul 30, 2026
139 of 142 checks passed
@vincentkoc
vincentkoc deleted the fix/vydra-test-helper-collection-20260729 branch July 30, 2026 02:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to zhangguiping-xydt/openclaw that referenced this pull request Jul 30, 2026
* origin/main:
  fix(macos): stop canceled voice wake timers (openclaw#116189)
  fix(macos): coalesce location permission requests (openclaw#116183)
  fix(macos): guard remote tunnel restart ownership (openclaw#116172)
  fix(agents): throw CompactionError when summarization fails (openclaw#115500)
  fix(test): isolate ACP startup output stream (openclaw#116076)
  fix(agents): deny all tools when scheduled authority names a removed account (openclaw#115932)
  fix(test): stop collecting Vydra test helpers (openclaw#116139)
  fix(discord): preserve webhook deadline errors (openclaw#116155)
  fix(test): isolate Google embedding batch timeout (openclaw#116161)
  fix(cron): stop replaying old schedule slots after a cron job is edited (openclaw#115779)
  fix(plugins): report request timeouts for stalled response bodies (openclaw#116166)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
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