Skip to content

validate-npm-package : retry if package is not available yet - #106

Open
le-cong wants to merge 11 commits into
mainfrom
validate-npm-package__retry-npm-install
Open

le-cong wants to merge 11 commits into
mainfrom
validate-npm-package__retry-npm-install

Conversation

@le-cong

@le-cong le-cong commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #105

@le-cong le-cong self-assigned this Sep 25, 2026
@le-cong le-cong added the MINOR label Sep 25, 2026
Copilot AI lite review requested due to automatic review settings September 25, 2026 03:11

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

The retry loop can continue after the timeout, leaving background attempts and timers active.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds retries for delayed npm package availability and updates related tooling, naming, coverage handling, dependencies, and CI workflows.

Changes:

  • Adds bounded retries for npm view and npm install.
  • Updates npm metadata handling and tests.
  • Refreshes utilities, workflows, dependencies, and documentation.
File Summary
src/​validate-npm-package/​validate-npm-package.ts Adds npm retry and timeout behavior.
src/​validate-npm-package/​validate-npm-package.spec.ts Tests retry behavior.
src/​perform-bundle/​perform-bundle.ts Renames metadata identifiers.
src/​github-api/​index.ts Refactors comment and review APIs.
src/​github-api/​index.spec.ts Updates environment cleanup.
src/​github-api/​index-reviews.spec.ts Updates review helper tests.
src/​github-api/​index-publish-comment.spec.ts Strengthens rejection assertions.
src/​coverage-reporter/​utility.ts Renames coverage utilities.
src/​coverage-reporter/​utility.spec.ts Updates utility tests.
src/​coverage-reporter/​tabulate.ts Updates sorting and parameters.
src/​coverage-reporter/​lcov.ts Refactors LCOV parsing.
src/​coverage-reporter/​html.ts Simplifies HTML rendering.
src/​coverage-reporter/​delete-old-comments.ts Clarifies completion state naming.
src/​coverage-reporter/​coverage-reporter.ts Adds reusable file reading.
src/​coverage-reporter/​comment.ts Reuses generated coverage tables.
src/​check-pr-reviews/​check-pr-reviews.ts Uses renamed reviewer-count APIs.
src/​check-pr-reviews/​check-pr-reviews.spec.ts Updates module mocking.
src/​check-label/​check-label.ts Renames version validation APIs.
src/​check-label/​check-label-compare-match-semver.spec.ts Updates validation tests.
src/​check-imports/​package-lock-file-utility.ts Renames range-matching APIs.
src/​check-imports/​package-lock-file-utility.spec.ts Updates utility tests.
src/​check-imports/​check-imports.ts Uses renamed utilities.
README.md Updates package metadata.
package.json Updates dependencies, scripts, and engine requirements.
LICENSE Updates the copyright year.
.github/​workflows/​coverage.yml Splits base and PR coverage jobs.
.github/​workflows/​codeql-analysis.yml Updates CodeQL actions.
.github/​workflows/​ci.yml Updates CI matrices, actions, and concurrency.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +61 to +63
} finally {
// timeout() does not cancel the retry loop, so kill any in-flight npm process and fail the remaining attempts
abortController.abort();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

validate-npm-package - retry npm install

2 participants