-
Notifications
You must be signed in to change notification settings - Fork 213
Load Diplomat and twiggy from cache; update diplomat #974
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #974 +/- ##
=======================================
Coverage 75.00% 75.00%
=======================================
Files 216 216
Lines 12737 12737
=======================================
Hits 9554 9554
Misses 3183 3183 Continue to review full report at Codecov.
|
Pull Request Test Coverage Report for Build e4fe14c9c5dc49f80d12001ada6132a4c348a68e-PR-974
💛 - Coveralls |
- name: Install Diplomat | ||
if: steps.diplomat-cache.outputs.cache-hit != 'true' |
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.
Question: did you test this to make sure that != 'true'
is the correct condition? (I don't know if it's correct to quote the true
since it is a boolean type in the docs)
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.
.github/workflows/build-test.yml
Outdated
path: | | ||
~/.cargo/bin/twiggy | ||
~/.cargo/bin/twiggy.exe | ||
key: ${{ runner.os }}-${{ steps.twiggy-version.outputs.hash }} |
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.
Question (here and above): the example has the key take the form
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
Your key is only
${{ runner.os }}-${{ steps.twiggy-version.outputs.hash }}
Do you need the middle two tokens ("build" and "env.cache-name") ?
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.
nah, because the git hash is already uniquely identifying
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.
I included the tool name in the key name for better debuggability
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 nicer if we could use something like the rust-toolchain file to enforce versions of tools. But, this is a very good workaround!
Fixes #973
Pulls in diplomat update from #968
This has the added benefit of no longer needing to sync Diplomat versions across two files; the single source of truth is
icu_capi
's Cargo.toml. You can reinstall the correct version of Diplomat withcargo make diplomat-install
, easy peasy 😄Our builds are not bottlenecked on the FFI/WASM builds, but it's always good to have room to grow, and to get failing CI results earlier.