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

pantsbuild / pants / 25064960224

28 Apr 2026 04:26PM UTC coverage: 92.954% (-0.001%) from 92.955%
25064960224

push

github

web-flow
make test_cache_scope_per_restart "more random" (#23287)

We have one report of this flaking at #12499. I have not been able to
reproduce it locally and the test has been enabled for ~5 years without
further reports. Per
https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html
`$RANDOM` "expands to a random integer between 0 and 32767" which isn't
a very wide range. (And I think it would also be fair to characterize it
as only pseudo-random.)

To make this even less likely to re-occur, add an extra `$RANDOM` and
call it a day.

(A "better" change would be to use `$SRANDOM`, but macs are on super old
bash.)

closes #12499

91822 of 98782 relevant lines covered (92.95%)

3.72 hits per line

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

96.15
/src/python/pants/backend/tools/preamble/subsystem.py


Build SHA Not Found

The commit SHA "250e85fcae98eec6ca9f9aeeaaae183f801ce78b" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

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

© 2026 Coveralls, Inc