Skip to content

Navigation Menu

Sign in
Sign up

Update CDKTF packages - #1486

Open
samueldominguez wants to merge 7 commits into
main from
upgrade/cdktf-0.19
Open

Update CDKTF packages #1486
samueldominguez wants to merge 7 commits into
main from
upgrade/cdktf-0.19

Conversation

@samueldominguez

@samueldominguez samueldominguez commented Oct 27, 2023

Copy link
Copy Markdown
Contributor

Description

Upgrade CDK TF to latest version

Changes

  • upgraded cdktf, cdktf-cli, @cdktf/provider-azurerm and @cdktf/provider-time to the latest version
  • upgraded node to >=18.12.0 < 19.0.0 wherever cdktf* packages are used

Checks

  • Project Builds
  • Project passes tests and checks
  • Updated documentation accordingly

Additional information

If it's an issue moving to node >=18.12.0 <19.0.0 then wen move back to cdktf versions 18.x

what-the-diff Bot commented Oct 27, 2023

Copy link
Copy Markdown

PR Summary

  • Updated Tooling Versions
    The versions of development tools cdktf and cdktf-cli have been upgraded. The process of ensuring our code is up-to-date and fully supported can lead to improved performance, security, and error resolution.

  • Upgraded Azure Provider Packages
    The versions of Azure-related packages @cdktf/provider-azurerm and @cdktf/provider-time have been updated. This means our infrastructure-as-code will take advantage of the latest features and improvements in Azure services.

  • Updated Node Version
    The version requirement of node has been tweaked for a couple of packages. With this minor update, we ensure the stability and compatibility with the latest version of Node.js.

@samueldominguez samueldominguez changed the title (削除) Upgrade/cdktf 0.19 (削除ここまで) (追記) Update CDKTF packages (追記ここまで) Oct 27, 2023
},
"engines": {
"node": ">=18.0.0 <19.0.0"
"node": ">=18.12.0 <19.0.0"

@javiertoledo javiertoledo Oct 30, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this a requirement of the new CDK version? Otherwise, I'd leave it as 18.0.0 in order to be less restrictive for end users.

@samueldominguez samueldominguez Oct 30, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@javiertoledo yes, it seems to be a requirement for the new cdk tf version, see here. If it presents an issue, we can go back to version 0.17 I believe

@javiertoledo javiertoledo Oct 30, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Gotcha, no objections then!

samueldominguez reacted with thumbs up emoji

Copy link
Copy Markdown
Member

/integration sha=4fc7a593c0f67fb95cded6defbb905c8e2b00c0b

github-actions[bot] reacted with rocket emoji github-actions[bot] reacted with eyes emoji

github-actions Bot commented Oct 30, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Oops, looks like you forgot to add a changeset.

⚠️ Please run rush change and commit the changeset file.

This command will prompt you for a change description and generate a changeset file. You can read more about changesets here.

Remember that you should use the version bump that is appropriate for the change you are making:

Version bump Meaning
patch Bug fixes, documentation changes, etc.
minor New features, non-breaking changes
major Breaking changes

If you are unsure about which version bump to use, please ask in the comments and we will help you out.

Copy link
Copy Markdown
Contributor

❌ Oh no! Integration tests have failed

Copy link
Copy Markdown
Member

It seems that the Azure deployment failed. Maybe there's an API change that needs to be tweaked?

 1) "before all" hook in "***root***":
 Error: the string "npm\n WARN exec The following package was not found and will be installed: cdktf-cli@0.19.0\n\nError: terraform init failed with exit code 1\n\n\"Deployment of application my-store-4fc7a59 failed. Check cdktf logs. \\nundefined***\"\n Error: \"Deployment of application my-store-4fc7a59 failed. Check cdktf \n logs. \\nundefined***\"\n (You can see the full error logs in ./errors.log)\n" was thrown, throw an Error :)
 at thrown2Error (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runner.js:1241:10)
 at Runner.fail (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runner.js:443:11)
 at cbHookRun (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runner.js:532:14)
 at done (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runnable.js:310:5)
 at /home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runnable.js:377:11
 at processTicksAndRejections (node:internal/process/task_queues:95:5)

Copy link
Copy Markdown
Contributor Author

It seems that the Azure deployment failed. Maybe there's an API change that needs to be tweaked?

 1) "before all" hook in "***root***":
 Error: the string "npm\n WARN exec The following package was not found and will be installed: cdktf-cli@0.19.0\n\nError: terraform init failed with exit code 1\n\n\"Deployment of application my-store-4fc7a59 failed. Check cdktf logs. \\nundefined***\"\n Error: \"Deployment of application my-store-4fc7a59 failed. Check cdktf \n logs. \\nundefined***\"\n (You can see the full error logs in ./errors.log)\n" was thrown, throw an Error :)
 at thrown2Error (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runner.js:1241:10)
 at Runner.fail (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runner.js:443:11)
 at cbHookRun (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runner.js:532:14)
 at done (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runnable.js:310:5)
 at /home/runner/work/booster/booster/common/temp/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/runnable.js:377:11
 at processTicksAndRejections (node:internal/process/task_queues:95:5)

I suspect it might have to do with rush running the build on 18.18, I've updated it to 18.20, hopefully that fixes it @javiertoledo

Copy link
Copy Markdown
Contributor Author

Actually that broke it! Looking at it again.

Base automatically changed from v2.x.x to main November 1, 2023 12:15

Copy link
Copy Markdown
Contributor Author

@javiertoledo I think we can try running integration tests now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@javiertoledo javiertoledo javiertoledo approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /