-
Notifications
You must be signed in to change notification settings - Fork 97
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
base: main
Are you sure you want to change the base?
Update autorest version for Radius #8042
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
d90069b
to
6bd877b
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
6bd877b
to
4f33be7
Compare
b0af588
to
5a5193f
Compare
Radius functional test overview
Click here to see the list of tools in the current test run
Test Status⌛ Building Radius and pushing container images for functional tests... |
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know what's causing this fake
directory to be created?
@@ -44,7 +44,8 @@ The following configuration generates track2 go models and client. | |||
|
|||
```yaml $(tag) != '' | |||
version: 3.*.* | |||
use: "@autorest/[email protected]" | |||
use: "@autorest/[email protected]" | |||
module: "github.com/radius-project/radius/pkg/daprrp/api/v20231001preview" | |||
module-version: 0.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need to be updated as well?
@@ -46,7 +46,8 @@ The following configuration generates track2 go models and client. | |||
|
|||
```yaml $(tag) != '' | |||
version: 3.*.* | |||
use: "@autorest/[email protected]" | |||
use: "@autorest/[email protected]" | |||
module: "github.com/radius-project/radius/pkg/corerp/api/v20231001preview" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was module
made a required property in the new version?
ProvisioningStateCanceled ProvisioningState = "Canceled" | ||
// ProvisioningStateCreating - The resource is being created | ||
// ProvisioningStateCreating - The resource is being created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments formatting seems off..
pending questions - approved by mistake
5a5193f
to
1567ac9
Compare
1567ac9
to
dcbf17a
Compare
dcbf17a
to
7349271
Compare
Signed-off-by: lakshmimsft <[email protected]>
7349271
to
7625b4f
Compare
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.
Fixes: #issue_number
Contributor checklist
Please verify that the PR meets the following requirements, where applicable: