Skip to content

Fix check_must_contain_regex in verify_archive.bzl#910

Merged
aiuto merged 2 commits intobazelbuild:mainfrom
krakeusz:fix/verify_archive_test_must_contain_regex
Jan 13, 2025
Merged

Fix check_must_contain_regex in verify_archive.bzl#910
aiuto merged 2 commits intobazelbuild:mainfrom
krakeusz:fix/verify_archive_test_must_contain_regex

Conversation

@krakeusz
Copy link
Contributor

@krakeusz krakeusz commented Jan 8, 2025

Closes #909

@krakeusz
Copy link
Contributor Author

krakeusz commented Jan 9, 2025

Regarding red CI: it looks like main is red at the moment https://buildkite.com/bazel/rules-pkg/builds/3479#0194485c-e39b-4ec1-97f0-a296c1acb251

@krakeusz
Copy link
Contributor Author

krakeusz commented Jan 9, 2025

I couldn't add any 'negative' tests to verify that verify_archive_test(must_contain_regex=...) can fail. It looks like skylib's unittest doesn't allow running tests during the action execution phase.

But I can confirm that at my company this PR did the trick.

@aiuto aiuto merged commit c5c6879 into bazelbuild:main Jan 13, 2025
@krakeusz krakeusz deleted the fix/verify_archive_test_must_contain_regex branch January 13, 2025 10:42
aiuto added a commit to aiuto/rules_pkg that referenced this pull request Jan 13, 2025
The test was incorrect, but was passing becuase the test harness was
broken. pr/910 fixed the harness, but did not follow up and fix the
broken tests.
meteorcloudy added a commit that referenced this pull request Jan 13, 2025
The test was incorrect, but was passing becuase the test harness was
broken. pr/910 fixed the harness, but did not follow up and fix the
broken tests.
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.

verify_archive_test's must_contain_regex always passes

4 participants