Skip to content

Use new HelixAPI /job/{job}/results endpoint#15230

Merged
simonrozsival merged 14 commits into
mainfrom
dev/simonrozsival/update-helix-apis
Dec 4, 2024
Merged

Use new HelixAPI /job/{job}/results endpoint#15230
simonrozsival merged 14 commits into
mainfrom
dev/simonrozsival/update-helix-apis

Conversation

@simonrozsival

Copy link
Copy Markdown
Member

Closes #15229

Instead of relying on the SAS token returned in the new job response JSON, this PR uses the new Helix API endpoint to fetch the results URI and a short-lived SAS token for read access to the results.

To double check:

@simonrozsival
simonrozsival force-pushed the dev/simonrozsival/update-helix-apis branch from 2ef9460 to 024f116 Compare November 8, 2024 14:32
chcosta
chcosta previously approved these changes Nov 20, 2024

@chcosta chcosta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to get a repro set up to verify these changes myself. Theoretically, the code looks good to me. I added one nit.

[HelperMethod]
public string MaybeCallToString(TypeReference reference)
{
if (reference != TypeReference.String)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I see this is only called in not null scenarios, but it still feels like a null check should occur in this method just in case someone else tries to consume this or someone tries to refactor the calling code and the check gets lost.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole code generator is broken currently, and its outputs don't match the HTTP client code exactly. I had to make several more changes to get it to produce reasonable code (e.g., the generator doesn't add licensing comments at the start of every file).

My understanding is that the API surface doesn't change that often anymore and making the generator more robust isn't a high priority at the moment. I only committed this change because it is necessary to make the new API surface work with the generated code and somebody might find it useful if the ever need to actually fix the code generator. I'd rather avoid making any further changes to the generator in this PR.

@simonrozsival
simonrozsival merged commit d90fc3c into main Dec 4, 2024
@simonrozsival
simonrozsival deleted the dev/simonrozsival/update-helix-apis branch December 4, 2024 16:31
simonrozsival added a commit that referenced this pull request Dec 13, 2024
jakobbotsch added a commit to jakobbotsch/arcade that referenced this pull request Apr 22, 2025
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.

Use new Helix API endpoint to fetch job results SAS token when downloading results

3 participants