-
Notifications
You must be signed in to change notification settings - Fork 352
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
Use new HelixAPI /job/{job}/results
endpoint
#15230
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8d1164f
Generate HelixApi client code
simonrozsival 1bd5e11
Fetch results SAS when obtaining results
simonrozsival bfef292
Fix generated code
simonrozsival ff9d5cf
Opt out of receiving the SAS token in new job response
simonrozsival 024f116
Do not consider job creation result response invalid if results RSAS …
simonrozsival 87f9fb2
Do not change the default value of returnSas for now as a workaround
simonrozsival 1a06fda
Merge branch 'main' into dev/simonrozsival/update-helix-apis
simonrozsival e23c056
Merge branch 'main' into dev/simonrozsival/update-helix-apis
missymessa 427b92f
Merge branch 'main' into dev/simonrozsival/update-helix-apis
missymessa b7d4711
Merge branch 'main' into dev/simonrozsival/update-helix-apis
missymessa 829d02b
Merge branch 'main' into dev/simonrozsival/update-helix-apis
missymessa 67b7508
Remove misleading warning
simonrozsival 1f3bc00
Merge branch 'main' into dev/simonrozsival/update-helix-apis
simonrozsival cdfac5a
Merge branch 'main' into dev/simonrozsival/update-helix-apis
simonrozsival File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Microsoft.DotNet.Helix/Client/CSharp/generated-code/Models/JobResultsUri.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Collections.Immutable; | ||
using Newtonsoft.Json; | ||
|
||
namespace Microsoft.DotNet.Helix.Client.Models | ||
{ | ||
public partial class JobResultsUri | ||
{ | ||
public JobResultsUri() | ||
{ | ||
} | ||
|
||
[JsonProperty("ResultsUri")] | ||
public string ResultsUri { get; set; } | ||
|
||
[JsonProperty("ResultsUriRSAS")] | ||
public string ResultsUriRSAS { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
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.
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.