• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 29261418526

13 Jul 2026 03:14PM UTC coverage: 87.044% (-5.9%) from 92.971%
29261418526

push

github

web-flow
split invalidate_randomly into two deterministic tests (#23280)

This test was identified as flaky in 2020 and went through a prior
re-enable/backout dance. On my workstation with no load I can run it
1000 times without error. Under artificial cpu load (nice + dummy procs)
it fails ~20% of the time. So I think this is a straightforward timing
based assertion problem.

To "fix" this, the test is broken out into two smaller tests:
 * An assertion on small deterministic inputs.
 * Liveness under random invalidation.

I think the ideal fix would be some sort of fuzz or property based
testing system. But since once hasn't been adopted already and this test
has hung out for six years, I think this is a positive incremental move
forward.

closes #10839

Notice: A LLM both did the "run the tests a bunch scripting" and
generated the final code. I made the call on splitting versus futzing
with timeouts or high scope logical clock changes.

76293 of 87649 relevant lines covered (87.04%)

3.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.0
/src/python/pants/backend/python/util_rules/lockfile_metadata.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc