Skip to content

[pipeline] remove delete logic before regeneration#3141

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

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

Conversation

@msyyc
Copy link
Member

@msyyc msyyc commented Jul 28, 2025

@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
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
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
Contributor

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 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

Comments