Skip to content

GH-145762: Fix test_ci_fuzz_stdlib when running the tests after building from the source archive#145778

Open
chris-eibl wants to merge 1 commit intopython:mainfrom
chris-eibl:fix_test_ci_fuzz_stdlib_part2
Open

GH-145762: Fix test_ci_fuzz_stdlib when running the tests after building from the source archive#145778
chris-eibl wants to merge 1 commit intopython:mainfrom
chris-eibl:fix_test_ci_fuzz_stdlib_part2

Conversation

@chris-eibl
Copy link
Member

@chris-eibl chris-eibl commented Mar 10, 2026

when running the tests after building from the source archive
f = p
else:
self.fail(f"LIBRARY_FUZZER_PATHS contains an invalid entry: {p!r}")
continue
Copy link
Member

Choose a reason for hiding this comment

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

@StanFromIreland do we still want to log this, though? Or perhaps have a mechanism for skipping checks / checking against different sets of files in certain envs?

Copy link
Member

@StanFromIreland StanFromIreland Mar 10, 2026

Choose a reason for hiding this comment

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

Or perhaps have a mechanism for skipping checks / checking against different sets of files in certain envs?

As I noted in the issue, this will greatly complicate the test (and increase the maintenance burden, who knows what envs people use), for something that is not particularly important. As such, I think skipping is fine, logging them too, however, sounds good.

Copy link
Member Author

Choose a reason for hiding this comment

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

"Simple prints" will get lost in the noise of the output, and be false-positives in the OPs case.

I don't think

print(f"Warning: LIBRARY_FUZZER_PATHS might contain an invalid entry: {p!r}")

will do any good.
So I think this is fine to go. It was the previous behaviour, anyway. I just thought it is a low hanging fruit to crop when the else was removed in #145232 and we had spurious failures ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants