Skip to content

Conversation

@theihor
Copy link
Contributor

@theihor theihor commented Oct 16, 2025

When checking out the linux source, look at REFERENCE_REPO_PATH and pass it as --reference to git clone.

This caching will only work for jobs running on our custom runners.

A couple of caveats:

  • As it turns out, the main BPF CI jobs cloned Linux source with actions/checkout, which does not have a way of passing --reference option. This is why in this change actions/checkout is replaced with custom git clone command. Without that, there is no point in adding the mirror to runner images.
  • s390x VMs don't have enough storage for this :( Fortunately, this isn't a big deal, because we cross-compile on x86_64 anyways.

It would be nice to consolidate Linux source tree cloning and drop inputs.download_sources flag, but that requires some thought. Maybe next time.

See also:

theihor added a commit to kernel-patches/bpf-rc that referenced this pull request Oct 16, 2025
theihor added a commit to kernel-patches/bpf-rc that referenced this pull request Oct 16, 2025
theihor added a commit to kernel-patches/bpf-rc that referenced this pull request Oct 16, 2025
theihor added a commit to kernel-patches/bpf-rc that referenced this pull request Oct 16, 2025
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
@theihor theihor merged commit ccb6094 into master Oct 16, 2025
59 checks passed
@theihor theihor deleted the linux-mirror branch October 16, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants