-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foundry ci setup #14140
Foundry ci setup #14140
Conversation
9024e52
to
957a727
Compare
b754128
to
28a9592
Compare
5758c1f
to
75960e6
Compare
@@ -705,14 +774,8 @@ jobs: | |||
<<: *base_cimg_small |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be best if we could avoid having to install Python and pip every time and just have it as a part of the image. Maybe we should switch chk_pylint
, chk_proofs
and c_ext_benchmarks
to base_python_small
instead?
Though I guess we still won't avoid it completely - for Foundry we want rust image as a base. We could also leave it like this in this PR and refactor separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we could do the switch but probably in another PR as you suggested.
.circleci/config.yml
Outdated
echo $FOUNDRY_RELEASE_SHA > /tmp/workspace/foundry-release-sha | ||
- restore_cache: | ||
keys: | ||
- foundry-<< parameters.version >>-{{ checksum "/tmp/workspace/foundry-release-sha" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have the hash in an env var, you should be able to avoid storing it in a file and just use it directly according to save_cache
docs:
- foundry-<< parameters.version >>-{{ checksum "/tmp/workspace/foundry-release-sha" }} | |
- foundry-<< parameters.version >>-{{ .Environment.FOUNDRY_RELEASE_SHA }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum...I couldn't make it work in the way you suggested. If I understand correctly their docs, this syntax does not include environment variables that defined in our CI scripts, only the ones that are added in the context
of the project/organization CircleCI settings or that are already exported by CircleCI.
aa25c22
to
57fd316
Compare
a39db6a
to
e573e83
Compare
This PR extract the Foundry/python CI part from #13873 to simplify the review.
Depends on #14064