-
Notifications
You must be signed in to change notification settings - Fork 529
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
[8.x] ci: fix benchmarks cleanup (backport #14334) #14336
Conversation
Cherry-pick of 9499f3d has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
@reakaleek I think the original mistake on my end was to not backport this PR #14245 properly, that's why we now think all the conflicts when backporting CI changes. I reoppened it and will properly backport it now, so we don't need to deal with conflicts in CI. |
This pull request is now in conflicts. Could you fix it @mergify[bot]? 🙏
|
* ci: fix benchmarks cleanup * ok * test * uncomment again
109b721
to
2fa9368
Compare
@reakaleek I merged CI changes backport to 8.x, and rebased this backport so everything looks sane now. The merge conflict problem should no longer appear in the future. Sorry for the initial conflusion. |
Motivation/summary
The benchmarks workflow does not clean up all the resources it's creating.
In this workflow run you can see that the Spin up benchmark environment step creates 22 resources.
But the Teardown benchmark environment only deletes 9 resources.
The reason for it is the differently passed
TF_VAR_*
environment variables in both steps.This change fixes it and aligns the passed tf vars to both apply and destroy.
Checklist
For functional changes, consider:
How to test these changes
I was able to test this change in https://github.com/elastic/apm-server/actions/runs/11277362803/job/31363323001, where you can find 22 resources being destroyed.
Related issues
This is an automatic backport of pull request #14334 done by [Mergify](https://mergify.com).