Repository navigation
Avoid repeated tarball extraction in npm consumer smoke checks - #6260
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The package smoke test passed an unnamed local tarball to both npx and npm install. npm/pacote repeatedly extracted the entire application archive merely to discover its manifest before doing the real installation. On Windows this dominated the consumer-install portion of packaging CI, despite cached package downloads.
What changed
The npx check now installs the real packed bb-app through a private loopback registry fixture. The fixture reads metadata from the tarball, serves the unchanged archive with its SHA-512 integrity, and redirects other package requests to the public npm registry. Each invocation uses a random dist-tag: changing only the registry port would allow npx to reuse a previous installed tree for the same version. The server closes after success or failure.
The separate SDK check still performs a fresh local-tarball installation, now with an explicit
bb-app@file:...specification so npm can skip name discovery. Native install scripts, dependency resolution, TypeScript consumer compilation, installed-package repacking, provider/worker checks, full-stack startup, and daemon enrollment remain enabled. The npx check changes from local-file resolution to registry resolution and real executable dispatch, matching the advertised entry path; local-file installation remains covered by the SDK check.Only the smoke-test script changes. No application/runtime code, published package contents, dependencies, cache keys, invalidation rules, runner sizes, or shard counts change.
How you verified
pnpm exec turbo run smoke:tarball --filter=bb-app --concurrency=4passed.pnpm exec turbo run lint typecheck test --filter=bb-apppassed; formatting and diff checks passed.ea5316b328e23f46fda35b9373012947ef6bf2fe, including Linux/macOS package smoke, Linux AppImage lifecycle, Windows app and desktop smoke, and all selected package tests. Windows coverage includes archive paths with drive letters.