Handle disk-full more gracefully in functional tests #23099

issue laanwj opened this issue on September 26, 2021
  1. laanwj commented at 1:58 PM on September 26, 2021: member

    If you run the tests with too little disk space in /tmp partition, e.g.

    sudo mount -t tmpfs -o size=1M none /tmp
    test/functional/test_runner.py
    

    you get a huge log output with a lot of -- Logging error --, with the tests failing one by one, where it's not immediately clear why the tests are failing. It might be useful to exit immediately with a more specific message when even writing to the logs fails, and/or do an early check if the disk space need in the file system where the temporary files go can be estimated.

  2. laanwj added the label Tests on Sep 26, 2021
  3. katesalazar commented at 2:38 PM on September 26, 2021: contributor

    Beware some systems will auto start testing using /var/tmp/ if they find /tmp/ completely filled up.

  4. laanwj commented at 2:45 PM on September 26, 2021: member

    That's also an idea. Though, could leave specifying an alternative up to the user. The thing I'm most afraid of here is that someone will end up in a wild goose chase to find what broke the tests and it turns out to be something simple as being out of disk space in /tmp.

  5. katesalazar commented at 4:34 PM on September 26, 2021: contributor
  6. katesalazar commented at 9:59 PM on January 23, 2022: contributor

    If anyone's needing this to be done urgently and is willing to commit the necessary energy, I'll be happy to let it go.

  7. achow101 closed this on May 8, 2024

  8. achow101 referenced this in commit 8a45f572b9 on May 8, 2024
  9. bitcoin locked this on May 8, 2025

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-13 15:14 UTC

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