Skip to content

Remove test timeouts by default #33931

Closed

Description

@Hixie
No description provided.

Activity

  1. added
    a: tests"flutter test", flutter_test, or one of our tests
    c: API breakBackwards-incompatible API changes
    on Jun 5, 2019
  2. added this to the June 2019 milestone on Jun 5, 2019
  3. dnfield commented on Jun 5, 2019

    @dnfield
    Contributor

    Cirrus has a hard limit of 1 hour for tests to complete - we can bump that as high as 90 minutes, but have resisted doing so (because we should really shard rather than doing that). I'm not sure what the exact timeout is for LUCI, but it's longer - I've seen tests run for at least a couple hours before finally being killed by the agent when things go bad. On the devicelab it's 15 minutes - I don't know if you're proposing removing that as well though.

    I'm concerned that this change will have a few undesired consequences on CI infra:

    1. Tests that are broken or flaky will still fail to complete, but they'll just exhaust the entirety of the remaining duration on CI.
    2. CI machines will be less available for running new commits. This is particularly troubling on LUCI and the devicelab, where we're constrained to a few machines available for all testing.
    3. These problems (1 and 2) will compound as we shard things out. Tests should get shorter over all, but badly behaving tests (or environments) could end up getting booked for hours without the tester killing them.
  4. dnfield commented on Jun 5, 2019

    @dnfield
    Contributor

    It's entirely possible that these concerns are based on a misunderstanding of the role of initialTimeout.

  5. Hixie commented on Jun 6, 2019

    @Hixie
    ContributorAuthor

    That's fair. Maybe we should set the package:test timeout to 30 minutes or some such?

  6. dnfield commented on Jun 6, 2019

    @dnfield
    Contributor

    That's better, but it would still mean that one misbehaving test could tie up a machine for 30 minutes instead of the current limit of something like 5.

  7. Hixie commented on Jun 7, 2019

    @Hixie
    ContributorAuthor

    The current limit is 2 minutes.

    How do we know if 2 minutes (or 30 minutes) is enough to avoid flakes?

  8. Hixie commented on Jun 7, 2019

    @Hixie
    ContributorAuthor

    I guess my problem is I have no idea how to pick the timeout to avoid the race condition.

  9. self-assigned this
    on Jun 11, 2019
  10. github-actions commented on Aug 29, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: tests"flutter test", flutter_test, or one of our testsc: API breakBackwards-incompatible API changes

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions