Skip to content
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

Follow redirects from ADO to stitch content in external service #18987

Merged
merged 9 commits into from
Sep 21, 2023

Conversation

kboom
Copy link
Collaborator

@kboom kboom commented Sep 19, 2023

Task name: DownloadBuildArtifacts@V0

Description: Today, there are reasons why many organizations cannot migrate from DownloadBuildArtifacts@V0 to V1. The newer V1 version of the task stitches the downloaded content on the agent worker, while the older V0 does this in the hosted service. This is bad for performance. This PR modifies DownloadBuildArtifacts@V0 to request a redirect link from ADO instead of the streamed content which was already stitched and follow this redirect to download the stitched content from the external service. If this process fails, we fall back to the original behavior, which is to stream the content from TFS.

Although the vast majority of users won't need to do it, the users can disable this behavior by setting the retryRedirectDownloadCount input to -1, so we won't even attempt using a redirect.

Documentation changes required: N

Added unit tests: N

Attached related issue: N

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

@kboom kboom force-pushed the users/ggurgul/blobsitcher branch 2 times, most recently from 443366a to ed4f1e3 Compare September 21, 2023 06:34
Prefer redirect

Prefer redirect

bump version

enable for now

Prefer redirect

Correctly follows redirect

Correctly follows redirect

Separate

1

golden commit

refactor

Refactor

fix

Updates versions
@kboom kboom marked this pull request as ready for review September 21, 2023 06:43
@kboom kboom requested a review from a user September 21, 2023 06:43
@kboom kboom changed the title [WIP] Follow redirects from ADO to stitch content in external service Follow redirects from ADO to stitch content in external service Sep 21, 2023
@kboom kboom merged commit 6fbf923 into microsoft:master Sep 21, 2023
9 checks passed
@kboom kboom deleted the users/ggurgul/blobsitcher branch September 21, 2023 19:06
This pull request was closed.
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.

4 participants