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

tests: add integration test for build_python_zip #2045

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

rickeylev
Copy link
Contributor

This is a more comprehensive regression test for verifying --build_python_zip is
actually working (#1840)

This also creates a small framework to make it easier to write integration tests that
need to customize the environment bazel runs in and check the output of bazel itself.
I figure this will be helpful for writing simple verification tests for repository/bzlmod
phase logic (i.e. set the debug env vars and grep the output). While we should avoid heavy
usage of these bazel-in-bazel tests, a bit of grepping logs would go a long way for covering
edge cases that examples don't cover.

@rickeylev rickeylev requested a review from aignas as a code owner July 8, 2024 04:17
@rickeylev
Copy link
Contributor Author

There we go. CI is happy now. PTAL

Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

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

Nice, I like the print(__file__) :D

@aignas aignas added this pull request to the merge queue Jul 10, 2024
Merged via the queue into bazelbuild:main with commit 04f5798 Jul 10, 2024
4 checks passed
@rickeylev rickeylev deleted the invocation.integration.tests branch July 10, 2024 15:58
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