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: check generated parser code before running unit tests #14012

Merged
merged 1 commit into from
May 1, 2024

Conversation

krajorama
Copy link
Member

Check that the generated parser code is consistent with the input definition.

Fixes: #7488

@krajorama krajorama marked this pull request as draft April 30, 2024 14:24
@krajorama krajorama force-pushed the ci-check-promql-parser branch 8 times, most recently from ba83762 to 542080d Compare April 30, 2024 15:56
Check that the generated parser code is consistent with the input definition.

Remove the file before re-generating to make sure that missing goyacc is
not effecting the check.

Fixes: prometheus#7488

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@krajorama
Copy link
Member Author

@krajorama krajorama marked this pull request as ready for review April 30, 2024 16:01
Copy link
Member

@jesusvazquez jesusvazquez left a comment

Choose a reason for hiding this comment

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

LGTM

@krajorama krajorama merged commit 29b5583 into prometheus:main May 1, 2024
25 checks passed
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.

ci: make sure promql/parser/generated_parser.y.go is reproducible
3 participants