-
Notifications
You must be signed in to change notification settings - Fork 4k
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(bundling): enclosing metafile & tsconfig paths with quotes #32725
base: main
Are you sure you want to change the base?
Conversation
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.
The pull request linter fails with the following errors:
❌ Fixes must contain a change to an integration test file and the resulting snapshot.
If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed, add Clarification Request
to a comment.
✅ A exemption request has been requested. Please wait for a maintainer's review.
1cc72bc
to
f62e4dd
Compare
I have no idea what to do
why doesn't this text say what integration file needs to be adjusted ?!!? |
@samson-keung reverted accidental changes. I'm not sure about the artifacts for/of the integration changes and how to generate these |
Thanks for updating the PR. LGTM. I have pinged the CLI team to review as well. |
@aaarichter I see two integ tests failed. The relevant log snippet:
Are you able to run and update them? Instructions can be found in https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md#testing |
No cli integ tests needed. This was picked-up from this commit which was later reverted. |
hey @samson-keung sry for the late reply. I was trying to do the steps but the integration steps fail:
This is based on the latest commit from I'm clueless about what to do in this case. 😭 |
e2a7db8
to
f22f907
Compare
The pull request linter fails with the following errors:
PRs must pass status checks before we can provide a meaningful review. If you would like to request an exemption from the status checks or clarification on feedback, please leave a comment on this PR containing ✅ A exemption request has been requested. Please wait for a maintainer's review. |
Hey @aaarichter. No problem, we are here to help unblock contributors! Looks like after you updated to latest main branch, the integ tests no longer fails. Also as I look into the integ test, I saw a similar fix has been before for the One more ask: Would you be able to update the test to cover your fix as well? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #32725 +/- ##
=======================================
Coverage 81.40% 81.40%
=======================================
Files 223 223
Lines 13727 13727
Branches 2411 2411
=======================================
Hits 11175 11175
Misses 2274 2274
Partials 278 278
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f22f907
to
be5852d
Compare
@samson-keung I added files to the integration test similar to the "inject PR" you linked in your comment. (I mean in my project I just would run |
be5852d
to
7c355ac
Compare
@aaarichter You will need to run the integ test in order for it to generate the artifacts. You can try the following commands:
After that, the artifacts should be updated. Note that if you have never ran integ tests for this repo before, have a read at https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md#integration-tests to get yourself set up. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Issue # (if applicable)
No
Reason for this change
Generating the metafile in a Windows environment can fail when the path are not enclosed with quotes.
Description of changes
What code changes did you make?
Enclosed paths the bundling arguments
--metafile
and--tsconfig
Have you made any important design decisions?
No
What AWS use cases does this change enable? To enable the use cases, which AWS service features are utilized?
Allows safe usage of
metafile
andtsconfig
bundling optionsDescribe any new or updated permissions being added
<!— What new or updated IAM permissions are needed to support the changes being introduced ? -->
Description of how you validated changes
Have you added any unit tests and/or integration tests?
No, but when you have a project path with a whitespace, and use the
metafile
bundling argument, the metafile path should be passed correctly within quotes to esbuild.I updated the existing tests.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license