Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.

[pipeline] remove delete logic before regeneration - #3141

Merged
iscai-msft merged 1 commit into
mainfrom
msyyc-patch-1
Jul 28, 2025
Merged

[pipeline] remove delete logic before regeneration#3141
iscai-msft merged 1 commit into
mainfrom
msyyc-patch-1

Conversation

@msyyc

@msyyc Yuchao Yan (msyyc) commented Jul 28, 2025

Copy link
Copy Markdown
Member

iscai-msft plans to add some patch code in the repo then we should not delete whole repo before regeneration, otherwise there is code diff in CI.

- script: |
rm -rf test/azure/generated test/unbranded/generated
npm run regenerate
- script: npm run regenerate

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Another solution is that we add --filter for those directory which has patched code. But this solution may need additional maintenance if we plan to add more patch code in the future.
iscai-msft which one do you prefer?

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.

In Go, we put some keywords like DO NOT EDIT for the generated code. I think Python could follow the similar logic. Only remove the auto-generated code.

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.

Yeah we could do something like that, let me create an issue for that. For the meantime, this is good, thanks!

@iscai-msft
iscai-msft merged commit de43c9c into main Jul 28, 2025
15 checks passed
@iscai-msft
iscai-msft deleted the msyyc-patch-1 branch July 28, 2025 15:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants