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

Support downloading/publishing artifacts from Pipelines endpoint #188

Merged
merged 5 commits into from
Nov 25, 2019

Conversation

juliobbv
Copy link
Contributor

@juliobbv juliobbv commented Nov 7, 2019

This PR adds a minimal C# PipelinesHttpClient that only contains methods that the runner can use for managing artifacts. Then, this PR implements a mechanism to download/publish artifacts by using the Pipelines endpoint via the HTTP client.

Tested scenarios:

  • Feature flag off, runner uses Build2 endpoint
  • Feature flag on, runner uses Pipelines endpoint
  • Upgrade scenario, runner uses Build2 to publish artifact, Pipelines to download

@juliobbv juliobbv requested review from ericsciple, IAmHughes, yacaovsnc and thboop and removed request for IAmHughes November 7, 2019 23:25
@TingluoHuang
Copy link
Member

Should we take this chance to change artifact action to typescript?

@juliobbv
Copy link
Contributor Author

juliobbv commented Nov 8, 2019

Good question @TingluoHuang. We'll still need the changes from the PR for the v1 plugin version (for back-compat), as the Build2 endpoints of publish/download artifacts are scheduled to be removed some time soon.

cc @yacaovsnc

@yacaovsnc
Copy link
Contributor

Should we take this chance to change artifact action to typescript?

I wouldn't do this as then the user would have the choice of not upgrading to latest version of the action. In our case, we want to force upgrade user to use the runner so they use latest APIs.

@juliobbv
Copy link
Contributor Author

juliobbv commented Nov 18, 2019

Hey @thboop, @yacaovsnc, @ericsciple: now that the server-side Actions changes are now merged, can I get a final review of this PR when you have a chance?

cc @TingluoHuang

@juliobbv juliobbv requested a review from thboop November 19, 2019 17:08
@juliobbv juliobbv force-pushed the users/juliobbv/addActionsPipelinesWebApi branch from b8eaeef to a8434d6 Compare November 20, 2019 21:22
@juliobbv
Copy link
Contributor Author

I'm attaching the run logs that use v1 (Build2), and v2 (Pipelines) endpoints. They report the same things, so from the user's point of view, the change is transparent:

Run (v1).txt
Run (v2).txt

@juliobbv juliobbv force-pushed the users/juliobbv/addActionsPipelinesWebApi branch from a8434d6 to 841e069 Compare November 21, 2019 18:06
@juliobbv
Copy link
Contributor Author

juliobbv commented Nov 25, 2019

FYI -- github/pe-actions-runtime#229 tracks the effort to convert these Artifact actions to TypeScript

@juliobbv juliobbv merged commit de29a39 into master Nov 25, 2019
AdamOlech pushed a commit to antmicro/runner that referenced this pull request Jan 28, 2021
…ions#188)

* Support downloading/publishing artifacts from Pipelines endpoint
* Remove `Path` from everywhere
* Remove unused JobId argument
* PR feedback
* More PR feedback
@TingluoHuang TingluoHuang deleted the users/juliobbv/addActionsPipelinesWebApi branch September 1, 2023 20:51
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.

6 participants