Skip to content

feat/optimize-timeout-and-speed-up-load#17

Merged
donfear merged 11 commits intomainfrom
feat/optimize-timeout-and-speed-up-load
Feb 17, 2026
Merged

feat/optimize-timeout-and-speed-up-load#17
donfear merged 11 commits intomainfrom
feat/optimize-timeout-and-speed-up-load

Conversation

@donfear
Copy link
Owner

@donfear donfear commented Feb 13, 2026

No description provided.

Reduce request timeout from 60s to 30s for faster failure detection.
Add retry timeouts and delays for more resilient CDN fetching, plus
a per-package timeout to prevent slow packages from blocking the
overall load process.
Implement retry mechanism for CDN cache warming - first request triggers
caching and subsequent retries hit the warm cache. Add per-package timeout
cap to ensure slow packages don't block the entire batch.
…timeout

- Remove per-package timeout race logic that was adding unnecessary complexity
- Rename PER_PACKAGE_TIMEOUT to JSDELIVR_POOL_TIMEOUT (60s) for connection lifecycle
- Add error logging for failed fetches to preserve observability
- Add comprehensive retry tests for jsDelivr fallback behavior
Increase request timeout to 60s while shortening retry timeouts for faster
fallback to npm registry. Add retry logic for transient HTTP errors (429, 5xx)
and skip major version fetch when current major matches latest major version.
- Add in-flight request coalescing to prevent duplicate lookups for the same package
- Handle transient network errors (ENOTFOUND, ECONNRESET, ETIMEDOUT, etc.) with retries
- Improve version sorting to handle non-semver versions gracefully
- Reduce noisy console output for expected transient errors
- Add safer body consumption and JSON parsing with proper fallback
- Refactor retry configuration to use validated timeout values
Add --debug CLI flag and INUP_DEBUG environment variable support for
verbose logging to inup-debug-YYYY-MM-DD.log. Includes performance
timing, registry request tracing, and error context capture across
package detection and jsdelivr registry operations.
@donfear donfear merged commit 3bd65c1 into main Feb 17, 2026
19 checks passed
@donfear donfear deleted the feat/optimize-timeout-and-speed-up-load branch February 17, 2026 16:20
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