Repository navigation
Recently-introduced breaking change (unintentional?) in process.uptime() #26205
Description
Activity
- addedflaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.
on Feb 19, 2019 Actually, this looks like a genuine bug and not something flaky.
- changed the title
[-]Investigate flaky pummel/test-process-uptime[/-][+]Recently-introduced bug in process.uptime()[/+]on Feb 19, 2019 - changed the title
[-]Recently-introduced bug in process.uptime()[/-][+]Recently-introduced breaking change (unintentional?) in process.uptime()[/+]on Feb 19, 2019 fd0a861 seems like a likely culprit. /cc @joyeecheung
Btw, the test doesn’t look like something that should go into
pummel/?Btw, the test doesn’t look like something that should go into
pummel/?Agreed. It can at least go in
sequentialand might be perfectly fine inparallel, although the check that the initial call is <= 2 might need to be<= common.platformTimeout(2). (Would need empirical testing to find out.) The long 2000ms timer can also likely be shortened. In fact, we can probably get rid of it entirely and just check that a subsequent call touptime()returns a number greater than the previous call (and not too much greater than the previous call perhaps).If we are only testing that the uptime is in the right unit, testing the initial value < 1000 should be fine? Or something like
common.platformTimeout(10)?If we are only testing that the uptime is in the right unit, testing the initial value < 1000 should be fine?
The 2 seconds that are currently in the test doesn’t seem like a bad value to me, but I think we had problems in the recent past with a test that relied on a fixed startup time limit. (I unfortunately don’t remember which test that was, so I don’t know what the problematic value was).
@addaleax The current value in
test-performance.jsis 15 seconds, that seems to work fine?Reacted by Anna HenningsenFix in #26206
- added 2 commits that reference this issue
on Feb 19, 2019 - added 2 commits that reference this issue
on Feb 21, 2019 - added 2 commits that reference this issue
on Feb 28, 2019
https://ci.nodejs.org/job/node-test-commit-custom-suites/879/default/console
test-rackspace-ubuntu1604-x64-1