ci: Stop and remove CI container #26850

pull maflcko wants to merge 2 commits into bitcoin:master from maflcko:2301-ci-container-stop-💺 changing 21 files +42 −36
  1. maflcko commented at 9:13 AM on January 9, 2023: member

    This should not affect CI runs that have DANGER_RUN_CI_ON_HOST=1 set, for example .cirrus.yml.

    However, when running CI locally with podman or docker, the container is stopped and thus deleted when all tests have passed. This feature was requested in #26843 (comment) and can help to reduce used disk space when running several CI tasks subsequently.

  2. DrahtBot commented at 9:13 AM on January 9, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK fanquake, hebasto

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

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #26766 (ci: Use clang-15 and IWYU v0.19 in "tidy" task by hebasto)

    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.

  3. DrahtBot renamed this:
    ci: Stop and remove CI container
    ci: Stop and remove CI container
    on Jan 9, 2023
  4. DrahtBot added the label Tests on Jan 9, 2023
  5. maflcko force-pushed on Jan 9, 2023
  6. fanquake commented at 9:57 AM on January 9, 2023: member

    Concept ACK

  7. maflcko force-pushed on Jan 9, 2023
  8. hebasto commented at 10:23 PM on January 9, 2023: member

    Concept ACK.

  9. maflcko force-pushed on Jan 11, 2023
  10. scripted-diff: ci: Rework docker naming
    DOCKER in names is confusingly used as synonym for "image", "container",
    and "ci". Fix the confusion by picking the term that fits the context.
    
    -BEGIN VERIFY SCRIPT-
     ren() { sed -i "s:$1:$2:g" $( git grep -l "$1" ) ; }
    
     ren DOCKER_PACKAGES CI_BASE_PACKAGES
     # This better reflects that they are the common base for all CI
     # containers.
    
     ren DOCKER_ID CI_CONTAINER_ID
     # This is according to the documentation of "--detach , -d: Run
     # container in background and print container ID".
    
     ren DOCKER_NAME_TAG CI_IMAGE_NAME_TAG
     # This avoids confusing with CONTAINER_NAME and clarifies that it is an
     # image.
    
     ren DOCKER_ADMIN CI_CONTAINER_CAP
     # This clarifies that it is a capability added to the container.
    
     ren DOCKER_CI_CMD_PREFIX CI_EXEC_CMD_PREFIX
     # This brings it in line with the CI_EXEC naming.
    
    -END VERIFY SCRIPT-
    fa5dccba32
  11. ci: Stop and remove CI container fa0584eb82
  12. maflcko force-pushed on Jan 11, 2023
  13. fanquake approved
  14. fanquake commented at 3:13 PM on January 12, 2023: member

    ACK fa0584eb829f2cb52675e17b5b09b4c648378d38

  15. hebasto approved
  16. hebasto commented at 4:32 PM on January 12, 2023: member

    ACK fa0584eb829f2cb52675e17b5b09b4c648378d38, tested on Ubuntu 22.04.

    My only concerns are about CI_ "namespace" for variables, which has being actively used by CI providers. No conflicts with Cirrus CI although.

  17. maflcko commented at 4:44 PM on January 12, 2023: member

    Happy to pick another name, if there are suggestions.

  18. hebasto commented at 4:49 PM on January 12, 2023: member

    Happy to pick another name, if there are suggestions.

    Maybe BITCOIN_...?

  19. maflcko commented at 7:43 PM on January 12, 2023: member

    Will leave as-is for now. Can be changed in a follow-up, because merge conflicts in this area are rare.

  20. maflcko merged this on Jan 12, 2023
  21. maflcko closed this on Jan 12, 2023

  22. maflcko deleted the branch on Jan 12, 2023
  23. sidhujag referenced this in commit 4393d92b72 on Jan 12, 2023
  24. bitcoin locked this on Jan 12, 2024

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

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