-
Notifications
You must be signed in to change notification settings - Fork 154
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
Elastic Agent relies on artifacts-api for fetching the dependent artifacts when running the packaging #1273
Comments
I am in favour of fixing CI by switching to |
I just removed myself from the assignment as I only raised this issue to let you know what we have found/discussed, but I don't have much knowledge about the elastic agent build system and its internals. I'd say someone within the Elastic Agent team could be the best candidate to make the required changes in the build system if that's the path forward. |
Just to be clear the error happens locally when running |
Ah I had thought this was a CI issue. |
IIRC, there was a corner case with the existing bumps and the release manager, I don't know if that's still valid The bulid system in the elastic-agent uses the artifacts-api to grab the versions for some of the beats (metricbeat,filebeat,...), it uses the implementation done in the Line 911 in 13b6e78
Hence, if those artifacts are not accessible through the |
To help clarify the workflow (yes we need better documentation on this topic - cc @alsayasneh)
To understand the differences between these two workflows, let's take a concrete example with the upcoming 8.7 release:
|
The Elastic agent main job and local builds that use the EXTERNAL=true option are both currently broken because of this. https://fleet-ci.elastic.co/job/elastic-agent/job/elastic-agent-mbp/job/main/779/console
This is still affecting us, and is preventing us from having convenient local builds as long as the main snapshot build is failing. |
8.8.0-SNAPSHOT is now available via the Artifacts API https://artifacts-api.elastic.co/v1/versions/8.8.0-SNAPSHOT/builds/8.8.0-5b7507b4 But relying on (2) DRA buckets like here for beats 8.8.0-SNAPSHOT would be better. |
Synced with @pazone on this, and the current plan of action would be to create a path to use option (2) above, as an alternate path, instead of fully replacing the use of Artifacts API. Once we have that path available, we can decide whether we can completely drop the use of Artifacts API. cc @cmacknz any concerns? |
No concerns from me. |
It's almost done but there's a similar pull request: #2727 |
Now when the snapshot api fails to find a new version we will use |
Reopening as this is now blocking all of our builds. |
All agent builds are failing the package step: https://github.com/elastic/elastic-agent/commits/main The change here was never tested during the post feature freeze period for a minor release, now that we are in that situation there are a few bugs to sort out. I believe I already have the necessary fixes, will have a set of PRs shortly to close this again. |
What
As you have probably found, since yesterday the main branch is failing when running the packaging, since artifacts are not yet available for metricbeat, filebeat and so on.
This happens if no artifacts from the upstream projects have been pushed or the branch is not available in the artifacts-api.
This can be problematic since the merge commits are not moving forward in the CI but failing dramatically, hence the other stages in the CI workflow are not executed.
@mgreau pointed to the artifacts are available in https://artifacts-snapshot.elastic.co/beats/8.6.0-SNAPSHOT/downloads/beats/filebeat/filebeat-8.6.0-SNAPSHOT-linux-x86_64.tar.gz, hence there is no need to use the
artifacts-api
Questions
artifacts-snapshot.elastic.co
instead ofartifacts-api
?cc @narph as you can probably add ore insights
The text was updated successfully, but these errors were encountered: