Skip to content

ci: Cache more stuff in the ci images: msan, iwyu, pip, sdks - #27028

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2301-ci-cache-apt-🚴
Mar 24, 2023

Hidden character warning

The head ref may contain hidden characters: "2301-ci-cache-apt-\ud83d\udeb4"
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2301-ci-cache-apt-🚴

Conversation

@maflcko

@maflcko maflcko commented Feb 2, 2023

Copy link
Copy Markdown
Member

Now that apt packages are cached in the ci images, it makes sense to think about caching all other packages as well.

@DrahtBot

DrahtBot commented Feb 2, 2023 •

Copy link
Copy Markdown
Contributor

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK TheCharlatan

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #27090 (ci: Use dedicated root path for ci by MarcoFalke)

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.

@DrahtBot DrahtBot changed the title ci: Cache more stuff in the ci images: msan, iwyu, pip, sdks ci: Cache more stuff in the ci images: msan, iwyu, pip, sdks Feb 2, 2023
@DrahtBot DrahtBot added the Tests label Feb 2, 2023
@maflcko
maflcko force-pushed the 2301-ci-cache-apt- branch 3 times, most recently from fa170bd to faa31ea Compare February 2, 2023 18:33
@maflcko
maflcko force-pushed the 2301-ci-cache-apt- branch 2 times, most recently from fa49264 to fabcf65 Compare February 15, 2023 16:00
Comment thread ci/test/01_base_install.sh Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these (doing) the same thing? I see they are used in the same context, immediately after one another. Why the new func? Maybe a comment to explain the difference?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they do the same thing, which is the same as bash -c "..." does. I think they should be removed eventually, but for now they aid reviewability (diff moved dimmed zebra)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comment

@maflcko
maflcko force-pushed the 2301-ci-cache-apt- branch 2 times, most recently from fabcf65 to facec97 Compare February 21, 2023 09:21
@maflcko
maflcko force-pushed the 2301-ci-cache-apt- branch from fa1ecd9 to fa42e27 Compare March 6, 2023 14:07
@maflcko

maflcko commented Mar 6, 2023

Copy link
Copy Markdown
Member Author

Rebased. For review I suggest --color-moved=dimmed-zebra.

@maflcko
maflcko force-pushed the 2301-ci-cache-apt- branch from fa42e27 to fa1a412 Compare March 7, 2023 13:33
@sedited

sedited commented Mar 10, 2023

Copy link
Copy Markdown
Contributor

On master I can successfully run MAKEJOBS="-j12" FILE_ENV="./ci/test/00_setup_env_native_tidy.sh" ./ci/test_run_all.sh. When I do this now (with all prior images removed) I get:

python3: can't open file '/home/drgrid/bitcoin/ci/scratch/iwyu/include-what-you-use/iwyu_tool.py': [Errno 2] No such file or directory
python3: can't open file '/home/drgrid/bitcoin/ci/scratch/iwyu/include-what-you-use/fix_includes.py': [Errno 2] No such file or directory

@maflcko
maflcko force-pushed the 2301-ci-cache-apt- branch from fa1a412 to 5555a33 Compare March 13, 2023 16:07
@maflcko

maflcko commented Mar 13, 2023

Copy link
Copy Markdown
Member Author

Thanks, fixed

@maflcko

maflcko commented Mar 20, 2023

Copy link
Copy Markdown
Member Author

Would be good to make progress here. This will allow Cirrus CI to use docker images with a cache and thus avoid all 3rd party network errors like (#27277 (comment)) , unless they happen inside of Cirrus CI itself, or GitHub.

@sedited

sedited commented Mar 20, 2023

Copy link
Copy Markdown
Contributor

Light code review ACK 5555a336019848d2e19e4533b3d2f34e438e6367

Confirmed that it indeed caches these additional packages. That said, I am not familiar with the build flow through the various scripts and cannot really comment if the code was moved to the correct place, or if conventions were followed.

Would be good to make progress here.

Yes, I need to get a better scheduling workflow for PR's requiring interaction.

@maflcko

maflcko commented Mar 20, 2023

Copy link
Copy Markdown
Member Author

Yes, I need to get a better scheduling workflow for PR's requiring interaction.

I was planning to put it up for hi-prio, but I keep missing the meeting 😅

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-ACK faa0839

@fanquake
fanquake merged commit e352f5a into bitcoin:master Mar 24, 2023
@maflcko
maflcko deleted the 2301-ci-cache-apt-🚴 branch March 24, 2023 12:47
hebasto added a commit to hebasto/bitcoin that referenced this pull request Aug 14, 2023
It has been cached in the Docker image since bitcoin#27028.
hebasto added a commit to hebasto/bitcoin that referenced this pull request Aug 14, 2023
It has been cached in the Docker image since bitcoin#27028.
fanquake added a commit to bitcoin-core/gui that referenced this pull request Aug 15, 2023
c2a87bd ci: Drop no longer needed `macos_sdk_cache` (Hennadii Stepanov)

Pull request description:

  It has been cached in the Docker image since bitcoin/bitcoin#27028.

ACKs for top commit:
  MarcoFalke:
    lgtm ACK c2a87bd

Tree-SHA512: fba888d132910f9600db0acccf633400e699f7d5ca802ef109a792546f60f3a04791c503b43d156c8debc3bd0bce2ad911f6209eabc47cd63fce7996a6ae3cfc
janus pushed a commit to BitgesellOfficial/bitgesell that referenced this pull request Sep 11, 2023
It has been cached in the Docker image since bitcoin/bitcoin#27028.
@bitcoin bitcoin locked and limited conversation to collaborators Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants