Skip to content

fix autogen cmd #444

Merged
kairu-ms merged 4 commits intoAzure:devfrom
AllyW:fix-autogen-cmd
Mar 3, 2025
Merged

fix autogen cmd #444
kairu-ms merged 4 commits intoAzure:devfrom
AllyW:fix-autogen-cmd

Conversation

@AllyW
Copy link
Copy Markdown
Contributor

@AllyW AllyW commented Jan 20, 2025

test cmd:

  1. aaz-dev command-model generate-from-swagger -a .\aaz --sm .\azure-rest-api-specs\specification\liftrpinecone -m liftrpinecone --rp Pinecone.VectorDb --swagger-tag package-2024-10-22-preview
  2. aaz-dev cli generate-by-swagger-tag -a .\aaz\ -e .\azure-cli-extensions\ --name liftrpinecone-self --sm .\azure-rest-api-specs\specification\liftrpinecone --rp Pinecone.VectorDb --tag package-2024-10-22-preview --profile latest

Comment on lines 1246 to 1263
if self.is_in_memory:
return None
assert not self.is_in_memory
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There must be some internal bugs, because the old code add assert below to guarantee it's not in memory . Could you find the reason why it's in memory.

Copy link
Copy Markdown
Contributor Author

@AllyW AllyW Jan 21, 2025

Choose a reason for hiding this comment

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

is_in_memory is true when the ws does not get saved in file system, (for cmd aaz-dev command-model generate-from-swagger), so it cannot be loaded from memory either.

@AllyW AllyW marked this pull request as draft February 19, 2025 04:00
@AllyW AllyW marked this pull request as ready for review February 28, 2025 07:59
@kairu-ms kairu-ms merged commit 33e7320 into Azure:dev Mar 3, 2025
3 checks passed
@AllyW AllyW mentioned this pull request Mar 4, 2025
@AllyW AllyW deleted the fix-autogen-cmd branch May 21, 2025 08:58
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