-
Notifications
You must be signed in to change notification settings - Fork 11
Enable publishing build artifacts in PR #180
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
Conversation
The artifacts are getting successfully published: https://dev.azure.com/dnceng-public/public/_build/results?buildId=870307&view=artifacts&pathAsName=false&type=publishedArtifacts But there might be bugs:
|
Bug investigation:
Seems to be expected. They are two different tasks, but the name happens to be the same.
Expected. That's how we configured them. Only the 3rd one is meant for packing everything (it passes /p:IsPackable=true, the others don't).
Seems that the Pack target gets always executed for all projects. |
@michaelgsharp @ViktorHofer do we need to skip uploading artifacts when the CI is green? Is that done automatically? Green
Red |
@ViktorHofer I suppose there cases where we do want to upload the bin folder? For example, when we are not packing? Here's an example of machinelearning, which only has bin and log folders: https://dev.azure.com/dnceng-public/public/_build/results?buildId=870926&view=artifacts&pathAsName=false&type=publishedArtifacts Edit: Oh I see, machinelearning needs to publish the bin folder because it gets used in subsequent jobs, like in runtime. We don't do that here. In that case, we have 3 different jobs in m-p: two are linux, one is windows. Only one of those 3 (a linux job) publishes packages. Do I need to disable publishing the bin folder for all 3? |
@ViktorHofer since we are building and packing in the same job, it makes sense that both the bin and packages folders get published. Arcade does not offer an option to choose what to copy so that can then be published. It's both bin and packages, or none: maintenance-packages/eng/common/templates/job/job.yml Lines 188 to 205 in 8272de8
My option would be to rewrite this. Do we really want that? |
@carlossanlop are you sure? I still see the bin folders under artifacts. We don't want or need those. The packages are enough. We don't upload the bin folders in other repos either. |
Oh, for a moment I thought the bin folder was shoing up in the root folder. My bad. What I did remove was the duplicate "Log" folder. |
Looks to me like the relevant portion of the yml templates is here:
|
I already tried re-writing that code: 97879c7 But I had to revert the commit as it was not working. But let me combine it with the latest changes I made, I must have missed something. |
I don't think that Arcade makes this possible by default. You could contribute to Arcade's template to allow only publishing packages or add a bit of YML as most other repos do to upload the packages folder. |
This isn't urgent and the PR needs additional changes coming from the other repo. I'll close this for the time being. |
Fixes #164