Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add caching of minimized BTFs #25283

Merged
merged 5 commits into from
May 6, 2024
Merged

add caching of minimized BTFs #25283

merged 5 commits into from
May 6, 2024

Conversation

brycekahle
Copy link
Member

@brycekahle brycekahle commented Apr 30, 2024

What does this PR do?

Caches minimized BTFs on S3. The bucket used has automatic cleanup after 7 days.

Motivation

Speed up pipelines, due to BTF minimization taking longer after the introduction of kernel module BTF data.

Additional Notes

The cache key is based on two things:

  1. The hash of hashes of the system-probe build outputs. This will change as folks make changes to eBPF code.
  2. The ETag from the processed btfhub-archive tarball in S3. This will change as new BTF data is introduced to btfhub-archive, and that data is processed in the build_processed_btfhub_archive job that runs nightly.

The cache is skipped if you set RUN_ALL_BUILDS or a release branch is being used. This is to prevent potential cache-related issues in released artifacts.

https://datadoghq.atlassian.net/browse/EBPF-495

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

@brycekahle brycekahle added changelog/no-changelog team/ebpf-platform qa/done QA done before merge and regressions are covered by tests labels Apr 30, 2024
@brycekahle brycekahle added this to the 7.55.0 milestone Apr 30, 2024
@brycekahle brycekahle requested review from a team as code owners April 30, 2024 22:40
@brycekahle
Copy link
Member Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented May 6, 2024

🚂 MergeQueue

Pull request added to the queue.

There are 10 builds ahead! (estimated merge in less than 5h)

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit 3580191 into main May 6, 2024
300 checks passed
@dd-mergequeue dd-mergequeue bot deleted the bryce.kahle/btf-min-cache branch May 6, 2024 17:10
gjulianm pushed a commit that referenced this pull request Dec 4, 2024
* add caching of minimized BTFs

* add --region

* fix brackets

* use abs path for download

* don't need brackets for command
gjulianm pushed a commit that referenced this pull request Dec 11, 2024
* add caching of minimized BTFs

* add --region

* fix brackets

* use abs path for download

* don't need brackets for command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog component/system-probe qa/done QA done before merge and regressions are covered by tests team/ebpf-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants