ci: Start with clean env #27976

pull maflcko wants to merge 3 commits into bitcoin:master from maflcko:2306-ci-env- changing 5 files +11 −12
  1. maflcko commented at 1:59 PM on June 26, 2023: member

    Starting with a clean env should help to avoid non-determinism, such as the one fixed in #27739 (comment)

  2. DrahtBot commented at 1:59 PM on June 26, 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 dergoegge
    Concept ACK fanquake
    Approach ACK jonatack

    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:

    • #28116 (test: update tool_wallet coverage for unexpected writes to wallet by jonatack)
    • #27793 (ci: label docker images and prune dangling images selectively by stickies-v)

    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: Start with clean env
    ci: Start with clean env
    on Jun 26, 2023
  4. DrahtBot added the label Tests on Jun 26, 2023
  5. maflcko force-pushed on Jun 26, 2023
  6. fanquake commented at 2:00 PM on June 28, 2023: member

    Concept ACK

  7. maflcko force-pushed on Jul 11, 2023
  8. maflcko force-pushed on Jul 11, 2023
  9. maflcko force-pushed on Jul 12, 2023
  10. jonatack commented at 1:16 PM on July 21, 2023: member

    Approach ACK

  11. maflcko marked this as a draft on Jul 24, 2023
  12. maflcko commented at 10:03 AM on July 25, 2023: member

    Split out an easy-to-test bugfix: #28138 . So please review that one first.

  13. DrahtBot added the label Needs rebase on Jul 28, 2023
  14. maflcko force-pushed on Jul 28, 2023
  15. DrahtBot removed the label Needs rebase on Jul 28, 2023
  16. DrahtBot added the label Needs rebase on Aug 3, 2023
  17. maflcko force-pushed on Aug 4, 2023
  18. DrahtBot removed the label Needs rebase on Aug 4, 2023
  19. maflcko force-pushed on Aug 7, 2023
  20. maflcko force-pushed on Aug 9, 2023
  21. maflcko force-pushed on Aug 15, 2023
  22. DrahtBot added the label CI failed on Aug 15, 2023
  23. ci: Limit scope of some env vars
    No need to have a larger scope than needed.
    
    Can be reviewed with --color-moved=dimmed-zebra
    fa8c250c2f
  24. ci: Start with clean env
    This should help to avoid non-determinism.
    fa378bed56
  25. ci: Remove no longer applicable section
    This fails with:
    
    "Error: determining starting point for build: no FROM statement found"
    fa15f7e082
  26. maflcko force-pushed on Aug 23, 2023
  27. dergoegge commented at 2:05 PM on August 23, 2023: member

    Is this pull just a doc change? This doesn't look like it actually changes anything to start with a clean env.

  28. maflcko marked this as ready for review on Aug 23, 2023
  29. maflcko commented at 2:14 PM on August 23, 2023: member

    Is this pull just a doc change? This doesn't look like it actually changes anything to start with a clean env.

    Yes, it changes the doc to recommend env -i. On my system:

    $ env --help | grep 'empty env'
      -i, --ignore-environment  start with an empty environment
    
  30. maflcko commented at 2:17 PM on August 23, 2023: member

    Oh, was your question "Why didn't you modify ./ci/test_run_all.sh to clear the env?" If yes, the answer would be, to still allow the user to set any or all env vars that can be modified. For example, MAKEJOBS.

  31. dergoegge approved
  32. dergoegge commented at 2:17 PM on August 23, 2023: member

    utACK fa15f7e082396089f0945b53b60cf3ce952e9794

  33. DrahtBot removed the label CI failed on Aug 23, 2023
  34. fanquake merged this on Aug 24, 2023
  35. fanquake closed this on Aug 24, 2023

  36. maflcko deleted the branch on Aug 24, 2023
  37. Frank-GER referenced this in commit 0ad7e12592 on Sep 8, 2023
  38. bitcoin locked this on Aug 23, 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-19 06:13 UTC

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