Skip to content

ci: Cache stuff in volumes, not host folders - #27033

Merged
maflcko merged 2 commits into
bitcoin:masterfrom
maflcko:2302-ci-depends-vol-🏆
Feb 13, 2023

Hidden character warning

The head ref may contain hidden characters: "2302-ci-depends-vol-\ud83c\udfc6"
Merged

maflcko merged 2 commits into
bitcoin:masterfrom
maflcko:2302-ci-depends-vol-🏆

Conversation

@maflcko

@maflcko maflcko commented Feb 3, 2023 •

Copy link
Copy Markdown
Member

Storing cached stuff in host system folders may lead to unexpected issues when the ci-built stuff is used for a non-ci build or a ci task leaks into another ci task.

@DrahtBot

DrahtBot commented Feb 3, 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 john-moffett

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

@DrahtBot DrahtBot added the Tests label Feb 3, 2023
@maflcko
maflcko force-pushed the 2302-ci-depends-vol- branch from f78baca to fae8fc8 Compare February 3, 2023 10:38
@maflcko maflcko changed the title ci: Store depends in volume, not host folder ci: Cache stuff in volumes, not host folders Feb 8, 2023
@DrahtBot DrahtBot changed the title ci: Cache stuff in volumes, not host folders ci: Cache stuff in volumes, not host folders Feb 8, 2023
@maflcko

maflcko commented Feb 9, 2023

Copy link
Copy Markdown
Member Author

Sanity check that ccache still works on the one task that runs this code path: https://cirrus-ci.com/task/5496539091566592?logs=ci#L2401

@john-moffett

Copy link
Copy Markdown
Contributor

Approach ACK. Will test shortly.

@john-moffett john-moffett 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.

@john-moffett

Copy link
Copy Markdown
Contributor

ACK fa8e92c

@maflcko

maflcko commented Feb 10, 2023

Copy link
Copy Markdown
Member Author

Yes, thx, updated. I think there are some follow-ups possible:

  • Run the rsync -a /ro_base/ ... unconditionally, to a static folder name. Maybe /ci_scratch/?
  • Replace BASE_ROOT_DIR by either this folder or the host folder to avoid confusion.

Also,

Finally, running config.guess in

export HOST=${HOST:-$("$BASE_ROOT_DIR/depends/config.guess")}
may violate the statment that only the packages bash docker.io are required to run the CI system. Not sure how to fix this and if it is worth it.

@maflcko
maflcko merged commit 141115a into bitcoin:master Feb 13, 2023
@maflcko
maflcko deleted the 2302-ci-depends-vol-🏆 branch February 13, 2023 11:07
@RaghavSood RaghavSood mentioned this pull request Dec 7, 2023
2 of 13 tasks
@bitcoin bitcoin locked and limited conversation to collaborators Feb 13, 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.

3 participants