Skip to content

[9.6](backport #8313) dra: delete artifacts after successfully DRA published - #8351

Open
mergify[bot] wants to merge 1 commit into
9.6from
mergify/bp/9.6/pr-8313
Open

mergify[bot] wants to merge 1 commit into
9.6from
mergify/bp/9.6/pr-8313

Conversation

@mergify

@mergify mergify Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

What is the problem this PR solves?

Keep our storage cost under control.

How does this PR solve the problem?

Delete artifacts automatically after successfully running the DRA step.

How to test this PR locally

In the CI only, see https://buildkite.com/elastic/fleet-server-package-mbp/builds/4923

image

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool

Related issues


This is an automatic backport of pull request #8313 done by [Mergify](https://mergify.com).

@mergify
mergify Bot requested a review from a team as a code owner November 24, 2026 09:01
@mergify mergify Bot added the backport label Nov 24, 2026
@mergify
mergify Bot requested review from blakerouse and removed request for a team November 24, 2026 09:01
@mergify mergify Bot added the backport label Nov 24, 2026
Copilot AI balanced review requested due to automatic review settings November 24, 2026 09:01
@mergify mergify Bot assigned v1v Nov 24, 2026
@mergify

mergify Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Artifact cleanup is gated on step success rather than DRA publication eligibility, so successful non-publishing builds can lose their downloadable Buildkite artifacts.

1 open issue
What changed in this PR

Backports #8313 to 9.6, aiming to reduce storage costs by deleting Buildkite artifacts after DRA publication.

Changes:

  • Adds a wait barrier before artifact cleanup.
  • Adds a Kubernetes cleanup step using a Vault-provided API token and the artifact-deletion plugin, configured to continue on errors.
File Description
.buildkite/​pipeline.package.mbp.yml Adds the wait barrier and authenticated artifact-cleanup step.

Review effort: Balanced


- wait: ~

- label: ":wastebasket: Delete build artifacts"
@v1v
v1v enabled auto-merge (squash) November 24, 2026 09:08
@github-actions

Copy link
Copy Markdown
Contributor

Dependency review finished without posting an analysis comment.

If you expected a review, push a new commit to this pull request (or close and reopen it) to try again.

Workflow run: https://github.com/elastic/fleet-server/actions/runs/45361247437

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants