tests: Some issue about running functional tests on Windows #14446

issue ken2812221 opened this issue on October 9, 2018
  1. ken2812221 commented at 4:34 PM on October 9, 2018: contributor

    Since #14007, the functional tests would run on Appveyor CI. However the tests would fail occassionally due to several reasons. Here is the list:

    If you find any fail that is not listed here. Please comment below.

  2. fanquake added the label Windows on Oct 9, 2018
  3. fanquake added the label Tests on Oct 9, 2018
  4. ken2812221 cross-referenced this on Oct 11, 2018 from issue tests: Stop node before removing the notification file by ken2812221
  5. meshcollider commented at 10:18 AM on October 14, 2018: contributor

    Found a new one? in feature_uacomment.py self.nodes[0].assert_start_raises_init_error(["-uacomment=" + unsafe_char], expected, match=ErrorMatch.FULL_REGEX)

    https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/19493806

  6. ken2812221 commented at 10:25 AM on October 14, 2018: contributor

    Found a new one? in feature_uacomment.py self.nodes[0].assert_start_raises_init_error(["-uacomment=" + unsafe_char], expected, match=ErrorMatch.FULL_REGEX)

    https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/19493806

    That is the first situation, you can see ConnectionAbortedError: [WinError 10053] in logs.

  7. sipa commented at 9:53 PM on October 17, 2018: member

    This is pretty annoying, as it adds a big red failure sign to your PR. Can we disable appveyor, or prevent it from influencing the CI status of PRs?

  8. sipa referenced this in commit d387507aec on Oct 19, 2018
  9. sipa commented at 7:02 PM on October 31, 2018: member

    I'm still seeing ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine, for example on https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/19954225.

  10. ken2812221 commented at 4:57 AM on November 1, 2018: contributor

    @sipa #13501 isn't merged yet.

  11. ken2812221 cross-referenced this on Nov 22, 2018 from issue tests: Possible fix the permission error when the tests open the cookie file by ken2812221
  12. promag commented at 5:54 PM on December 6, 2018: member

    @ken2812221 #14670 is merged, can you update this?

  13. MarcoFalke commented at 6:03 PM on December 7, 2018: member

    I still see the block sync timed out issues.

    Also there is a failure in wallet_multiwallet, which might happen on travis as well. https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/20846360?fullLog=true#L85

    test_framework.authproxy.JSONRPCException: Wallet file verification failed: Error loading wallet w3. Duplicate -wallet filename specified. (-4)
    
  14. MarcoFalke referenced this in commit 2753285be7 on Dec 7, 2018
  15. MarcoFalke commented at 6:07 PM on December 7, 2018: member

    Maybe this should be closed and individual issues should be filed for each failure reason?

  16. MarcoFalke commented at 5:33 PM on February 5, 2019: member

    If the issues persist, we might want to ignore the exit code for functional tests for now. That way, the output can still be checked manually, but a failing test wouldn't mark a pull request red in the pull request overview tab.

    Maybe that diff would work:

    diff --git a/.appveyor.yml b/.appveyor.yml
    index eb2d32e1bc..492147a222 100644
    --- a/.appveyor.yml
    +++ b/.appveyor.yml
    @@ -54,5 +54,5 @@ test_script:
     - cmd: src\bench_bitcoin.exe -evals=1 -scaling=0 > NUL
     - ps:  python test\util\bitcoin-util-test.py
     - cmd: python test\util\rpcauth-test.py
    -- cmd: python test\functional\test_runner.py --ci --force --quiet --combinedlogslen=4000 --failfast
    +- cmd: python test\functional\test_runner.py --ci --force --quiet --combinedlogslen=4000 --failfast || echo "ignore test failure"
     deploy: off
    
  17. sdaftuar cross-referenced this on Feb 6, 2019 from issue [qa] Create cached blocks with current timestamps by sdaftuar
  18. sdaftuar commented at 7:54 PM on February 8, 2019: member

    FYI I tracked down the wallet_txn_doublespend.py test failure -- it's due to an actual bug in the test. More explanation in the OP here: #15360.

    The underlying problem is a race condition between connecting two nodes and generating a block on one of those nodes to trigger block sync on the other. I thought in #15360 that the best way to fix this would be to change the properties of the cached datadir that we create in our test framework, but it seems to me now that probably the test should be modified/rewritten so that the nodes start off outside of IBD, which would eliminate the race condition on block sync issue altogether.

  19. ken2812221 cross-referenced this on Feb 9, 2019 from issue appveyor: ignore functional test failure by ken2812221
  20. MarcoFalke cross-referenced this on Feb 15, 2019 from issue qa: Always refresh cache to be out of ibd by MarcoFalke
  21. MarcoFalke referenced this in commit 8f470ecc53 on Feb 25, 2019
  22. MarcoFalke closed this on Feb 25, 2019

  23. mzumsande cross-referenced this on Sep 17, 2019 from issue AppVeyor CI: combine_logs.py fails to fetch debug logs by mzumsande
  24. Munkybooty referenced this in commit bb975fbc84 on Aug 2, 2021
  25. Munkybooty referenced this in commit b9b5e75962 on Aug 3, 2021
  26. Munkybooty referenced this in commit bac4b6dc77 on Aug 5, 2021
  27. Munkybooty referenced this in commit 6a1747bb5e on Aug 5, 2021
  28. Munkybooty referenced this in commit 563ad654c4 on Aug 8, 2021
  29. Munkybooty referenced this in commit 7bbd22c68d on Aug 11, 2021
  30. Munkybooty referenced this in commit f089273ed0 on Aug 11, 2021
  31. Munkybooty referenced this in commit b92a8c2019 on Aug 13, 2021
  32. 5tefan referenced this in commit f9cd7ffa58 on Aug 13, 2021
  33. 5tefan referenced this in commit d09b13066c on Aug 14, 2021
  34. Munkybooty referenced this in commit 29ba5a37de on Aug 15, 2021
  35. Munkybooty referenced this in commit e928494a49 on Sep 8, 2021
  36. dzutto referenced this in commit 6f296bdb78 on Oct 15, 2021
  37. bitcoin locked this on Dec 16, 2021
  38. Munkybooty referenced this in commit f863deb724 on Dec 25, 2021
  39. Munkybooty referenced this in commit 675d49a99b on Dec 28, 2021
  40. Munkybooty referenced this in commit 19ff5107d9 on Dec 28, 2021
  41. Munkybooty referenced this in commit 42048e82a6 on Dec 28, 2021
  42. Munkybooty referenced this in commit 08241a7e29 on Dec 28, 2021
  43. Munkybooty referenced this in commit 1e0be5a93e on Jan 3, 2022
  44. Munkybooty referenced this in commit 1e592a8cf5 on Feb 1, 2022
  45. Munkybooty referenced this in commit a0678bdfb3 on Feb 16, 2022
  46. UdjinM6 referenced this in commit 5524c42b8c on Sep 13, 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-05-20 06:54 UTC