-
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(assets): parallel docker image publishing fails on macOS #20117
Conversation
I'd like to help by testing against my app since I can consistently get a failure with the current version of CDK. However, I'm having a heck of a time trying to test against the CDK source. I ran
But then I'm getting stuck with the fact that the built Any idea how to work around this 3.x/10.x mismatch? |
I usually go like this to link
Then in my project I just type |
Thanks for the detail instructions @misterjoshua. Relying on I can confirm that this fixes the issue I saw in my application when I switch to the I updated to 2.21.1 and added a dummy I got this error:
Checkout
In my project
Then my CDK deployment worked as expected. |
@pahud Hey. This PR could use a little review. Are you still running that community reviewer program? |
@misterjoshua @mitchlloyd Sorry. Only today got to a place where I could test this. Running cdk from this branch worked as expected. Running cdk version 2.23.0 (build 50444aa) still returns "The specified item already exists in the keychain." Best I can tell, this fix will solve our issue. |
return async (criticalFunction: () => Promise<void>) => { | ||
const res = lock.then(() => criticalFunction()); | ||
lock = res.catch(e => e); | ||
return res.then(v => v); |
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.
Couldn't this be return res
? What's the value of the added then
?
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.
Good spotting this. I've removed it - it was a leftover from some hand testing I was doing.
@rix0rrr I've made the change you suggested to the critical section function. Please let me know if you'd like any more changes to this PR. Thanks |
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.
Looks good, thanks for addressing this!
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Changes container image publishing so that publishing doesn't re-run docker logins for the same repository and so logins are run one at a time. Fixes aws#20116 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Changes container image publishing so that publishing doesn't re-run docker logins for the same repository and so logins are run one at a time.
Fixes #20116
All Submissions:
Adding new Unconventional Dependencies:
New Features
yarn integ
to deploy the infrastructure and generate the snapshot (i.e.yarn integ
without--dry-run
)?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license