Question: How to debug using docker & CI shell script? #20488

issue kiminuo opened this issue on November 25, 2020
  1. kiminuo commented at 10:12 AM on November 25, 2020: contributor

    Hi,

    my PR #19245 fails on several platforms so I have attempted to run on my Ubuntu 20.04:

    FILE_ENV="./ci/test/00_setup_env_native_tsan.sh" ./ci/test_run_all.sh
    

    as per instructions in https://github.com/bitcoin/bitcoin/tree/master/ci.

    I can reproduce issue on CI which is great news. However, I would love to modify source code and re-run the FILE_ENV="./ci/test/00_setup_env_native_tsan.sh" ./ci/test_run_all.sh script or attach to docker to run a failing functional test again so that I can debug it easier.

    Does anybody have a workflow for this?

    Notes:

    • I've tried docker attach <container ID> but it's not possible to simply execute test/functional/wallet_hd.py as it fails in that docker instance because it is supposed to be run somehow differently (that's as much as I gather from studying ci/test_run_all.sh).
  2. kiminuo added the label Bug on Nov 25, 2020
  3. kiminuo renamed this:
    Question: How to debug using CI shell script?
    Question: How to debug using docker & CI shell script?
    on Nov 25, 2020
  4. MarcoFalke commented at 10:23 AM on November 25, 2020: member

    The CIs compile from a make dist tarball, so if you want to modify the code, you'll need to modify the one in ./ci/scratch/... inside the docker

  5. MarcoFalke added the label Questions and Help on Nov 25, 2020
  6. MarcoFalke added the label Tests on Nov 25, 2020
  7. MarcoFalke removed the label Bug on Nov 25, 2020
  8. promag commented at 10:27 AM on November 25, 2020: member

    Or you could write a Dockerfile with the desired environment and mount the source there.

  9. kiminuo commented at 3:13 PM on November 25, 2020: contributor

    I will tinker with it. Thank you for the help.

  10. kiminuo closed this on Nov 25, 2020

  11. DrahtBot locked this on Feb 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-26 06:14 UTC

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