Skip to content

[QNN EP] Fix archive-testdata CI flake by retrying on transient download errors - #717

Closed
huaychou wants to merge 1 commit into
mainfrom
dev/huaychou/fix-ci-flake
Closed

[QNN EP] Fix archive-testdata CI flake by retrying on transient download errors#717
huaychou wants to merge 1 commit into
mainfrom
dev/huaychou/fix-ci-flake

Conversation

@huaychou

Copy link
Copy Markdown
Collaborator

Description

  • Wrap the download in a retry loop with exponential backoff (default 3 attempts, 2s base), catching OSError, HTTPException (IncompleteRead is not an OSError), and SHA1 mismatches of a completed-but-truncated body.
  • Policy mirrors package_manager.py and is overridable via ORT_BUILD_DOWNLOAD_ATTEMPTS / ORT_BUILD_DOWNLOAD_BACKOFF_SECONDS env vars.

Motivation and Context

  • GitHub's archive CDN intermittently drops connections mid-body with http.client.IncompleteRead, causing a bare single-shot urlretrieve call to fail with no recovery.

…oad errors

GitHub's archive CDN intermittently drops connections mid-body with
http.client.IncompleteRead, causing a bare single-shot urlretrieve call
to fail with no recovery. Wrap the download in a retry loop with
exponential backoff (default 3 attempts, 2s base), catching OSError,
HTTPException (IncompleteRead is not an OSError), and SHA1 mismatches
of a completed-but-truncated body. Policy mirrors package_manager.py
and is overridable via ORT_BUILD_DOWNLOAD_ATTEMPTS /
ORT_BUILD_DOWNLOAD_BACKOFF_SECONDS env vars.
@kuanyul-qti

Copy link
Copy Markdown
Collaborator

Duplicated with #716

@huaychou

Copy link
Copy Markdown
Collaborator Author

Duplicated.

@huaychou huaychou closed this Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants