-
Notifications
You must be signed in to change notification settings - Fork 224
Avoid problems with theme extensions self built by external vite #6553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid problems with theme extensions self built by external vite #6553
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report
Show files with reduced coverage 🔻
Test suite run success3358 tests passing in 1372 suites. Report generated by 🧪jest coverage report action from d6c771d |
|
/snapit |
|
🫰✨ Thanks @alfonso-noriega! Your snapshot has been published to npm. Test the snapshot by installing your package globally: npm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20251029171255Caution After installing, validate the version by running just |
3d4bf3a to
490af62
Compare
53e1e4f to
a515640
Compare
|
We detected some changes at Caution DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release. |
a515640 to
2c0f953
Compare
dmerand
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to make a slight change to the test script:
# Directory containing the files
DIR="${HOME}/Downloads/theme-test/extensions/theme-extension/frontend/entrypoints"
if [ ! -d "$DIR" ]; then
echo "Directory $DIR does not exist. Exiting."
exit 1
fTophat is giving me build errors that look the same on both branches though... Wondering if I'm missing steps?
aec5821 to
bb52e42
Compare
bb52e42 to
d6c771d
Compare

WHY are these changes introduced?
The current archiving functionality in
zipandbrotliCompressmethods doesn't handle race conditions where files might be deleted during the archiving process. This can lead to errors and failed builds when files are removed while the archiving is in progress.WHAT is this pull request doing?
Improves the archiving process to gracefully handle files that are deleted during the archiving operation:
zipandbrotliCompressfunctions to read file content immediately before adding to the archiveHow to test your changes?
theme-test.zip
shopify app dev --path path/to./the/downloaded/appin a terminalpnpm theme-extension:devto run viteThese steps will start a never ending loop of changes to the extension files in batches of a random size which will eventually trigger the error we are trying to reproduce.
Once the error is reproduced running dev with the latest CLI, to test the changes go to the CLI repo, checkout this branch, and run
pnpm shopify app dev --path path/to./the/downloaded/app(don't forget to close the previously started dev session).Measuring impact
How do we know this change was effective? Please choose one:
Checklist