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(cdk-assets): packaging assets is broken on Node older than 14.17 #23994

Merged
merged 1 commit into from
Feb 3, 2023
Merged

fix(cdk-assets): packaging assets is broken on Node older than 14.17 #23994

merged 1 commit into from
Feb 3, 2023

Conversation

corymhall
Copy link
Contributor

This reverts commit 18e0481.

Closes #23859


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Feb 3, 2023

@github-actions github-actions bot added bug This issue is a bug. p0 labels Feb 3, 2023
@aws-cdk-automation aws-cdk-automation requested a review from a team February 3, 2023 16:31
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Feb 3, 2023
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a 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 has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

@rix0rrr rix0rrr changed the title Revert "fix(cdk-assets): concurrent asset builds can leave a corrupted archive (#23677)" fix(cdk-assets): packaging assets is broken on Node 14 Feb 3, 2023
@rix0rrr rix0rrr changed the title fix(cdk-assets): packaging assets is broken on Node 14 fix(cdk-assets): packaging assets is broken on Node older than 14.17 Feb 3, 2023
@rix0rrr rix0rrr added pr-linter/exempt-test The PR linter will not require test changes pr-linter/exempt-integ-test The PR linter will not require integ test changes labels Feb 3, 2023
@aws-cdk-automation aws-cdk-automation dismissed their stale review February 3, 2023 16:48

✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 084f539
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Feb 3, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 5bde92c into aws:main Feb 3, 2023
corymhall added a commit that referenced this pull request Feb 3, 2023
…23994)

This reverts commit 18e0481.

Closes #23859

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot pushed a commit that referenced this pull request Feb 6, 2023
This is a re-roll of #23677 which was reverted in #23994 because the `randomUUID()` function from the original solution was not available in Node versions below 14.17 (and we advertise compatibility with Node 14.*).

We didn't actually need a UUID, just any random string, so replace it with a function that generates a random string in a different way.

----------

Resolves #23290

A very simple fix for the issue where builds with `--concurrency` specified can lead to corrupt archives. Rather than use the outputFile as the basis for the temp file name we simply use a random string.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. contribution/core This is a PR that came from AWS. p0 pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-test The PR linter will not require test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(cdk-assets): crypto.randomUUID does not exist in Node 14
4 participants