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(cli): integ test current version against all supported versions of TS #23244

Merged
merged 2 commits into from Dec 9, 2022

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Dec 6, 2022

We currently only test against a single TS version as defined in the init-templates. This change will run these tests against all supported TS minor versions (currently typescript@>=3.9). A recent change on main that broke support for >=TS4.0 went undetected due to missing these tests.

Tests are about 2min per TS version, with a total of 11 supported versions, these tests will now take 22min instead of 2min. Other actions in the same pipeline stage take 25min and over 50min (docs), so this shouldn't have an effect on total pipeline runtime.

This PR is based off and tested with the last released version (v2.53.0), as main is currently not building.


All Submissions:

Adding new Construct Runtime Dependencies:

  • This PR adds new construct runtime dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • 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

@gitpod-io
Copy link

gitpod-io bot commented Dec 6, 2022

@github-actions github-actions bot added the p2 label Dec 6, 2022
@aws-cdk-automation aws-cdk-automation requested a review from a team December 6, 2022 12:36
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 6, 2022
@mrgrain mrgrain added p1 pr/do-not-merge This PR should not be merged at this time. and removed p2 labels Dec 6, 2022
@mrgrain
Copy link
Contributor Author

mrgrain commented Dec 6, 2022

pr/do-not-merge until test pipeline has run successfully.

@mrgrain mrgrain self-assigned this Dec 6, 2022
@mrgrain mrgrain force-pushed the mrgrain/chore/test-with-all-ts-versions branch 2 times, most recently from 7ee5458 to d39f7bf Compare December 6, 2022 16:08
Copy link
Contributor

@ryparker ryparker left a comment

Choose a reason for hiding this comment

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

👍🏻

@mrgrain mrgrain force-pushed the mrgrain/chore/test-with-all-ts-versions branch from d39f7bf to f4fe0c8 Compare December 6, 2022 17:48
@mrgrain mrgrain added pr-linter/cli-integ-tested Assert that any CLI changes have been integ tested and removed pr/do-not-merge This PR should not be merged at this time. labels Dec 6, 2022
@mergify
Copy link
Contributor

mergify bot commented Dec 6, 2022

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).

@mrgrain mrgrain marked this pull request as draft December 7, 2022 10:43
@mrgrain mrgrain removed their assignment Dec 7, 2022
@mrgrain
Copy link
Contributor Author

mrgrain commented Dec 7, 2022

@Mergifyio unqueue

@mergify
Copy link
Contributor

mergify bot commented Dec 7, 2022

unqueue

✅ The pull request has been removed from the queue

@mergify
Copy link
Contributor

mergify bot commented Dec 8, 2022

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).

@mrgrain mrgrain force-pushed the mrgrain/chore/test-with-all-ts-versions branch from cfcbdc7 to 57c4a1f Compare December 9, 2022 14:36
@mergify
Copy link
Contributor

mergify bot commented Dec 9, 2022

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).

@mrgrain mrgrain force-pushed the mrgrain/chore/test-with-all-ts-versions branch from 57c4a1f to 596c67a Compare December 9, 2022 16:05
@mergify
Copy link
Contributor

mergify bot commented Dec 9, 2022

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).

@mrgrain mrgrain changed the title chore(cli): run cli-integ tests against all supported versions of TS chore(cli): integ test current version against all supported versions of TS Dec 9, 2022
@mrgrain mrgrain marked this pull request as ready for review December 9, 2022 16:53
@mrgrain mrgrain added pr/do-not-merge This PR should not be merged at this time. and removed pr/do-not-merge This PR should not be merged at this time. labels Dec 9, 2022
@mergify
Copy link
Contributor

mergify bot commented Dec 9, 2022

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: 03cccc1
  • 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 7b7294c into aws:main Dec 9, 2022
@mergify
Copy link
Contributor

mergify bot commented Dec 9, 2022

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).

@mrgrain mrgrain deleted the mrgrain/chore/test-with-all-ts-versions branch December 9, 2022 17:57
brennanho pushed a commit to brennanho/aws-cdk that referenced this pull request Dec 9, 2022
… of TS (aws#23244)

We currently only test against a single TS version as defined in the init-templates. This change will run these tests against all supported TS minor versions (currently `typescript@>=3.9`). A recent change on main that broke support for >=TS4.0 went undetected due to missing these tests.

Tests are about 2min per TS version, with a total of 11 supported versions, these tests will now take 22min instead of 2min. Other actions in the same pipeline stage take 25min and over 50min (docs), so this shouldn't have an effect on total pipeline runtime.

~This PR is based off and tested with the last released version (v2.53.0), as `main` is currently not building.~

----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Construct Runtime Dependencies:

* [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies)

### New Features

* [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/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*
brennanho pushed a commit to brennanho/aws-cdk that referenced this pull request Jan 20, 2023
… of TS (aws#23244)

We currently only test against a single TS version as defined in the init-templates. This change will run these tests against all supported TS minor versions (currently `typescript@>=3.9`). A recent change on main that broke support for >=TS4.0 went undetected due to missing these tests.

Tests are about 2min per TS version, with a total of 11 supported versions, these tests will now take 22min instead of 2min. Other actions in the same pipeline stage take 25min and over 50min (docs), so this shouldn't have an effect on total pipeline runtime.

~This PR is based off and tested with the last released version (v2.53.0), as `main` is currently not building.~

----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Construct Runtime Dependencies:

* [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies)

### New Features

* [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/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*
brennanho pushed a commit to brennanho/aws-cdk that referenced this pull request Feb 22, 2023
… of TS (aws#23244)

We currently only test against a single TS version as defined in the init-templates. This change will run these tests against all supported TS minor versions (currently `typescript@>=3.9`). A recent change on main that broke support for >=TS4.0 went undetected due to missing these tests.

Tests are about 2min per TS version, with a total of 11 supported versions, these tests will now take 22min instead of 2min. Other actions in the same pipeline stage take 25min and over 50min (docs), so this shouldn't have an effect on total pipeline runtime.

~This PR is based off and tested with the last released version (v2.53.0), as `main` is currently not building.~

----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Construct Runtime Dependencies:

* [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies)

### New Features

* [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/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*
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. p1 pr-linter/cli-integ-tested Assert that any CLI changes have been integ tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants