Skip to content

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

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 26, 2026 •

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T12:16:24.278874Z
We couldn’t complete this review. Comment @codex review to try again.
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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed code appears safe to merge; no blocking defect was found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed code appears safe to merge; no blocking defect was found.

Summary

Routes npm lifecycle-hook edits to the SQLite, Python, and reverse-tools test lanes.

  • Lifecycle hook changes select the lane for the test they wrap.
  • The reverse-tools preflight runs its optional hooks around both mutation checks.
  • SQLite runtime checks run their optional hooks around the direct test command.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Changed package script] --> B[Remove pre or post prefix]
  B --> C{Test family}
  C --> D[Python tests]
  C --> E[SQLite runtime matrix]
  C --> F[Reverse-tools quality checks]
  D --> G[Required gate checks success]
  E --> G
  F --> G
Loading

Reviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

ShuaixinHuang commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @morluto @kaoru0822-kitauji @N0zoM1z0 @gensokyo-dev @vincentkoc,

The contribution guide says focused community fixes are welcome. Could you clarify whether community contributors are also welcome to take on ongoing maintenance, such as following up on existing CI or release fixes? If any maintenance areas are reserved for the core team or require prior agreement, it would help to state that in the contribution guide so contributors can check before investing time.

For some of these changes, I haven’t received new maintainer feedback in five or six days across the original submissions and their replacements.

Thank you for clarifying where community contributions would be most useful.

@morluto morluto added area: build Build, CI, packaging, and publishing bug Something isn't working labels Nov 26, 2026
@ShuaixinHuang ShuaixinHuang changed the title fix(ci): route npm lifecycle hooks to their host test lanes fix(ci): run npm lifecycle hooks in the selected host test lanes Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants