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

Use default package location #265

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Use default package location #265

merged 1 commit into from
Aug 28, 2023

Conversation

rzhao271
Copy link
Contributor

@rzhao271 rzhao271 commented Aug 25, 2023

In https://dev.azure.com/monacotools/Monaco/_build/results?buildId=229140&view=logs&j=9c6ceecd-5363-56f1-0e78-199c2ab175fa&t=dcca69f2-0e61-5643-f82d-945c312c3de6, we see the download task download the artifact to $(Build.SourcesDirectory) directly. It then tries to upload $(Build.SourcesDirectory)/packages/python/dist to ESRP later but can't find it. The default packageLocation value is $(Build.SourcesDirectory)/dist, which would have found the artifact.

A question I have is where does the download task come from? I don't see any download tasks defined under vscode-engineering/azure-pipelines/pypi-package, but I do see one defined under

- task: DownloadPipelineArtifact@2
. Is that template involved with the run, or is that just a coincidence?

CC @lszomoru

@rzhao271 rzhao271 self-assigned this Aug 25, 2023
@rzhao271 rzhao271 requested a review from karthiknadig August 25, 2023 17:50
@rzhao271 rzhao271 added this to the August 2023 milestone Aug 25, 2023
@rzhao271 rzhao271 added the no-changelog don't include this item in release notes. label Aug 25, 2023
@rzhao271 rzhao271 modified the milestones: August 2023, September 2023 Aug 28, 2023
@lszomoru
Copy link
Member

lszomoru commented Aug 28, 2023

@rzhao271, please bear with me 😁

The "Publish" stage of the pipeline templates (extension, npm package, pypi package) are using a deployment job. This is a special type of job, that is run against an "environment". We are using these as at the "environment" level we can set up various policies (ex: approval). One peculiarity of these deployment jobs is that they automatically get the download task injected so that all pipeline artefacts are automatically downloaded.

If you do not want to leverage the built-in functionality (maybe you do not want to download all artefacts) you can do the following: https://github.com/microsoft/vscode-engineering/blob/77d5746c62454a112d69aa41bf8c5953c421597d/azure-pipelines/npm-package/templates/jobs/publish.yml#L39-L40

Let me know if this helps. Also please feel free to ping me on Slack if you have any further questions or concerns. Thanks!

@rzhao271
Copy link
Contributor Author

Thanks for the clarification, Lad!
This PR should be good to go, then.

@karthiknadig karthiknadig merged commit 3bcc474 into main Aug 28, 2023
@karthiknadig karthiknadig deleted the rzhao271/default-loc branch August 28, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog don't include this item in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants