-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[CI] Workaround for Windows packaging tests hang on uploading artifacts #137206
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
Conversation
This is to check the theory that the process hangs because of the buffers fill up.
Calculate upload timeout based on file size. This change replaces the fixed 30-minute timeout with a calculated value, to avoid buildkite-agent on Windows hanging for 30 minutes for small files.
|
Pinging @elastic/es-delivery (Team:Delivery) |
|
Took 10 seconds instead of 30 minutes now: https://buildkite.com/elastic/elasticsearch-pull-request/builds/101027#019a29f8-08ac-4bcd-b167-1af92febb4c7/309-1781 |
...ternal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchBuildCompletePlugin.java
Outdated
Show resolved
Hide resolved
...ternal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchBuildCompletePlugin.java
Show resolved
Hide resolved
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.
Looks great, thank you for making it dynamic based on the file size
…ts (elastic#137206) Calculate upload timeout based on file size. This change replaces the fixed 30-minute timeout with a calculated value, to avoid buildkite-agent on Windows hanging for 30 minutes for small files. (cherry picked from commit c527bbf)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
…ts (elastic#137206) Calculate upload timeout based on file size. This change replaces the fixed 30-minute timeout with a calculated value, to avoid buildkite-agent on Windows hanging for 30 minutes for small files. (cherry picked from commit c527bbf)
…ts (elastic#137206) Calculate upload timeout based on file size. This change replaces the fixed 30-minute timeout with a calculated value, to avoid buildkite-agent on Windows hanging for 30 minutes for small files. (cherry picked from commit c527bbf)
It calculates the with timeout based on the size of the file with the minimum set to 10 seconds and max set to 30 minutes. This should be more than enough and it doesn't change the maximum as the wait timeout was previously fixed to 30 minutes.
To make it clear - the wait timeout is the maximum time the process can run. If the process finish earlier than the given wait timeout, then this will not wait. The only exception is on Windows where for unknown reason this process has been hanged until the wait timeout. This workaround should minimize the time we wait in CI on Windows for this process to finish.
There is an issue for the buildkite agent related to this issue: buildkite/agent#3044.