qa: Enable feature_init.py on Windows #32021

pull hodlinator wants to merge 1 commits into bitcoin:master from hodlinator:2025/03/windows_feature_init changing 1 files +18 −12
  1. hodlinator commented at 9:33 pm on March 8, 2025: contributor
    Windows has been skipped since feature_init.py was added in #23289. Possibly due to poorer support on older Python versions, or attempts to use CTRL_C_EVENT (which didn’t work in my testing either) instead of CTRL_BREAK_EVENT.
  2. qa: Enable feature_init.py on Windows 59c4930394
  3. DrahtBot commented at 9:33 pm on March 8, 2025: contributor

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

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32021.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK maflcko, BrandonOdiwuor, hebasto

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  4. DrahtBot added the label Tests on Mar 8, 2025
  5. hebasto added the label Windows on Mar 9, 2025
  6. maflcko commented at 1:59 pm on March 9, 2025: member
    lgtm ACK 59c4930394cafc939eb396224b3d60d01ba0ce37
  7. BrandonOdiwuor commented at 1:34 pm on March 11, 2025: contributor
    Code Review ACK 59c4930394cafc939eb396224b3d60d01ba0ce37
  8. in test/functional/feature_init.py:47 in 59c4930394
    52-            node.process.terminate()
    53+            if platform.system() == 'Windows':
    54+                # Don't call Python's terminate() since it calls
    55+                # TerminateProcess(), which unlike SIGTERM doesn't allow
    56+                # bitcoind to perform any shutdown logic.
    57+                os.kill(node.process.pid, signal.CTRL_BREAK_EVENT)
    


    hebasto commented at 10:13 pm on March 11, 2025:
    Can this approach be used for all platforms?

    fanquake commented at 3:45 am on March 12, 2025:
    No. CTRL_BREAK_EVENT only exists on Windows: https://docs.python.org/3/library/signal.html#signal.CTRL_BREAK_EVENT.
  9. hebasto approved
  10. hebasto commented at 11:25 am on March 12, 2025: member
    ACK 59c4930394cafc939eb396224b3d60d01ba0ce37, I have reviewed the code and it looks OK.
  11. hebasto merged this on Mar 12, 2025
  12. hebasto closed this on Mar 12, 2025

  13. TheCharlatan referenced this in commit 2cab7a09ea on Mar 16, 2025
  14. stickies-v referenced this in commit d760fd3dda on Mar 17, 2025
  15. stickies-v referenced this in commit cc83553352 on Mar 17, 2025
  16. stickies-v referenced this in commit 2614933f06 on Mar 17, 2025
  17. stickies-v referenced this in commit b70418c5fc on Mar 17, 2025
  18. stickies-v referenced this in commit 69f8a1fe50 on Mar 17, 2025
  19. hodlinator deleted the branch on Mar 24, 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: 2025-03-29 06:12 UTC

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