Skip to content

Conversation

@MiYanni
Copy link
Member

@MiYanni MiYanni commented Apr 15, 2024

Summary

Currently, if you manually go and run a PR build in our PR pipeline, it will fail. Why? Because the information provided for signing won't function for Ubuntu and Darwin builds. The build is incorrectly setting PostBuildSign to false for these builds. This also applies to builds when release branches are merged. Those also fail for the same reason.

To fix this, I believe the intent of this logic was only supposed to apply for internal builds. Thus, I've added this to the condition. Now, PostBuildSign will only be false if it is both an internal build (not this pipeline) AND it is either a release branch or if the pipeline is ran manually. Lastly, I did some whitespace cleanup too.

Failure Examples

image

Test Build

@MiYanni MiYanni requested a review from a team April 15, 2024 21:56
@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Apr 15, 2024
@MiYanni MiYanni enabled auto-merge April 15, 2024 22:15
@MiYanni MiYanni merged commit 4588298 into main Apr 15, 2024
@MiYanni MiYanni deleted the feature/FixPRBuildManual branch April 15, 2024 23:22
@MiYanni
Copy link
Member Author

MiYanni commented Apr 18, 2024

/backport to release/8.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/8.0.1xx: https://github.com/dotnet/sdk/actions/runs/8743776195

@github-actions
Copy link
Contributor

@MiYanni backporting to release/8.0.1xx failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Clean up extraneous whitespace.
Using index info to reconstruct a base tree...
M	eng/build-pr.yml
M	eng/build.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/build.yml
CONFLICT (content): Merge conflict in eng/build.yml
Auto-merging eng/build-pr.yml
CONFLICT (content): Merge conflict in eng/build-pr.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Clean up extraneous whitespace.
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@github-actions
Copy link
Contributor

@MiYanni an error occurred while backporting to release/8.0.1xx, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants