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

Upgrade to autorest 3.6.2 #6363

Open
jkotalik opened this issue Jul 19, 2022 · 1 comment
Open

Upgrade to autorest 3.6.2 #6363

jkotalik opened this issue Jul 19, 2022 · 1 comment

Comments

@jkotalik
Copy link
Contributor

jkotalik commented Jul 19, 2022

Autorest 3.6.2 caused make generate-bicep-types to hang, for now we are hard coding 3.6.1. This is where it hangs.

\033[34;1m=>\033[0m Detecting node...
\033[34;1m=>\033[0m OK
\033[34;1m=>\033[0m Generating OpenAPI schema manifest...
go run cmd/autorest-schema-gen/main.go \
        --output schemas/rest-api-specs/radius.json \
        `# We can't just do pkg/radrp/schema/*.json because we want to exclude resource-types.json` \
        pkg/radrp/schema/common-types.json \
        pkg/radrp/schema/application.json \
        pkg/radrp/schema/traits.json \
        pkg/radrp/schema/*/*.json
\033[34;1m=>\033[0m Generating Bicep extensibility types from OpenAPI specs...
\033[34;1m=>\033[0m Build autorest.bicep...
cd hack/bicep-types-radius/src/autorest.bicep; \
npm ci && npm run build; \
cd ../generator; \
echo "Run generator from hack/bicep-types-radius/src/generator dir"; \
npm ci && npm run generate -- --specs-dir ../../../../swagger
npm WARN prepare removing existing node_modules/ before installation

> [email protected] preinstall C:\Users\jukotali\go\src\github.com\azure\radius\hack\bicep-types-radius\src\autorest.bicep\node_modules\autorest
> node ./.scripts/preinstall-check

added 444 packages in 9.743s

> @autorest/[email protected] build C:\Users\jukotali\go\src\github.com\azure\radius\hack\bicep-types-radius\src\autorest.bicep
> tsc -p .

Run generator from hack/bicep-types-radius/src/generator dir
npm WARN prepare removing existing node_modules/ before installation

> [email protected] preinstall C:\Users\jukotali\go\src\github.com\azure\radius\hack\bicep-types-radius\src\generator\node_modules\autorest
> node ./.scripts/preinstall-check

added 173 packages in 6.688s

> @autorest/[email protected] generate C:\Users\jukotali\go\src\github.com\azure\radius\hack\bicep-types-radius\src\generator
> ts-node src/cmd/generate "--specs-dir" "../../../../swagger"

AutoRest code generation utility [cli version: 3.6.1; node: v14.15.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
info    |    Loading AutoRest core      'C:\Users\jukotali\go\src\github.com\azure\radius\hack\bicep-types-radius\src\generator\node_modules\@autorest\core\dist' (3.8.3)
info    |    Loading local AutoRest extension '@autorest/bicep' (C:/Users/jukotali/go/src/github.com/azure/radius/hack/bicep-types-radius/src/autorest.bicep)
info    |    Loading AutoRest extension '@autorest/modelerfour' (*->4.24.0)
info    | Processing batch task - {"tag":"applications.core-2022-03-15-privatepreview"} .
info    |    Loading local AutoRest extension '@autorest/bicep' (C:/Users/jukotali/go/src/github.com/azure/radius/hack/bicep-types-radius/src/autorest.bicep)
info    |    Loading AutoRest extension '@autorest/modelerfour' (*->4.24.0)
warning | SkippedSemanticValidation | Semantic validation was skipped.
warning | PreCheck/SchemaMissingType | The schema 'IamProperties' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    - file:///C:/Users/jukotali/go/src/github.com/azure/radius/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/containers.json:316:7
warning | PreCheck/SchemaMissingType | The schema 'ConnectionProperties' with an undefined type and declared properties is a bit ambiguous. This has been auto-corrected to 'type:object'
    - file:///C:/Users/jukotali/go/src/github.com/azure/radius/swagger/specification/applications/resource-manager/Applications.Core/preview/2022-03-15-privatepreview/containers.json:341:7
warning | PreCheck/CheckDuplicateSchemas | Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.

AB#6954

@emily-potyraj
Copy link
Contributor

triage note: not a v0.12 blocker

@willtsai willtsai transferred this issue from radius-project/radius Sep 19, 2023
@willtsai willtsai transferred this issue from another repository Sep 27, 2023
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

No branches or pull requests

2 participants