Skip to content

Keep the fetched sources between runs - #140

Merged
martin-s-a merged 1 commit into
mainfrom
cache-fetched-sources
Sep 7, 2026
Merged

martin-s-a merged 1 commit into
mainfrom
cache-fetched-sources

Conversation

@martin-s-a

Copy link
Copy Markdown
Contributor

Every job downloads pybind11 and rexlib's seven dependencies before it can compile anything. FETCHCONTENT_BASE_DIR already made that once a job rather than once a build; this makes it once a version, with the pair of composites rexlib has been using since this morning.

  • build_with_cmake, build_with_pip, generate_stubs, test_sdist and the wheels restore the sources and only write from main.
  • The Linux wheels get an entry of their own. They read the sources through /host, and the sub-build stamps record the path the sources were populated at, so an entry made at one path is not usable from the other.
  • test_sdist has no checkout to hash, so build_sdist hands it the key.

Measured on rexlib, where the same pair landed first: nine jobs restore and none downloads, and the repository sits at 36% of its cache quota. Three entries here, roughly 900 MiB.

🤖 Generated with Claude Code

Every job here downloads pybind11 and the seven rexlib fetches before it
can compile anything, and the base directory only ever survived the job
that made it. The pair of composites lands them once a version instead.

The wheels in a container get an entry of their own: they read the
sources through /host, and the sub-build stamps record the path the
sources were populated at, so an entry made at one path is not usable
from the other. The job that installs the source distribution has no
checkout to hash, so the job that builds it hands the key over.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@martin-s-a martin-s-a self-assigned this Sep 7, 2026
@martin-s-a martin-s-a added the enhancement New feature or request label Sep 7, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Comment thread .github/workflows/build-and-test.yml Dismissed
Comment thread .github/workflows/build-and-test.yml Dismissed
Comment thread .github/workflows/build-and-test.yml Dismissed
Comment thread .github/workflows/build-and-test.yml Dismissed
Comment thread .github/workflows/deploy.yml Dismissed
Comment thread .github/workflows/deploy.yml Dismissed
Comment thread .github/workflows/deploy.yml Dismissed
Comment thread .github/workflows/deploy.yml Dismissed
Comment thread .github/workflows/deploy.yml Dismissed
Comment thread .github/workflows/deploy.yml Dismissed
@martin-s-a martin-s-a added the github_actions Pull requests that update GitHub Actions code label Sep 7, 2026
@martin-s-a
martin-s-a merged commit 3aa7cd9 into main Sep 7, 2026
47 checks passed
@martin-s-a
martin-s-a deleted the cache-fetched-sources branch September 7, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants