Skip to content

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

Closed
ShuaixinHuang wants to merge 3 commits into
morluto:mainfrom
ShuaixinHuang:fix/ci-route-npm-test-lifecycle-hooks
Closed

ShuaixinHuang wants to merge 3 commits into
morluto:mainfrom
ShuaixinHuang:fix/ci-route-npm-test-lifecycle-hooks

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Summary

CI invokes checks through npm, which runs pre- and post-scripts automatically. The planner matches only the main script name for SQLite, Python and reverse-tools, so a hook-only edit can select the generic Linux runtime without selecting the check whose execution actually changed.

Use the npm lifecycle target for those dedicated lanes. Regression cases cover both hook prefixes and all three lane families.

Validation

  • All 438 CI scope tests passed on Node 24.22.1, including the hook-only changes and existing unrelated script controls.
  • Formatting and git diff --check passed. Hosted CI is pending.

Supersedes #12569.

Resubmission of #14078.

Replaces #14353 at the same commit. See the previous PR for the review history.

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.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and follows the conventional title format.
  • Tests cover changed observable behavior and meaningful failure paths.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 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-27T08:40:01.820084Z b0b5d4a 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 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed changes appear safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

Routes npm hook changes to the SQLite, Python, and reverse-tools checks. Adds explicit hook calls where CI runs the underlying commands directly.

  • Test hook edits now select their dedicated CI lanes.
  • SQLite and reverse-tools CI checks now run their lifecycle hooks.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Package script changes] --> B[Strip pre or post prefix]
  B --> C[Select dedicated lane]
  C --> D[Python through npm]
  C --> E[SQLite hooks around runtime tests]
  C --> F[Coverage through npm and hooks around mutation preflights]
Loading

Reviews (3) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · 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