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

Update CDKTF packages #1486

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Update CDKTF packages #1486

wants to merge 7 commits into from

Conversation

samueldominguez
Copy link
Collaborator

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
Copy link

what-the-diff bot commented Oct 27, 2023

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
@@ -78,7 +78,7 @@
"eslint-plugin-unicorn": "~44.0.2"
},
"engines": {
"node": ">=18.0.0 <19.0.0"
"node": ">=18.12.0 <19.0.0"
Copy link
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.

Copy link
Collaborator 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

Copy link
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!

@boostercloud boostercloud deleted a comment from github-actions bot Oct 30, 2023
@boostercloud boostercloud deleted a comment from github-actions bot Oct 30, 2023
# Conflicts:
#	common/config/rush/pnpm-lock.yaml
@javiertoledo
Copy link
Member

/integration sha=4fc7a593c0f67fb95cded6defbb905c8e2b00c0b

@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2023

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.

@github-actions
Copy link
Contributor

❌ Oh no! Integration tests have failed

@javiertoledo
Copy link
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: [email protected]\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/[email protected]/node_modules/mocha/lib/runner.js:1241:10)
      at Runner.fail (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/runner.js:443:11)
      at cbHookRun (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/runner.js:532:14)
      at done (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/runnable.js:310:5)
      at /home/runner/work/booster/booster/common/temp/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/runnable.js:377:11
      at processTicksAndRejections (node:internal/process/task_queues:95:5)

@samueldominguez
Copy link
Collaborator 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: [email protected]\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/[email protected]/node_modules/mocha/lib/runner.js:1241:10)
      at Runner.fail (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/runner.js:443:11)
      at cbHookRun (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/runner.js:532:14)
      at done (/home/runner/work/booster/booster/common/temp/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/runnable.js:310:5)
      at /home/runner/work/booster/booster/common/temp/node_modules/.pnpm/[email protected]/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

@samueldominguez
Copy link
Collaborator Author

Actually that broke it! Looking at it again.

Base automatically changed from v2.x.x to main November 1, 2023 12:15
@samueldominguez
Copy link
Collaborator 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants