Skip to content

Pin dependencies for typespec compilation - #8019

Merged
rynowak merged 2 commits into
radius-project:mainfrom
rynowak:rynowak/pin-typespec
Nov 4, 2024
Merged

rynowak merged 2 commits into
radius-project:mainfrom
rynowak:rynowak/pin-typespec

Conversation

@rynowak

@rynowak rynowak commented Oct 31, 2024

Copy link
Copy Markdown
Contributor

Description

This change pins the dependencies we use for the TypeSpec compiler. Since these were set to latest, it's easy to operate on a configuration we don't support. TypeSpec moves fast and breaks things, so being certain about the dependencies is important.

Also adds the package.json to depdendabot so we can get PRs for updates.

Type of change

  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional).

Contributor checklist

Please verify that the PR meets the following requirements, where applicable:

  • An overview of proposed schema changes is included in a linked GitHub issue.
  • A design document PR is created in the design-notes repository, if new APIs are being introduced.
  • If applicable, design document has been reviewed and approved by Radius maintainers/approvers.
  • A PR for the samples repository is created, if existing samples are affected by the changes in this PR.
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
  • A PR for the recipes repository is created, if existing recipes are affected by the changes in this PR.

@rynowak
rynowak requested review from a team as code owners October 31, 2024 18:02
Comment thread typespec/package.json Outdated
"@typespec/http": "^0.60.0",
"@typespec/openapi": "^0.60.0",
"@typespec/rest": "^0.60.0",
"@typespec/versioning": "^0.60.0"

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.

PTAL at the package-lock.json to verify. We're still installing the same versions, but the version ranges we consider allowed are constrained.

@rynowak
rynowak temporarily deployed to functional-tests October 31, 2024 18:08 — with GitHub Actions Inactive
@radius-functional-tests

radius-functional-tests Bot commented Oct 31, 2024 •

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Name Value
Repository rynowak/radius
Commit ref 5d05c54
Unique ID funce81846b530
Image tag pr-funce81846b530
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-funce81846b530
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-funce81846b530
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funce81846b530
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funce81846b530
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting ucp-cloud functional tests...
⌛ Starting corerp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

sk593
sk593 previously approved these changes Oct 31, 2024

@brooke-hamilton brooke-hamilton left a comment

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.

LGTM: Running make generate in the dev container results in zero changes to the generated code. 🚀

Comment thread .github/dependabot.yml Resolved
Comment thread typespec/package.json Resolved
@codecov

codecov Bot commented Oct 31, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.30%. Comparing base (2bc71ab) to head (0a86352).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8019      +/-   ##
==========================================
- Coverage   59.31%   59.30%   -0.02%     
==========================================
  Files         560      560              
  Lines       37495    37495              
==========================================
- Hits        22242    22236       -6     
- Misses      13706    13710       +4     
- Partials     1547     1549       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rynowak
rynowak temporarily deployed to functional-tests October 31, 2024 20:22 — with GitHub Actions Inactive
@radius-functional-tests

radius-functional-tests Bot commented Oct 31, 2024 •

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Name Value
Repository rynowak/radius
Commit ref 700b4d4
Unique ID func12e73a8658
Image tag pr-func12e73a8658
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func12e73a8658
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-func12e73a8658
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func12e73a8658
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func12e73a8658
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting ucp-cloud functional tests...
⌛ Starting corerp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

ytimocin
ytimocin previously approved these changes Oct 31, 2024

@lakshmimsft lakshmimsft left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tried to dismiss my own review/approval but looks like I cannot in Github. We're updating to ~0.60.0 as mentioned above

@superbeeny superbeeny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@rynowak
rynowak dismissed stale reviews from ytimocin and sk593 via 4d710b2 November 4, 2024 17:09
@rynowak
rynowak force-pushed the rynowak/pin-typespec branch from 700b4d4 to 4d710b2 Compare November 4, 2024 17:09
This change pins the dependencies we use for the TypeSpec compiler. Since these were set to latest, it's easy to operate on a configuration we don't support. TypeSpec moves fast and breaks things, so being certain about the dependencies is important.

Also adds the package.json to depdendabot so we can get PRs for updates.

Signed-off-by: Ryan Nowak <nowakra@gmail.com>
@rynowak
rynowak force-pushed the rynowak/pin-typespec branch from 4d710b2 to 0a86352 Compare November 4, 2024 17:10
@rynowak

rynowak commented Nov 4, 2024

Copy link
Copy Markdown
Contributor Author

@brooke-hamilton - ready for a rereview!

@rynowak
rynowak temporarily deployed to functional-tests November 4, 2024 17:36 — with GitHub Actions Inactive
@radius-functional-tests

radius-functional-tests Bot commented Nov 4, 2024 •

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Name Value
Repository rynowak/radius
Commit ref 0a86352
Unique ID func914c1f05ad
Image tag pr-func914c1f05ad
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func914c1f05ad
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-func914c1f05ad
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func914c1f05ad
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func914c1f05ad
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting corerp-cloud functional tests...
⌛ Starting ucp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

@brooke-hamilton brooke-hamilton left a comment

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.

@rynowak looks good: rebuild dev container --> make generate --> zero file changes.

@rynowak
rynowak temporarily deployed to functional-tests November 4, 2024 18:00 — with GitHub Actions Inactive
@rynowak

rynowak commented Nov 4, 2024

Copy link
Copy Markdown
Contributor Author

Will need yet another approval after updating to latest main 😆

@radius-functional-tests

radius-functional-tests Bot commented Nov 4, 2024 •

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Name Value
Repository rynowak/radius
Commit ref 94a486a
Unique ID funccafd769c57
Image tag pr-funccafd769c57
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-funccafd769c57
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-funccafd769c57
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funccafd769c57
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funccafd769c57
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting ucp-cloud functional tests...
⌛ Starting corerp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

@rynowak
rynowak merged commit 3492b53 into radius-project:main Nov 4, 2024
@rynowak
rynowak deleted the rynowak/pin-typespec branch November 4, 2024 18:31

This branch was previously deployed

1 inactive deployment
functional-tests — 94a486ac Deployed Nov 4, 2024 by rynowak
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.

6 participants