-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Add retries + improve logging for bundled package build task #125959
[Fleet] Add retries + improve logging for bundled package build task #125959
Conversation
Pinging @elastic/fleet (Team:Fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code around retry and logging some known error conditions looks good, so I'm 👍 it.
Just wanted to point a few things out. I don't know the context from where this build script runs, so perhaps these are ok, but:
- Using several
sync**
fs
functions which means they are event loop blocking - I saw
log.debug()
calls, which might not be logged to a CI's job. I don't know what level of verbosity it runs with, so keep that in mind or just change them tolog.info()
calls
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @kpollich |
Thanks, @paul-tavares - both good call outs.
Definitely valid - I think especially with the stable release of
Excellent point, and I just wanted to confirm the log level so I went to the jobs in the referenced ES promotion issue and pulled a sample of logs around the Fleet job:
Looks like we are getting |
💔 Backport failedThe pull request could not be backported due to the following error: How to fixRe-run the backport manually:
Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…lastic#125959) * Add retries + improve logging for bundled package build task * Update snapshots * Remove unused imports in bundle task * Address PR feedback * Replace throw w/ reject * Add explicit returns (cherry picked from commit 4c20ea7)
…lastic#125959) * Add retries + improve logging for bundled package build task * Update snapshots * Remove unused imports in bundle task * Address PR feedback * Replace throw w/ reject * Add explicit returns
Fixes #125952
Ref #125851
Makes a few changes to the
bundle_fleet_packages
build step to improve stability and lower the chances of transient network errors resulting in broken builds or corrupted Fleet packages.skipChecksumCheck
option todownloadToDisk
so we can leverage Kibana's existing retry and cleanup logic around downloads during builds without the headaches of sorting out checksums for package archives