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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f3be82b9-b88d-4542-6969-c127cb0289cf |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D092:12764F:6B1359:970924:696F87CF |
| html-safe-nonce | 3f741026253792f5f5204c8aeb5d85419a4f696fda3705d2ddf0cd9de35bdd41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDkyOjEyNzY0Rjo2QjEzNTk6OTcwOTI0OjY5NkY4N0NGIiwidmlzaXRvcl9pZCI6IjcyNzk1MTEyMDUyODQxMjA1MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9171fa36b4c889242fb48d648a62c95f1b0fa169b6af4b14912efa189531a176 |
| hovercard-subject-tag | pull_request:3163871872 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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-cache |
| 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 full-width-p-0 |
| disable-turbo | false |
| 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