Skip to content

feat(ci): use caching #23344

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

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

feat(ci): use caching #23344

wants to merge 10 commits into from

Conversation

thomasqueirozb
Copy link
Contributor

Summary

Vector configuration

How did you test this PR?

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

Notes

  • Please read our Vector contributor resources.
  • Do not hesitate to use @vectordotdev/vector to reach out to us regarding this PR.
  • Some CI checks run only after we manually approve them.
    • We recommend adding a pre-push hook, please see this template.
    • Alternatively, we recommend running the following locally before pushing to the remote branch:
      • cargo fmt --all
      • cargo clippy --workspace --all-targets -- -D warnings
      • cargo nextest run --workspace (alternatively, you can run cargo test --all)
  • After a review is requested, please avoid force pushes to help us review incrementally.
    • Feel free to push as many commits as you want. They will be squashed into one before merging.
    • For example, you can run git merge origin master and git push.
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run cargo vdev build licenses to regenerate the license inventory and commit the changes (if any). More details here.

@thomasqueirozb thomasqueirozb added domain: ci Anything related to Vector's CI environment no-changelog Changes in this PR do not need user-facing explanations in the release changelog labels Jul 7, 2025
@github-actions github-actions bot removed the domain: ci Anything related to Vector's CI environment label Jul 7, 2025
@github-actions github-actions bot added the domain: ci Anything related to Vector's CI environment label Jul 7, 2025
@pront pront requested a review from Copilot July 7, 2025 18:21
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces caching for Rust, Cargo, and npm tool installations in the CI to speed up integration and end-to-end test workflows.

  • Bump cargo-deb version in the environment preparation script
  • Add a new composite action to cache and bootstrap environment tools
  • Integrate the caching action into int_tests and e2e_tests jobs

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
scripts/environment/prepare.sh Updated cargo-deb install version from 2.0.0 to 2.0.2
.github/workflows/changes.yml Added cache job and inserted caching steps (uses: ./.github/actions/cache) into int_tests and e2e_tests
.github/actions/cache/action.yml Created a composite action to cache ~/.cargo, ~/.rustup, and ~/.npm, and run prepare.sh on cache miss

@datadog-vectordotdev
Copy link

datadog-vectordotdev bot commented Jul 7, 2025

Datadog Report

Branch report: ci-cache
Commit report: 4e250a7
Test service: vector

✅ 0 Failed, 7 Passed, 0 Skipped, 25.26s Total Time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: ci Anything related to Vector's CI environment no-changelog Changes in this PR do not need user-facing explanations in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants