Skip to content

Relax flaky test validations #2802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

BridgeAR
Copy link
Contributor

@BridgeAR BridgeAR commented Mar 25, 2019

One throttle triggers trailing call when invoked repeatedly test
showed up often on CITGM (https://github.com/nodejs/citgm). To reduce
the noise this test causes and to prevent removing underscore from
CITGM, I relaxed the asserts inside of the function. It would be
great if the calls would have a stack trace but there is no such
output if the calls fail, so I relaxed both statements. I can not
fully tell if this will resolve the issue completely but this seemed
like the most straight forward fix besides removing the test
completely.

Refs: #2698

One `throttle triggers trailing call when invoked repeatedly` test
showed up often on CITGM (https://github.com/nodejs/citgm). To reduce
the noise this test causes and to prevent removing `underscore` from
CITGM, I relaxed the asserts inside of the function. It would be
great if the calls would have a stack trace but there is no such
output if the calls fail, so I relaxed both statements. I can not
fully say if this will resolve the issue completely but this seemed
like the most straight forward fix besides removing the test
completely.
@jgonggrijp
Copy link
Collaborator

@BridgeAR Is this still still an issue?

@jgonggrijp
Copy link
Collaborator

@BridgeAR Is there a way I can see the output of those test runs without having to grant the Node.js Jenkins instance access to my private data?

@jgonggrijp
Copy link
Collaborator

@BridgeAR A friendly reminder.

Note: these links are available for ~7 days.

If my counting is correct, the links will expire tomorrow.

Is there a way I can see the output of those test runs without having to grant the Node.js Jenkins instance access to my private data?

@BridgeAR
Copy link
Contributor Author

Thanks for the reminder. I will copy some results over tomorrow when I am back on my notebook.

jgonggrijp added a commit that referenced this pull request Oct 11, 2020
These tests fail relatively often, randomly, though more in some
engines than in others. The random failures are a combination of a
race condition and the imprecision of the global setTimeout function.

This measure shouldn't be taken lightly. It can only be applied if it
does not affect the timing of the throttled (or debounced) function
invocations. In the current patch, only the time at which the result
is read out is slightly delayed so that the readout is less likely to
be too early.

Part of #2879, also related to #2802.
@jgonggrijp
Copy link
Collaborator

@BridgeAR The commit referenced above (as well as another commit that came shortly before it) should have made the issue to occur much less frequently. Please observe for a while and then decide whether to keep this ticket open.

@jgonggrijp
Copy link
Collaborator

@BridgeAR Please reopen if this is still an issue.

@jgonggrijp jgonggrijp closed this Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants