Skip to content

tests: add integration test for build_python_zip#2045

Merged
aignas merged 4 commits intobazel-contrib:mainfrom
rickeylev:invocation.integration.tests
Jul 10, 2024
Merged

tests: add integration test for build_python_zip#2045
aignas merged 4 commits intobazel-contrib:mainfrom
rickeylev:invocation.integration.tests

Conversation

@rickeylev
Copy link
Collaborator

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
Collaborator 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 bazel-contrib:main with commit 04f5798 Jul 10, 2024
@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