Skip to content

Add CI check that auto-generated code is up to date #1828

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

Merged
merged 30 commits into from
Aug 16, 2023
Merged

Conversation

dhrubabasu
Copy link
Contributor

Why this should be merged

Closes #1553

How this works

Adds a workflow that runs both code generation scripts and checks that the working tree is clean.

How this was tested

CI

@dhrubabasu dhrubabasu added the ci This focuses on changes to the CI process label Aug 9, 2023
@dhrubabasu dhrubabasu added this to the v1.10.8 milestone Aug 9, 2023
@dhrubabasu dhrubabasu self-assigned this Aug 9, 2023
@StephenButtolph StephenButtolph modified the milestones: v1.10.8, v1.10.9 Aug 9, 2023
@joshua-kim joshua-kim mentioned this pull request Aug 15, 2023
hexfusion and others added 8 commits August 16, 2023 10:59
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
Copy link
Contributor

@joshua-kim joshua-kim left a comment

Choose a reason for hiding this comment

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

Some questions, but the code LGTM.

- shell: bash
run: scripts/mock.gen.sh
- shell: bash
run: rm -rf gomock_reflect*
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this mostly for if the previous run failed in a weird state?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah- thinking about it again we should fail if that file still exists. Updated the PR

@StephenButtolph StephenButtolph merged commit b5da142 into dev Aug 16, 2023
@StephenButtolph StephenButtolph deleted the gh-1553 branch August 16, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci This focuses on changes to the CI process
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants