Skip to content
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

Fix error masking when errors occur in the bundle graph request #340

Merged
merged 4 commits into from
Feb 17, 2025

Conversation

mattcompiles
Copy link
Contributor

Motivation

Prior to this change, if an error occurred during parts of the bundle graph request, the error would be hidden due to the finally block throwing an error attempting to create a graphviz file for the graph. This is optional behaviour, exclusively used for internal debugging so it's safe to opt out of.

Changes

  • Ensure bundle graph request errors show up correctly
  • Add skipped test for discovered broken BundleGraph.fromAssetGraph edge case

Checklist

  • Existing or new tests cover this change

Copy link

changeset-bot bot commented Feb 14, 2025

🦋 Changeset detected

Latest commit: d72abfa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@atlaspack/core Patch
@atlaspack/bundler-experimental Patch
@atlaspack/cli Patch
@atlaspack/register Patch
@atlaspack/test-utils Patch
@atlaspack/bundle-stats Patch
@atlaspack/query Patch
@atlaspack/reporter-bundle-stats Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -6455,4 +6455,40 @@ describe('scope hoisting', function () {
},
]);
});

// This is currently failing due to dependency.sourceAssetId becoming stale
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it started failing with this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I discovered it from a support request. I'm making a ticket to track the fix separately but thought it was worth committing the repro

@mattcompiles mattcompiles enabled auto-merge (squash) February 14, 2025 03:48
@mattcompiles mattcompiles merged commit 1b1ef6e into main Feb 17, 2025
18 checks passed
@mattcompiles mattcompiles deleted the matt/fix-bundlegraphrequest-error-masking branch February 17, 2025 21:21
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.

2 participants