This repository was archived by the owner on Sep 17, 2024. It is now read-only.
fix: rename downloaded file using artifact name#1149
Merged
adam-stokes merged 1 commit intoelastic:masterfrom May 6, 2021
Merged
fix: rename downloaded file using artifact name#1149adam-stokes merged 1 commit intoelastic:masterfrom
adam-stokes merged 1 commit intoelastic:masterfrom
Conversation
Contributor
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
adam-stokes
approved these changes
May 6, 2021
mergify Bot
pushed a commit
that referenced
this pull request
May 6, 2021
(cherry picked from commit fd419f4)
mergify Bot
pushed a commit
that referenced
this pull request
May 6, 2021
(cherry picked from commit fd419f4)
adam-stokes
pushed a commit
that referenced
this pull request
May 6, 2021
adam-stokes
pushed a commit
that referenced
this pull request
May 6, 2021
mdelapenya
added a commit
to mdelapenya/e2e-testing
that referenced
this pull request
May 6, 2021
* master: chore: rename downloaded file (elastic#1149) fix: bump stale agent to 7.13-SNAPSHOT (elastic#1146)
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
It renames the Beats binary downloaded from a GCP bucket, using the artifact name (i.e. elastic-agent-8.0.0-SNAPSHOT-x86_64.rpm) that was calculated before that.
I added the following test, but removed it as it's very dependendant on the network and the availability of GCP:
If you agree, we can keep it. Please let me know your thoughts
Why is it important?
In #1136 we added support for Docker-copying files to the running containers, but it was incomplete, as it only handled the name of regular files (with regular I mean those files downloaded from the Elastic repository). But when downloading from GCP buckets, the files contains many HTTP params in the file name, causing the Docker copy AND the execution of commands in the container against that copied file to fail.
Therefore, any PR or merge commit from Beats repo will fail the build because of that.
Checklist
make noticein the proper directory)Author's Checklist
How to test this PR locally
Running a test using a binary for a commit:
Related issues
Backports
Needs to be backported to 7.x and 7.13.x