-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
CI: use namespace.io #31064
+50
−45
Merged
CI: use namespace.io #31064
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
699e978
namespace
jnewb1 071cae6
mkdir
jnewb1 e67767c
fix
jnewb1 9919ec6
restore only
jnewb1 0d8c188
restore
jnewb1 b6459b4
v3
jnewb1 e6c0e3b
Merge branch 'master' into namespace
jnewb1 f34186b
disable provenance
jnewb1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 'automatically cache based on current runner' | ||
|
||
inputs: | ||
path: | ||
description: 'path to cache' | ||
required: true | ||
key: | ||
description: 'key' | ||
required: true | ||
restore-keys: | ||
description: 'restore-keys' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: setup namespace cache | ||
if: ${{ contains(runner.name, 'nsc') }} | ||
uses: namespacelabs/nscloud-cache-action@v1 | ||
with: | ||
path: ${{ inputs.path }} | ||
|
||
- name: setup github cache | ||
if: ${{ !contains(runner.name, 'nsc') }} | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: ${{ inputs.path }} | ||
key: ${{ inputs.key }} | ||
restore-keys: ${{ inputs.restore-keys }} | ||
|
||
# make the directory manually in case we didn't get a hit, so it doesn't fail on future steps | ||
- id: scons-cache-setup | ||
shell: bash | ||
run: mkdir -p ${{ inputs.path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why was this changed from auto only here?
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.
the pytest auto only returns 4 even though there are 8 cpus (perhaps something with hyperthreading or docker), im going to bring it up with the namespace people.
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.
-n auto
returns physical cores, maybe there's just 4 hyperthreaded cores. (using logical cores still improves performance in our tests, so maybe we should switch to-n logical
)