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

chore: fix patch build #25326

Merged
merged 2 commits into from
Apr 27, 2023
Merged

chore: fix patch build #25326

merged 2 commits into from
Apr 27, 2023

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Apr 26, 2023

The patch file that's in here is unnecessary, and in fact harmful: because the rename it applies is not necessary, it copies undefined values into perfectly fine types.

Remove patch and add guard rails agains this.


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

The patch file that's in here is unnecessary, and in fact harmful:
because the rename it applies is not necessary, it copies `undefined`
values into perfectly fine types.

Remove patch and add guard rails agains this.
@rix0rrr rix0rrr requested a review from a team April 26, 2023 20:42
@gitpod-io
Copy link

gitpod-io bot commented Apr 26, 2023

@aws-cdk-automation aws-cdk-automation requested a review from a team April 26, 2023 20:42
@github-actions github-actions bot added the p2 label Apr 26, 2023
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Apr 26, 2023
Copy link
Contributor

@mrgrain mrgrain left a comment

Choose a reason for hiding this comment

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

Ah yes, the patch needs to go in after the spec has been updated.

How did this pass the PR build though? 🤔

@rix0rrr
Copy link
Contributor Author

rix0rrr commented Apr 26, 2023

I'm wondering that as well

@rix0rrr
Copy link
Contributor Author

rix0rrr commented Apr 26, 2023

Haaa and now the check fails because the spec has an error at the old commit

@rix0rrr
Copy link
Contributor Author

rix0rrr commented Apr 26, 2023

Oh it's because git rev-parse --abbrev-ref HEAD returns HEAD if we aren't on a branch, and then the next git checkout HEAD which should restore the commit ptr doesn't do anything. So we built the old commit twice.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: ca21526
  • 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 Apr 27, 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 5a02d81 into main Apr 27, 2023
@mergify mergify bot deleted the huijbers/unnecessary-patch branch April 27, 2023 00:07
corymhall pushed a commit that referenced this pull request May 9, 2023
The patch file that's in here is unnecessary, and in fact harmful: because the rename it applies is not necessary, it copies `undefined` values into perfectly fine types.

Remove patch and add guard rails agains this.

----

*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
contribution/core This is a PR that came from AWS. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants