-
Notifications
You must be signed in to change notification settings - Fork 2
Investigating low perf improvements #25
Comments
My current goal is to tweak the workflow until I see some hits in the statistics. That |
Incorrect Path'ing is my current target, debugging run in https://github.com/laurentsenta/builtin-actors/actions/runs/5877002270 |
github action related config we might want to use: https://github.com/mozilla/sccache/blob/main/docs/GHA.md (related: https://github.com/Mozilla-Actions/sccache-action#rust-code) |
https://github.com/mozilla/sccache#rust
I export sccache logs in https://github.com/laurentsenta/builtin-actors/actions/runs/5878478080 (sccache_log.txt) I'm seeing "CannotCache(crate-type, cdylib)":
|
Slow CI was brought up in filecoin-project/builtin-actors#1366
I'm running a few experiment, might have found a few bugs that would explain the low improvements found with caching:
Incorrect setup?
It seems like the env is not correctly setup. We set a custom cache path env in the action, but we don't export this env out of the action. Which means the custom path value is not set anymore when we leave the rust-sscache, and the cache is not used.
See the steps in this experiment:
https://github.com/laurentsenta/builtin-actors/actions/runs/5868643859/job/15911934941
Missing statistics
Looking at the statistics, it seems like the sscache is never used
https://github.com/laurentsenta/builtin-actors/actions/runs/5868643859/job/15911934941
This seems to indicate an issue with our setup.
Seems like only the download cache (which is using a different tools) is working.
Still not working
Currently still no hit on the cache according to the stats:
https://github.com/laurentsenta/builtin-actors/actions/runs/5876203928/job/15933892319
I am running more tests with debug enabled,
Lots of
Incorrect path'ing?
https://github.com/mozilla/sccache#known-caveats
That sounds silly but from what I read here caching doesn't depend on content but on pathes (how ironic), I'm running an experiment to check paths, IIRC github action are running in "random" folders.
More caveats?
https://github.com/mozilla/sccache#known-caveats
We disable incremental compilation,
Can we detect any other issue automatically? See the caveats:
The text was updated successfully, but these errors were encountered: