Giter VIP home page Giter VIP logo

Comments (10)

keyonghan avatar keyonghan commented on May 24, 2024

We should set up a time out of the specific test (smaller than the build timeout) to allow the os info collection to run in the end.

from flutter.

keyonghan avatar keyonghan commented on May 24, 2024

Also, if this is related to an emulator crash, the test should be able to catch the crash and exit early.

from flutter.

matanlurey avatar matanlurey commented on May 24, 2024

Just to be clear my specific case was a Dart script that ran an emulator, but I don't think the emulator crashed.

from flutter.

matanlurey avatar matanlurey commented on May 24, 2024

Just to be clear my specific case was a Dart script that ran an emulator, but I don't think the emulator crashed.

from flutter.

godofredoc avatar godofredoc commented on May 24, 2024

Add default timeouts for global/build tests: https://flutter-review.googlesource.com/c/recipes/+/55162

from flutter.

godofredoc avatar godofredoc commented on May 24, 2024

@matanlurey infra changes and docs have landed, can you please help us assigning the appropriate timeouts to the emulator tests in the engine json config files?

from flutter.

matanlurey avatar matanlurey commented on May 24, 2024

@matanlurey infra changes and docs have landed, can you please help us assigning the appropriate timeouts to the emulator tests in the engine json config files?

Yup, would love to do that - my only confusion is what to do if I'm happy with the default 1h timeout?

Just close this issue as done?

from flutter.

godofredoc avatar godofredoc commented on May 24, 2024

Yes, I believe we can close this bug as done, with enough time for the build to complete we will have access to the generic logs collection and process cleanup steps. We can also collect test specific logs updating the test script to collect any additional information and save it to "FLUTTER_LOGS_DIR" https://github.com/flutter/engine/blob/main/ci/builders/README.md#tests.

The defaults for tests steps are now:

  • 3 retries on failures.
  • 30 mins timeout

If a test times out it will retry it automatically, if you are ok with the default 30 mins test timeout then my only recommendation would be to increase the build timeout to something that allows enough time for the logs collection step to run. In this case something like 120 mins.

With enough time for the build to complete the dart processes being killed will be available in the cleanup step:

image

from flutter.

matanlurey avatar matanlurey commented on May 24, 2024

Perfect! This is great, thanks all!

from flutter.

github-actions avatar github-actions commented on May 24, 2024

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.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.