Title: Optimize CI cache usage by fanninpm · Pull Request #6707 · RustPython/RustPython · GitHub
Open Graph Title: Optimize CI cache usage by fanninpm · Pull Request #6707 · RustPython/RustPython
X Title: Optimize CI cache usage by fanninpm · Pull Request #6707 · RustPython/RustPython
Description: When I was working on #6410, I noticed that the CI job "snippets_cpython" was recompiling RustPython even though no Rust code was changed. I assumed the reason for the recompilation was because the "Check whats_left is not broken" step is recompiling RustPython with different cargo features than were defined earlier in the same job. This "whats_left" recompilation is what ultimately gets cached/restored by the rust-cache action. Then, when the "build rustpython" step is run, the difference in Cargo features necessitates a recompilation before the snippets and CPython tests are run. For each CI run in the "snippets_cpython" job, these two recompilations cost us about 4 minutes on the Ubuntu runner, about 5 minutes on the macOS runner, and about 7-8 minutes on the windows runner. This PR aims to eliminate the useless recompilations, making the CI run a little bit faster. Summary by CodeRabbit Chores Updated CI workflow to use OS-specific build configurations, ensuring proper feature compilation across different platforms. ✏️ Tip: You can customize this high-level summary in your review settings.
Open Graph Description: When I was working on #6410, I noticed that the CI job "snippets_cpython" was recompiling RustPython even though no Rust code was changed. I assumed the reason for the recompilation was b...
X Description: When I was working on #6410, I noticed that the CI job "snippets_cpython" was recompiling RustPython even though no Rust code was changed. I assumed the reason for the recompilati...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6707
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0e6079dc-7a10-8fe5-e145-0f028adf0977 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E3C0:2DCDD:65483D:8F8F55:696F8611 |
| html-safe-nonce | f03a2860bd6ac810d844c8059a0d6b5192a008ffd9007bbeda0b88064e4a2f3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0MwOjJEQ0REOjY1NDgzRDo4RjhGNTU6Njk2Rjg2MTEiLCJ2aXNpdG9yX2lkIjoiMzAwNDI3MDk4MTgzNzQ1NjkxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 722c960cc779c58bc83eec4892002ac6a2ac1668bcc37efb4bd0aff1a3094f28 |
| hovercard-subject-tag | pull_request:3163871872 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/6707/files |
| twitter:image | https://avatars.githubusercontent.com/u/27117322?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/27117322?s=400&v=4 |
| og:image:alt | When I was working on #6410, I noticed that the CI job "snippets_cpython" was recompiling RustPython even though no Rust code was changed. I assumed the reason for the recompilation was b... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c1b02b4e3a8edff2fe0bd71b0551654be66034591c7ab65aaaaf61a6096862d3 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a1073fcc34432ac33cec03885ff2d96920686de |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width