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 autorest version for Radius #8042

Merged

Conversation

lakshmimsft
Copy link
Contributor

@lakshmimsft lakshmimsft commented Nov 9, 2024

Description

Updating autorest version for Radius.
@autorest/core v3.10.3
@autorest/go v4.0.0-preview.69

@autorest/cli is currently at 3.7.1. No updates needed, current code uses v3.7.1.

Notes: All clients generated will be included in this PR except for GenericResource (pkg/cli/clients_new/generated/)which needs some discussion with the team.

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

Fixes: #issue_number

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.

Copy link

codecov bot commented Nov 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.94%. Comparing base (9e41b41) to head (5a5193f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8042   +/-   ##
=======================================
  Coverage   58.94%   58.94%           
=======================================
  Files         567      567           
  Lines       37726    37726           
=======================================
  Hits        22236    22236           
  Misses      13945    13945           
  Partials     1545     1545           

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

@radius-functional-tests
Copy link

radius-functional-tests bot commented Nov 9, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository lakshmimsft/radius-mainfork
Commit ref 6bd877b
Unique ID func8e3355755d
Image tag pr-func8e3355755d
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-func8e3355755d
  • 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-func8e3355755d
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func8e3355755d
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func8e3355755d
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func8e3355755d
  • 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

@lakshmimsft lakshmimsft marked this pull request as draft November 10, 2024 05:00
@lakshmimsft lakshmimsft force-pushed the lakshmimsft/autorestupdate branch from 6bd877b to 4f33be7 Compare November 10, 2024 06:41
@lakshmimsft lakshmimsft force-pushed the lakshmimsft/autorestupdate branch from b0af588 to 5a5193f Compare November 11, 2024 18:17
@radius-functional-tests
Copy link

radius-functional-tests bot commented Nov 11, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository lakshmimsft/radius-mainfork
Commit ref 5a5193f
Unique ID func393552cb99
Image tag pr-func393552cb99
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-func393552cb99
  • 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-func393552cb99
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func393552cb99
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func393552cb99
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func393552cb99
  • 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

@lakshmimsft lakshmimsft changed the title <WIP-DO NOT REVIEW> Update autorest version for Radius Update autorest version for Radius Nov 11, 2024
@lakshmimsft lakshmimsft marked this pull request as ready for review November 11, 2024 19:05
@@ -79,27 +79,27 @@ generate-genericcliclient: generate-node-installed generate-autorest-installed
.PHONY: generate-rad-corerp-client
generate-rad-corerp-client: generate-node-installed generate-autorest-installed generate-tsp-installed generate-openapi-spec ## Generates the corerp client SDK (Autorest).
@echo "$(AUTOREST_MODULE_VERSION) is module version"
autorest pkg/corerp/api/README.md --tag=core-2023-10-01-preview
autorest pkg/corerp/api/README.md --tag=core-2023-10-01-preview && rm pkg/corerp/api/v20231001preview/go.mod
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the go.mod that we are removing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're required to set values for module and module version because we set azure-arm: true in autorest configuration. This creates a go.mod file. It looks for existing go.mod in the output directory and creates it since it doesn't already exist. We can remove it post generation of file, in our usecase, since we want the generated output to be part of the existing module at the root of the project.

Copy link
Contributor

Choose a reason for hiding this comment

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

how were we removing it before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We didn't need to. The updated version of autorest.go client creates a single module per invocation.

kachawla
kachawla previously approved these changes Nov 27, 2024
pkg/daprrp/api/README.md Show resolved Hide resolved
pkg/corerp/api/README.md Show resolved Hide resolved
@kachawla kachawla dismissed their stale review November 27, 2024 02:41

pending questions - approved by mistake

@lakshmimsft lakshmimsft force-pushed the lakshmimsft/autorestupdate branch from 5a5193f to 1567ac9 Compare November 27, 2024 21:35
@lakshmimsft lakshmimsft force-pushed the lakshmimsft/autorestupdate branch from 1567ac9 to dcbf17a Compare November 27, 2024 22:20
@lakshmimsft lakshmimsft force-pushed the lakshmimsft/autorestupdate branch from dcbf17a to 7349271 Compare November 27, 2024 22:31
@lakshmimsft lakshmimsft force-pushed the lakshmimsft/autorestupdate branch from 7349271 to 7625b4f Compare November 27, 2024 22:33
@lakshmimsft lakshmimsft force-pushed the lakshmimsft/autorestupdate branch from 7625b4f to ea6f130 Compare December 2, 2024 17:33
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 2, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository lakshmimsft/radius-mainfork
Commit ref b6dc9b7
Unique ID funcf387cbcf07
Image tag pr-funcf387cbcf07
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr:
  • 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-funcf387cbcf07
  • 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-funcf387cbcf07
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-funcf387cbcf07
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funcf387cbcf07
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funcf387cbcf07
  • 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...
✅ corerp-cloud functional tests succeeded
✅ ucp-cloud functional tests succeeded

Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 3, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository lakshmimsft/radius-mainfork
Commit ref 18a7d71
Unique ID func96b9e64e5f
Image tag pr-func96b9e64e5f
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr:
  • 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-func96b9e64e5f
  • 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-func96b9e64e5f
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func96b9e64e5f
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func96b9e64e5f
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func96b9e64e5f
  • 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...
✅ corerp-cloud functional tests succeeded
✅ ucp-cloud functional tests succeeded

@lakshmimsft lakshmimsft merged commit 6019a05 into radius-project:main Dec 3, 2024
28 checks passed
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.

3 participants