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(cfnspec): fix the cfnspec update #25320

Merged
merged 3 commits into from
Apr 26, 2023
Merged

chore(cfnspec): fix the cfnspec update #25320

merged 3 commits into from
Apr 26, 2023

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Apr 26, 2023

The cfnspec job currently doesn't create a PR anymore, because the validation is wrong, and fails the job that creates the PR.

Do the additional "did types get renamed" validation only at build time in a PR, not in the job that creates the PR, so we get more visibility on the changes and it's easier to pick up the work to fix it.


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

The cfnspec job currently doesn't create a PR anymore, because the
validation is wrong, and fails the job that creates the PR.

Do the additional "did types get renamed" validation only at build time
in a PR, not in the job that creates the PR, so we get more visibility
on the changes and it's easier to pick up the work to fix it.
@rix0rrr rix0rrr requested a review from a team April 26, 2023 15:57
@gitpod-io
Copy link

gitpod-io bot commented Apr 26, 2023

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

mergify bot commented Apr 26, 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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify mergify bot merged commit f44946b into main Apr 26, 2023
@mergify mergify bot deleted the huijbers/cfnspec-2 branch April 26, 2023 18:26
@mergify
Copy link
Contributor

mergify bot commented Apr 26, 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).

@otterley
Copy link
Contributor

Unfortunately this merge broke testing for all PRs that followed:

> @aws-cdk/cfnspec@0.0.0 build /workspaces/aws-cdk/packages/@aws-cdk/cfnspec
> cdk-build && ts-node --preferTsExts build-tools/build.ts
...
Build times for @aws-cdk/cfnspec: Total time (5.6s) | /workspaces/aws-cdk/node_modules/typescript/bin/tsc (0.2s)..
100_sam/999_cleanup_patch.json: Remove properties that conflict with the CFN spec
spec-source/specification/100_sam
TypeError: Cannot use 'in' operator to search for 'Properties' in undefined
    at Object.isRecordType (/workspaces/aws-cdk/packages/@aws-cdk/cfnspec/lib/schema/specification.ts:55:22)
    at replaceIncompleteTypes (/workspaces/aws-cdk/packages/@aws-cdk/cfnspec/build-tools/massage-spec.ts:20:17)
    at massageSpec (/workspaces/aws-cdk/packages/@aws-cdk/cfnspec/build-tools/massage-spec.ts:6:3)
    at generateResourceSpecification (/workspaces/aws-cdk/packages/@aws-cdk/cfnspec/build-tools/build.ts:42:14)
    at async main (/workspaces/aws-cdk/packages/@aws-cdk/cfnspec/build-tools/build.ts:28:5)

@otterley
Copy link
Contributor

Fixed by #25326

madeline-k pushed a commit that referenced this pull request Apr 27, 2023
The cfnspec job currently doesn't create a PR anymore, because the validation is wrong, and fails the job that creates the PR.

Do the additional "did types get renamed" validation only at build time in a PR, not in the job that creates the PR, so we get more visibility on the changes and it's easier to pick up the work to fix it.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
madeline-k added a commit that referenced this pull request Apr 27, 2023
corymhall pushed a commit that referenced this pull request May 9, 2023
The cfnspec job currently doesn't create a PR anymore, because the validation is wrong, and fails the job that creates the PR.

Do the additional "did types get renamed" validation only at build time in a PR, not in the job that creates the PR, so we get more visibility on the changes and it's easier to pick up the work to fix it.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mergify bot added a commit that referenced this pull request May 9, 2023
chore(cfnspec): fix the cfnspec update (#25320)
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.

4 participants