Skip to content

resolve-nightly: discover SDK toolchain version by version probing - #45

Merged
GirishKadirisani merged 1 commit into
qualcomm:mainfrom
hasiburr-qti:hotfix-sdk-url
Sep 22, 2026
Merged

GirishKadirisani merged 1 commit into
qualcomm:mainfrom
hasiburr-qti:hotfix-sdk-url

Conversation

@hasiburr-qti

Copy link
Copy Markdown
Contributor

Description

The SDK toolchain filename contains a version suffix (e.g. 2.1) that can change over time. The previous approach used a hardcoded version (2.0) which was already stale, and a directory-listing fallback that failed because the artifact server (S3-backed) returns NoSuchKey for directory path requests rather than an index.

Replace with a version probe: iterate candidate versions from 3.9 down to 1.0, issuing a HEAD request for each, and use the first URL that returns HTTP 200. This works without any directory-listing support from the server and automatically picks up version bumps (e.g. 2.x -> 3.x) without requiring code changes.

The SDK toolchain filename contains a version suffix (e.g. 2.1) that
can change over time. The previous approach used a hardcoded version
(2.0) which was already stale, and a directory-listing fallback that
failed because the artifact server (S3-backed) returns NoSuchKey for
directory path requests rather than an index.

Replace with a version probe: iterate candidate versions from 3.9 down
to 1.0, issuing a HEAD request for each, and use the first URL that
returns HTTP 200. This works without any directory-listing support from
the server and automatically picks up version bumps (e.g. 2.x -> 3.x)
without requiring code changes.

Signed-off-by: Hasibur Rahman Mohammed <hasiburr@qti.qualcomm.com>
@GirishKadirisani
GirishKadirisani merged commit 0ab1d7f into qualcomm:main Sep 22, 2026
14 of 16 checks passed
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