test: Add missing resolve() to valgrind.supp file for test shell #34668

pull maflcko wants to merge 2 commits into bitcoin:master from maflcko:2602-valgrind-supp changing 4 files +8 −8
  1. maflcko commented at 1:52 pm on February 25, 2026: member

    (see commit message for details)

    Can be tested via:

    0./bld-cmake/test/functional/feature_framework_testshell.py --valgrind
    

    Before:

    0bitcoind exited with status 1 during initialization. ==1735813== FATAL: can't open suppressions file "/b-c/b-c-2/bld-cmake/contrib/valgrind.supp"
    

    After: (passes)

    Also, move the suppression file to all the other suppression files.

  2. DrahtBot added the label Tests on Feb 25, 2026
  3. DrahtBot commented at 1:53 pm on February 25, 2026: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK frankomosh

    If your review is incorrectly listed, please copy-paste <!–meta-tag:bot-skip–> into the comment that the bot should ignore.

  4. maflcko force-pushed on Feb 25, 2026
  5. DrahtBot added the label CI failed on Feb 25, 2026
  6. DrahtBot removed the label CI failed on Feb 25, 2026
  7. frankomosh commented at 9:25 am on February 27, 2026: contributor
    tACK faaa133dc5bd2049ee4ab173d36202641b92764f. feature_framework_testshell.py --valgrind passes cleanly after this change, and no stale contrib/valgrind.supp references remain
  8. test: Add missing resolve() to valgrind.supp file
    Normally, when a symlinked test script is executed directly (e.g.,
    `./bld-cmake/test/functional/wallet_disable.py`), Python's default
    behavior is to resolve the symlink of the script itself, setting
    `sys.path[0]` to the directory containing the physical source file.
    Consequently, the test framework util.py is imported from the source
    tree, and `Path(__file__).parents[3]` correctly resolves to the source
    root.
    
    However, `feature_framework_testshell.py` is unique because it manually
    inserts `Path(__file__).parent` into `sys.path`. That refers to the
    build tree and when importing the test framework util.py, the
    `Path(__file__).parents[3]` will incorrectly point to the build
    directory instead of the source root.
    
    Use `.resolve()` to ensure the Valgrind suppressions file path is always
    calculated relative to the physical source file, regardless of how the
    framework was imported.
    fa9cf81d39
  9. test: Move valgrind.supp to the other sanitizer_suppressions files fab51e470e
  10. maflcko force-pushed on Feb 27, 2026
  11. maflcko commented at 11:29 am on February 27, 2026: member
    Trivial rebase after the moved file was touched. git range-diff bitcoin-core/master faaa133dc5 fab51e470e is empty.
  12. DrahtBot added the label CI failed on Feb 27, 2026
  13. DrahtBot removed the label CI failed on Feb 27, 2026
  14. frankomosh commented at 2:38 pm on February 27, 2026: contributor
    Re-ACK fab51e470e738944dfc832926b05019e8b70f8c6
  15. fanquake merged this on Feb 27, 2026
  16. fanquake closed this on Feb 27, 2026

  17. maflcko deleted the branch on Feb 27, 2026

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-03-16 03:13 UTC

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