Skip to content

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

Merged
merged 7 commits into from
Aug 24, 2021

Conversation

Manishearth
Copy link
Member

@Manishearth Manishearth commented Aug 21, 2021

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 with cargo 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.

@Manishearth Manishearth requested review from sffc and a team as code owners August 21, 2021 10:04
@codecov-commenter
Copy link

codecov-commenter commented Aug 21, 2021

Codecov Report

Merging #974 (c62040d) into main (9b41685) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

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

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b41685...c62040d. Read the comment docs.

@coveralls
Copy link

coveralls commented Aug 21, 2021

Pull Request Test Coverage Report for Build e4fe14c9c5dc49f80d12001ada6132a4c348a68e-PR-974

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.048%

Totals Coverage Status
Change from base Build 9b41685af03e5cbc8ddd97348ae19719ace30753: 0.0%
Covered Lines: 9685
Relevant Lines: 12905

💛 - Coveralls

@Manishearth Manishearth requested a review from echeran August 21, 2021 15:27
- name: Install Diplomat
if: steps.diplomat-cache.outputs.cache-hit != 'true'
Copy link
Member

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)

Copy link
Member Author

Choose a reason for hiding this comment

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

path: |
~/.cargo/bin/twiggy
~/.cargo/bin/twiggy.exe
key: ${{ runner.os }}-${{ steps.twiggy-version.outputs.hash }}
Copy link
Member

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") ?

Copy link
Member Author

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

Copy link
Member Author

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

@Manishearth Manishearth requested a review from sffc August 24, 2021 18:09
Copy link
Member

@sffc sffc left a 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!

@Manishearth Manishearth merged commit b66b237 into unicode-org:main Aug 24, 2021
@Manishearth Manishearth deleted the diplomat-ci branch August 24, 2021 20:55
@Manishearth Manishearth mentioned this pull request Aug 24, 2021
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.

Cache twiggy and diplomat
4 participants