ci: Fix qemu issues #17767

pull maflcko wants to merge 5 commits into bitcoin:master from maflcko:1912-ciFixWrapQemu changing 7 files +53 −30
  1. maflcko commented at 9:46 PM on December 17, 2019: member

    Now that the ci system no longer propagates files from the docker container back to the host, the wrap-qemu script is broken.

    To fix it, every statement in the script needs to be executed in the docker (with DOCKER_EXEC). Instead of juggling with triple escape sequences like \\\", just move the script to a separate file and call it with DOCKER_EXEC.

    Also, fix a bunch of other bugs that prevent running the ci system in qemu

    See the ci/README.md on how to test. TLDR: Can be tested with (replace arm with s390x to run the s390x build):

    FILE_ENV="./ci/test/00_setup_env_arm.sh" MAKEJOBS="-j9" ./ci/test_run_all.sh
    
  2. fanquake added the label Tests on Dec 17, 2019
  3. maflcko force-pushed on Dec 18, 2019
  4. maflcko force-pushed on Dec 30, 2019
  5. maflcko force-pushed on Dec 30, 2019
  6. maflcko force-pushed on Dec 31, 2019
  7. maflcko force-pushed on Jan 3, 2020
  8. maflcko force-pushed on Jan 3, 2020
  9. ci: Move wrap-qemu into separate script fa5d709fb2
  10. ci: Fix QEMU_USER_CMD parse issues
    * Fix bash syntax by adding missing -
    
    * Disable QEMU_USER_CMD fallback when it is set
    
      Apparently bash can't distinguish an unset variable from a variable
      that is set to the empty string
    
    * Export the environment variable to the docker env, otherwise it
      couldn't be used there
    faba4672b6
  11. ci: Install needed gcc and qemu-user iff cross-compiling fabb946090
  12. ci: Use debian to avoid apt install 404 errors
    The default ubuntu mirror does not have s390x or armhf packages:
    
    Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
    Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
    Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Ign:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
    Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
    Get:6 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [19.2 kB]
    Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [6781 B]
    Ign:8 http://security.ubuntu.com/ubuntu bionic-security/universe armhf Packages
    Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [761 kB]
    Ign:10 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
    Ign:11 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
    Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
    Ign:13 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
    Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
    Ign:15 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages
    Ign:16 http://security.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
    Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [795 kB]
    Get:18 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
    Get:19 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
    Ign:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
    Ign:8 http://security.ubuntu.com/ubuntu bionic-security/universe armhf Packages
    Ign:15 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages
    Ign:16 http://security.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
    Ign:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
    Ign:8 http://security.ubuntu.com/ubuntu bionic-security/universe armhf Packages
    Ign:15 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages
    Ign:16 http://security.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
    Err:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
      404  Not Found [IP: 91.189.88.174 80]
    Ign:8 http://security.ubuntu.com/ubuntu bionic-security/universe armhf Packages
    Ign:15 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages
    Ign:16 http://security.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
    Ign:20 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
    Ign:10 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
    Ign:11 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
    Ign:13 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
    Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1057 kB]
    Ign:22 http://archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
    Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [10.5 kB]
    Ign:24 http://archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
    Ign:25 http://archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
    Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1322 kB]
    Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [32.7 kB]
    Ign:28 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
    Ign:29 http://archive.ubuntu.com/ubuntu bionic-backports/main armhf Packages
    Get:30 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4244 B]
    Ign:31 http://archive.ubuntu.com/ubuntu bionic-backports/universe armhf Packages
    Get:32 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2496 B]
    Ign:20 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
    Ign:10 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
    Ign:11 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
    Ign:13 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
    Ign:22 http://archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
    Ign:24 http://archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
    Ign:25 http://archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
    Ign:28 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
    Ign:29 http://archive.ubuntu.com/ubuntu bionic-backports/main armhf Packages
    Ign:31 http://archive.ubuntu.com/ubuntu bionic-backports/universe armhf Packages
    Ign:20 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
    Err:10 http://archive.ubuntu.com/ubuntu bionic/main armhf Packages
      404  Not Found [IP: 91.189.88.149 80]
    Ign:11 http://archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
    Ign:13 http://archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages
    Ign:22 http://archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
    Ign:24 http://archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
    Ign:25 http://archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
    Ign:28 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
    Ign:29 http://archive.ubuntu.com/ubuntu bionic-backports/main armhf Packages
    Ign:31 http://archive.ubuntu.com/ubuntu bionic-backports/universe armhf Packages
    Ign:20 http://archive.ubuntu.com/ubuntu bionic/universe armhf Packages
    Err:22 http://archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
      404  Not Found [IP: 91.189.88.149 80]
    Ign:24 http://archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
    Ign:25 http://archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
    Ign:28 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
    Err:29 http://archive.ubuntu.com/ubuntu bionic-backports/main armhf Packages
      404  Not Found [IP: 91.189.88.149 80]
    Ign:31 http://archive.ubuntu.com/ubuntu bionic-backports/universe armhf Packages
    Fetched 17.4 MB in 2s (7076 kB/s)
    Reading package lists...
    E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/multiverse/binary-armhf/Packages  404  Not Found [IP: 91.189.88.174 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/main/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/restricted/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-armhf/Packages  404  Not Found [IP: 91.189.88.149 80]
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    fa3d77623e
  13. ci: Set LC_ALL=C when running in qemu-s390x
    This avoids std::runtime_error in the unit tests of the type
    "locale::facet::_S_create_c_locale name not valid"
    fa569e1a9c
  14. maflcko force-pushed on Jan 3, 2020
  15. DrahtBot commented at 8:29 AM on January 9, 2020: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #12134 (Build previous releases and run functional tests by Sjors)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  16. laanwj commented at 8:06 PM on January 22, 2020: member

    Code review ACK fa569e1a9c5ad1bf8bdf866235b21aff56112224

  17. laanwj referenced this in commit 4a07233076 on Jan 22, 2020
  18. laanwj merged this on Jan 22, 2020
  19. laanwj closed this on Jan 22, 2020

  20. maflcko deleted the branch on Jan 22, 2020
  21. sidhujag referenced this in commit 5e7c07aa2b on Jan 24, 2020
  22. sidhujag referenced this in commit 87bef95aff on Nov 10, 2020
  23. kwvg referenced this in commit f382b9abef on Nov 7, 2022
  24. knst referenced this in commit d05a33ef11 on May 12, 2023
  25. knst referenced this in commit 4c3af4ca2b on May 12, 2023
  26. knst referenced this in commit 88d730fb0b on May 12, 2023
  27. knst referenced this in commit 46df37728c on May 12, 2023
  28. knst referenced this in commit 6cb5b16bb4 on May 12, 2023
  29. knst referenced this in commit cda72b6e9b on May 12, 2023
  30. knst referenced this in commit aa07d46370 on May 18, 2023
  31. knst referenced this in commit c52b9be4cb on May 21, 2023
  32. PastaPastaPasta referenced this in commit c31cdcd3d7 on May 24, 2023
  33. PastaPastaPasta referenced this in commit 28469842d0 on May 24, 2023
  34. bitcoin locked this on Oct 23, 2023
Labels

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-24 09:16 UTC

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