Skip to content
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

Increase timeout of amp-pixel integration test to address its flakiness. #19723

Closed
wants to merge 1 commit into from

Conversation

lannka
Copy link
Contributor

@lannka lannka commented Dec 7, 2018

For #19722

@@ -20,7 +20,7 @@ import {Services} from '../../src/services';
import {createElementWithAttributes} from '../../src/dom';

describe.configure().skipIfPropertiesObfuscated().run('amp-pixel', function() {
this.timeout(1000);
this.timeout(15000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a 15x increase in the potential running time for this test. Is it actually necessary? If many tests were to do the same thing, we could see a lot more overall timeouts on Sauce Labs / Travis.

Alternatively, is there a way to trigger the behavior being tested a lot faster when the runtime knows that tests are being run?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no trigger. seems to me it's just the slowness in Edge. it is just a timeout anyway, for successful run, it normally should take less than 1s. The impact here is that it will fail 15X slower if it gotta fail, which I think is fine for Travis. I'm fine with changing this number to 5s if it passes tests on Edge. this 15s number is copied from other integration tests.

However, we do want it fail faster in local dev to save developer's time. That can be a separate improvement.

Anyway, this PR couldn't be merged alone, @choumx you might apply this change to your fixing PR.

@dreamofabear
Copy link

598abdb

@lannka lannka closed this Dec 7, 2018
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.

None yet

4 participants