Skip to content

fix(ci): run npm lifecycle hooks in selected host lanes - #14988

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:fix/ci-npm-lifecycle-host-checks
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:fix/ci-npm-lifecycle-host-checks

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Replaces #14968 at the same commit bb3a1bf65f06497c52da1bc462912ecdaefb3b9a. The prior PR records the review history and validation for this commit.

Summary

Replaces #14871 on current main. A package.json-only change to a pretest or posttest hook currently misses the dedicated SQLite, Python or reverse-tools lane that owns the command. Even after selecting the proper lane, SQLite and mutation preflight use narrower commands that bypass the outer lifecycle hooks. This change routes hook edits through their npm target and explicitly runs the outer hooks around those narrower commands.

Scope

The SQLite job keeps using the downloaded runtime. Reverse-tools retains main's separate mutation-target guard ahead of coverage, along with both mutation dry runs. Python and reverse-tools coverage continue to get their hooks through npm. This addresses the earlier workflow-entry-point feedback in #14353.

Validation

  • Ten hook-only planner cases, covering both prefixes for all five targets, failed on main c24ec44c and pass with this change.
  • All 525 tests passed in the change-scope, CI feedback, and required-lanes suites. Formatting and diff checks passed.
  • Ran the actual SQLite workflow shell snippet with real npm and a temporary package. The observed order was outer pre-hook, inner pre-hook, test, inner post-hook, outer post-hook. The smoke used fixture scripts; the hosted matrix is pending.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T08:47:02.164357Z bb3a1bf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The code appears safe to merge; no actionable defects were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The code appears safe to merge; no actionable defects were found.

Summary

Routes edits to npm pre/post hooks into the SQLite, Python, and reverse-tools lanes.

  • Lifecycle-hook edits now select the lane for their test.
  • Reverse-tools mutation checks now run their outer hooks.
  • The SQLite runtime check now runs its outer hooks.

No actionable code or security issues were found. Tests were not run during this review. Whether this PR has been superseded could not be checked because GitHub access was unavailable.

Reviews (1) · Last reviewed commit: "fix(ci): run npm lifecycle hooks in sele..." · Reviewed by Greptile

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