Mozilla-Actions / sccache-action

sccache github action
Apache License 2.0
119 stars 24 forks source link

Output sccache stats as a notice and a summary table #113

Closed orf closed 5 months ago

orf commented 6 months ago

Checking the effectiveness of sccache when using this action is a bit annoying: the post action is minimized, and you need to go into each individual job.

This PR adds high-level cache hits/misses/errors as a notice (available at the top of the job summary), and a more detailed table as a job summary.

Screenshot 2024-05-12 at 12 59 18

Screenshot 2024-05-12 at 13 00 16

sylvestre commented 6 months ago

Great idea btw

orf commented 6 months ago

Thanks! I’ve integrated the branch with the project I was working on, you can see some builds with more realistic numbers there: https://github.com/orf/pyvector

It all seems to work pretty well.

sylvestre commented 6 months ago

could you please rebase it? thanks

sylvestre commented 6 months ago

also, where can I see it on pyvector ?

orf commented 6 months ago

Rebased! You can see it in the actions tab. For example: https://github.com/orf/pyvector/actions/runs/9051168104

sylvestre commented 6 months ago

nice :) Maybe add % too ? (should not be too hard math ;)

orf commented 6 months ago

Good idea, done! I’ve triggered a build here to see what it looks like: https://github.com/orf/pyvector/actions/runs/9053826212

I don’t have much more time to work on this though, so lemme know if there is anything else you think I should change or add

sylvestre commented 6 months ago

Just one request: Could you please add a the % again ? (in the right column) thanks image

orf commented 6 months ago

Done!

sylvestre commented 5 months ago

sorry, i forgot to merge it :)