Skip to content

fix(ci): route npm lifecycle hooks to their host test lanes - #14353

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 24, 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.

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.

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review November 24, 2026 11:44
@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-24T11:44:11.213309Z
We couldn’t complete this review. Comment @codex review to try again.
afc54c2 Draft marked ready
ℹ️ 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 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defect remains in the reviewed changes.

Summary

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

  • Changes to test hooks now reach their dedicated CI lanes.

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

Comment thread scripts/ci/change-plan.mjs Resolved
@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@ShuaixinHuang thanks for the PR — there is 1 open review thread here:

Could you address or reply to this? Once it's resolved and CI is green we can take another look.
cc @gensokyo-dev @dandgabr

Copy link
Copy Markdown
Contributor Author

@morluto The review item is resolved in 7ba6ec769. The SQLite and reverse-tools preflight jobs now run the relevant npm lifecycle hooks, and the workflow tests check their order. Review thread and local test results. Thanks for the review.

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.

3 participants