Skip to content

Conversation

@shmsr
Copy link
Member

@shmsr shmsr commented Jan 20, 2026

Proposed commit message

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@shmsr shmsr requested a review from a team as a code owner January 20, 2026 11:17
@shmsr shmsr marked this pull request as draft January 20, 2026 11:17
This commit introduces several performance optimizations to reduce CI time:

1. Pre-built elastic-package binary (pipeline.yml + common.sh)
   - Downloads pre-built binary from GitHub releases instead of building from source
   - Falls back to source build if download fails
   - Saves ~2-3 minutes per job

2. Go module proxy (pipeline.yml)
   - Added GOPROXY=https://proxy.golang.org,direct
   - Faster dependency downloads when building from source

3. Docker BuildKit caching (pipeline.yml)
   - Enabled DOCKER_BUILDKIT=1 and BUILDKIT_INLINE_CACHE=1
   - Better layer caching for Docker builds

4. Conditional tool installation (common.sh)
   - Skip downloading tools if already available in PATH
   - Updated: yq, jq, mage, kind, kubectl, gh, docker-compose
   - Enables future use of custom CI images with pre-installed tools

Estimated savings: 3-5 minutes per job across hundreds of parallel jobs.
@shmsr shmsr force-pushed the optimize-bk-pipeline branch from c8f87cd to 8236607 Compare January 20, 2026 11:23
…ations to other pipelines

Changes:
- Extract elastic-package version from go.mod dynamically (was hardcoded incorrectly)
- Use platform-specific binary URL for elastic-package downloads (linux_amd64 -> platform_arch)
- Add GOPROXY to serverless and publish pipelines for faster Go module downloads
- Add Docker BuildKit optimizations to serverless pipeline
@elasticmachine
Copy link

elasticmachine commented Jan 20, 2026

@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

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