Skip to content
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

Spack cache change, bump versions #1926

Merged
merged 8 commits into from
Jul 28, 2022

Conversation

brenthuisman
Copy link
Contributor

@brenthuisman brenthuisman commented Jul 21, 2022

@brenthuisman brenthuisman marked this pull request as ready for review July 25, 2022 08:57
Copy link
Contributor

@thorstenhater thorstenhater left a comment

Choose a reason for hiding this comment

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

A few questions and a more general comment: this is actually mainly bumping versions
and thus mixes two concerns.

@@ -12,7 +12,7 @@ jobs:
fail-fast: false
steps:
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.6
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be 3.8 by now?

Suggestion beyond this PR: Figure out how to setup global defines in these YAML files. Maybe there's #include and we can set some values (like py-version) once.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Python min-ver is 3.7, so yes, that can be updated.

Macos wheels are 3.8 and up, because that's the first version that support 'fat wheels'. People who use 3.7 should still be able to build themselves.

@@ -23,8 +23,8 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.spack-cache
key: cache-${{ github.sha }}
restore-keys: cache-
key: ccache-${{ github.run_id }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the double c? There's a tool ccache, but this is not used here.
It might be the origin of the naming in the linked GH Actions issue, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interestingly it does matter. The commit where I removed it failed, adding back it passed. I can think of no other reason that that the action in fact uses ccache, because what else would you use :)

Copy link
Contributor

Choose a reason for hiding this comment

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

That's very obtuse. Please make a big, red flashing sign for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dug a little, and could not find any reason to believe it actually matters. Probably the cache was just cold after deleting a c. I changed it to sth that assumes no magic, and trust that it'll work. It'll take a run or two extra if you want to be absolutely sure.

Choose a reason for hiding this comment

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

There's no need for the double "c" :)

@brenthuisman brenthuisman changed the title Spack cache: see if trick works Spack cache change, bump versions Jul 27, 2022
Copy link
Contributor

@thorstenhater thorstenhater left a comment

Choose a reason for hiding this comment

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

👍

@brenthuisman brenthuisman merged commit b6fa8a2 into arbor-sim:master Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants