qa: Ignore `--failfast` option of `test_runner.py` on Windows #22980

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:210915-failfast changing 2 files +4 −3
  1. hebasto commented at 11:21 AM on September 15, 2021: member

    The current --failfast implementation does not work on Windows.

    This PR is an alternative to #22936, and it is based on the #22936#pullrequestreview-751153668:

    An alternative would be to just not fix it. I mean who uses Windows anyway (to run the functional tests with --failfast).

    At least with the error message, it well be clear that something went wrong. With this patch it will leave them dangling.

  2. qa: Ignore `--failfast` option of `test_runner.py` on Windows
    The current `--failfast` implementation does not work on Windows.
    4da15f9938
  3. DrahtBot added the label Tests on Sep 15, 2021
  4. MarcoFalke commented at 12:48 PM on September 15, 2021: member

    Again, it would be preferable to not fixing anything here. Am I missing something?

    With this patch we will waste CI cycles after hitting a failure.

    To quote myself:

    An alternative would be to just not fix it. I mean who uses Windows anyway (to run the functional tests with --failfast).

  5. hebasto closed this on Sep 15, 2021

  6. hebasto commented at 11:44 AM on November 9, 2021: member

    @MarcoFalke

    With this patch we will waste CI cycles after hitting a failure.

    A failure in functional tests is rare.

    OTOH, seeing all of the failed tests can give us a useful hint for debugging (was thinking about that while reviewing and testing #23300).

    For reasons mentioned above, I'd disable --fail-fast in all CI tasks.

  7. MarcoFalke commented at 11:59 AM on November 9, 2021: member

    Yeah, it is a trade-off. If there is a CI failure, it will be good to know the result as early as possible after opening the pull request. If there is more time, it will be good to know all tests that failed.

    Ideally the ci infrastructure could be marked red during a run. Then the run would continue with the remaining tests.

  8. hebasto commented at 12:11 PM on November 9, 2021: member

    it will be good to know the result as early as possible after opening the pull request.

    With high probability a first failed test won't be the first in the run queue. Also it could be one of EXTENDED_SCRIPTS.

    Therefore, the average amount of saved time for such an approach is less significant than it could appear.

  9. MarcoFalke commented at 12:15 PM on November 9, 2021: member

    Well that would be a reason to simply remove the option, thus revert #13105.

  10. MarcoFalke referenced this in commit 15d109802a on Nov 15, 2021
  11. DrahtBot locked this on Nov 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me