Skip to content

Conversation

@jozala
Copy link
Contributor

@jozala jozala commented Oct 27, 2025

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.

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.
@jozala jozala changed the title [NOT READY] Fix Windows packaging tests hang by inheriting IO [CI] Fix Windows packaging tests hang by inheriting IO Oct 28, 2025
@jozala jozala marked this pull request as ready for review October 28, 2025 09:19
@jozala jozala requested a review from a team as a code owner October 28, 2025 09:19
@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Oct 28, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@jozala jozala changed the title [CI] Fix Windows packaging tests hang by inheriting IO [CI] Workaround for Windows packaging tests hang on uploading artifacts Oct 28, 2025
@jozala
Copy link
Contributor Author

jozala commented Oct 28, 2025

Copy link
Contributor

@brianseeders brianseeders left a 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

@jozala jozala enabled auto-merge (squash) October 30, 2025 12:02
@jozala jozala merged commit c527bbf into elastic:main Oct 31, 2025
35 checks passed
jozala added a commit to jozala/elasticsearch that referenced this pull request Oct 31, 2025
…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)
@jozala
Copy link
Contributor Author

jozala commented Oct 31, 2025

💚 All backports created successfully

Status Branch Result
9.2
9.1
8.19

Questions ?

Please refer to the Backport tool documentation

jozala added a commit to jozala/elasticsearch that referenced this pull request Oct 31, 2025
…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)
jozala added a commit to jozala/elasticsearch that referenced this pull request Oct 31, 2025
…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)
elasticsearchmachine pushed a commit that referenced this pull request Oct 31, 2025
…ts (#137206) (#137438)

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)
elasticsearchmachine pushed a commit that referenced this pull request Oct 31, 2025
…ts (#137206) (#137439)

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v8.19.7 v9.1.7 v9.2.1 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants