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

CI: lint file generation #199

Merged
merged 1 commit into from
Aug 27, 2024
Merged

CI: lint file generation #199

merged 1 commit into from
Aug 27, 2024

Conversation

chrisseto
Copy link
Contributor

Previously it was possible for devs to forget to run ./task generate which could result in strange CI failures at best or shipping stale manifests in the worst case.

This commit adds git diff --exit-code to our CI tasks which will cause CI to fail if the generation task produces any unexpected diffs.

@chrisseto chrisseto requested a review from andrewstucki August 21, 2024 15:57
@chrisseto chrisseto force-pushed the chris/p/lint-generate branch 3 times, most recently from 6ed3eae to 24f4f39 Compare August 26, 2024 16:15
@chrisseto
Copy link
Contributor Author

Ah, looks like this is running into issues the parent directory not being owned by the buildkite user. Strange the git diff has such a poor error message.

@chrisseto chrisseto force-pushed the chris/p/lint-generate branch 2 times, most recently from 3b20db1 to 23ee7d8 Compare August 26, 2024 19:38
Copy link
Contributor

@RafalKorepta RafalKorepta left a comment

Choose a reason for hiding this comment

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

I don't why quill was added in the first place, but I'm happy that we removed obsolete tools.

@RafalKorepta RafalKorepta enabled auto-merge (rebase) August 27, 2024 09:05
Previously it was possible for devs to forget to run `./task generate` which
could result in strange CI failures at best or shipping stale manifests in the
worst case.

This commit adds `git diff --exit-code` to our CI tasks which will cause CI to
fail if the generation task produces any unexpected diffs.
@RafalKorepta RafalKorepta force-pushed the chris/p/lint-generate branch from 23ee7d8 to 119d2ae Compare August 27, 2024 13:07
@RafalKorepta RafalKorepta merged commit 302f988 into main Aug 27, 2024
3 of 4 checks passed
@chrisseto chrisseto deleted the chris/p/lint-generate branch August 27, 2024 13:59
@chrisseto
Copy link
Contributor Author

I think it was for the client side migration tool originally?

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