You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any help on why this test could be failing? I know this is an unusual platform, so I can provide shell access to the machine in question if somebody would mind taking a look. I can also interactively debug, or test patches as needed.
It's a DEC Alpha machine! I've seen issues show up here before due to (1) low clock resolution and (2) race conditions exposed by its slow speed. If the log isn't enough to identify the problem, I have free shell access to all of the unusual machines I test on. Would provisioning an account so you can investigate directly help?
Both failures are possibly related to timing things, which as you say might be due to a low clock resolution. I don't really know much about alpha, and don't have time to try to debug it. I would be happy to accept a contribution to fix the test failures though!
Would a focused test-only change for test_time_block_decorator_with_label still be useful? It currently expects two real clock readings around a very short block to produce a positive duration. I could use controlled clock values and assert the duration recorded on the labeled gauge, so the test doesn’t depend on the machine’s clock resolution. I haven’t reproduced this on Alpha, and would leave the separate multiprocess failure out of this first change. Is anyone already working on it?
@fahadaldajani92’s approach for test_time_block_decorator_with_label makes sense, so I’ll leave that one to him. I’d like to take the other failure from this thread, test_gauge_mostrecent (and test_gauge_livemostrecent, which has the same issue). The two set() calls can get identical time.time() stamps on a coarse clock, and on a tie the collector keeps whichever .db file it reads first, so the result depends on filesystem order. I’d patch time.time in the tests with increasing values. Test-only change; I’ll open a separate PR unless someone objects.
Activity
roidelapluie commentedon Aug 8, 2023
What is alpha?
matoro commentedon Aug 8, 2023
It's a DEC Alpha machine! I've seen issues show up here before due to (1) low clock resolution and (2) race conditions exposed by its slow speed. If the log isn't enough to identify the problem, I have free shell access to all of the unusual machines I test on. Would provisioning an account so you can investigate directly help?
matoro commentedon Oct 31, 2023
One additional failure in 0.18.0.
csmarchbanks commentedon Nov 1, 2023
Both failures are possibly related to timing things, which as you say might be due to a low clock resolution. I don't really know much about alpha, and don't have time to try to debug it. I would be happy to accept a contribution to fix the test failures though!
fahadaldajani92 commentedon Oct 8, 2026
Would a focused test-only change for test_time_block_decorator_with_label still be useful? It currently expects two real clock readings around a very short block to produce a positive duration. I could use controlled clock values and assert the duration recorded on the labeled gauge, so the test doesn’t depend on the machine’s clock resolution. I haven’t reproduced this on Alpha, and would leave the separate multiprocess failure out of this first change. Is anyone already working on it?
nischita44 commentedon Oct 9, 2026
@fahadaldajani92’s approach for test_time_block_decorator_with_label makes sense, so I’ll leave that one to him. I’d like to take the other failure from this thread, test_gauge_mostrecent (and test_gauge_livemostrecent, which has the same issue). The two set() calls can get identical time.time() stamps on a coarse clock, and on a tie the collector keeps whichever .db file it reads first, so the result depends on filesystem order. I’d patch time.time in the tests with increasing values. Test-only change; I’ll open a separate PR unless someone objects.