Skip to content

Test pack and publish prepare paths after launcher updates - #149

Merged
unbraind merged 1 commit into
mainfrom
fix/toolchain-gate-drift
Oct 17, 2026
Merged

unbraind merged 1 commit into
mainfrom
fix/toolchain-gate-drift

Conversation

@unbraind

@unbraind unbraind commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Dependabot #144 refreshes the canonical pm-ops prepare launcher, adding pack/publish paths that the install-only test harness never executes. CI falls to 99.98% lines / 99.90% branches; the launcher itself misses line 28 and its artifact branch at line 27. This shares its root cause and test design with unbraind/pm-ado#30 and unbraind/pm-changelog#248.

The helper now supplies an explicit npm lifecycle command. Both artifact cases run against real configured Git checkouts and verify successful prepare execution plus byte-preserved Git config. Tests support both template generations. Canonical template equality, dependency pins and coverage thresholds are unchanged.

Before: the bumped tree fails coverage. After: the full bumped tree passes 354/354 tests under each runtime with zero failures, skips, cancellations or todos, and 100% of every configured coverage dimension.

Revert proof: keep the added tests, remove only the helper lifecycle environment injection, and run the launcher coverage gate. It exits 1 at 98.65% lines / 75% branches with line 28 uncovered. Restore the helper and both full release gates pass.

Validation: exact dependency-overlay npm and Bun gates. Each uses a fresh HOME and GIT_CONFIG_GLOBAL=/dev/null plus GIT_CONFIG_NOSYSTEM=1. Commands: npm run release:check and bun run release:check. Local full attempts interrupted by host load are not counted as passing evidence. Details: docs/dependabot-root-cause.md.

Tracker: pm-beads-8h18. The item remains open for orchestration review.

The final validation tree differs from the delivered fix revision only by the original dependency/generated-template overlay and its temporary validation workflow. Tracker receipts and documentation are included in this final validation.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: f9cd5c2f-e426-4e29-a00f-a02a56361d13
📥 Commits

Reviewing files that changed from the base of the PR and between 717bc0e and 2e06181.

📒 Files selected for processing: 4
  • .agents/pm/chores/pm-beads-8h18.toon
  • .agents/pm/history/pm-beads-8h18.jsonl
  • docs/dependabot-root-cause.md
  • test/prepare-merge-driver.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Summary by CodeRabbit

  • Bug Fixes
    • Package creation and publishing commands now complete without changing Git configuration or registered merge drivers.
  • Tests
    • Added regression checks for both package creation and publishing workflows.
  • Documentation
    • Added a report documenting the Dependabot coverage issue, the regression evidence, and release-check results.

Walkthrough

Tests now exercise the prepare helper with pack and publish commands. Documentation and project records describe the Dependabot coverage gap and report release-check results.

Changes

Dependabot lifecycle coverage

Layer / File(s) Summary
Pack and publish tests
test/prepare-merge-driver.test.ts
The test helper accepts an optional lifecycle command, defaulting to ci. New tests run pack and publish after driver registration and check that Git configuration and registered drivers remain unchanged.
Root-cause and validation records
docs/dependabot-root-cause.md, .agents/pm/chores/*, .agents/pm/history/*
The root-cause document and project records describe the missing lifecycle-command coverage, the added tests, and reported npm and Bun validation results.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 2e061

The change adds pack and publish lifecycle tests and documents validation. No concrete user- or operator-facing failure is established, so it appears mergeable with normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the added tests for the pack and publish prepare paths after launcher updates.
Description check Passed The description directly explains the launcher coverage gap, test changes, validation results, and root-cause context.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (3 skipped: 3 …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (3 skipped: 3 unsupported.)

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai

sourcery-ai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Sorry @unbraind, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 3 days and 2 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR repairs coverage lost after the canonical prepare launcher gained pack and publish artifact paths by making lifecycle commands explicit in the test helper and adding realistic pack/publish tests that verify successful execution and preservation of configured Git state. It also documents the root cause, isolated release-gate validation, and revert evidence; production behavior, dependency pins, canonical template equality, and coverage thresholds remain unchanged.

Sequence diagram for pack and publish prepare coverage tests

sequenceDiagram
    participant Test as Test harness
    participant Checkout as Git checkout
    participant Launcher as prepare-merge-driver.ts
    participant Git as Git config

    Test->>Checkout: Configure drivers through ci path
    Test->>Git: Record configured Git state
    loop npm_command=pack and npm_command=publish
        Test->>Launcher: Run artifact prepare with explicit lifecycle command
        Launcher->>Checkout: Execute prepare
        Checkout-->>Launcher: Successful execution
    end
    Test->>Git: Read Git config
    Git-->>Test: Return unchanged configuration
    Test->>Test: Verify successful prepare and byte-preserved Git config
Loading

File-Level Changes

Change Details Files
Extend the prepare launcher test harness to model npm lifecycle commands and cover artifact preparation paths.
  • Inject an explicit lifecycle command into launcher invocations, defaulting to install/CI behavior.
  • Add pack and publish cases using real temporary Git checkouts and configured merge drivers.
  • Verify artifact preparation succeeds and preserves Git configuration byte-for-byte and semantically.
  • Retain compatibility with both template generations without changing dependency pins or coverage thresholds.
test/prepare-merge-driver.test.ts
Document the Dependabot-induced coverage regression, test strategy, validation evidence, and revert proof.
  • Explain the previously unexecuted pack/publish branches and their coverage impact.
  • Record isolated npm and Bun release-check validation with complete test and coverage results.
  • Document the focused revert proof and scratch-tree validation approach.
docs/dependabot-root-cause.md
Update orchestration tracking records for the coverage repair.
  • Record the chore status and implementation history for the launcher test coverage work.
.agents/pm/chores/pm-beads-8h18.toon
.agents/pm/history/pm-beads-8h18.jsonl

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@unbraind

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

Please review head 2e06181, including outside-diff findings.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@unbraind
unbraind merged commit 7c03a10 into main Oct 17, 2026
11 checks passed
@unbraind
unbraind deleted the fix/toolchain-gate-drift branch October 17, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant