-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
onBoard package validation #35846
onBoard package validation #35846
Conversation
We normally update the .NET SDK on Mondays but it's Just Fine:tm: to do it in this PR. Feel free to grab the latest. |
That is not necessarily true right? In theory they should be fine with a previous SDK as long as they add a PackageReference to Compatibility package as well as manually add the PackageDownload if they desire to do baseline testing right? |
I'm not sure what's up with the source build errors:
@dseefeld any ideas? |
It looks to me like this is hitting the same issue described in dotnet/arcade#7795. Looking at the binlog, |
Likely has to do with how the validation targets are sequenced + how arcade disables the project entrypoints. Arcade disables entrypoints by overriding them: However the targets still exist, so things sequenced before/after will still run. I think we can workaround this by conditioning validation not to run when things are excluded from source-build. Perhaps there is some secondary property we can use to do this? Looks like today these targets look at |
I opened a PR in Arcade to skip these targets when |
I'm not sure we need a change in Arcade yet. I'd like someone to observe the state of the project when ExcludeFromSourceBuild to see if there is something that we should use as a condition to determine when to run validation. It seems to me that there ought to be a crisp contract around project state (EG: a single property) that should indicate "I am building and producing a package". We should establish what that is, and if necessary make the changes to honor it, either in package validation or arcade. Once we have such a property we can use that in any Target that might hang it self off of Build, Pack, or Publish to turn itself off during source build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
/backport to release/6.0 |
Hi @Anipik. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
Started backporting to release/6.0: https://github.com/dotnet/aspnetcore/actions/runs/1254491550 |
Fixes #33981
yes adding a toolset dependency to dotnet/sdk would be the best way to get the most recent changes. This tool is now part of the sdk as well so you can get that by using the daily sdk bits as well
sadly there is no other way that to check the logs to verify. We talked about adding something but it the eventual decision there was no
The file contention issues faced earlier in #34122 got resolved by dotnet/sdk#20136
we should also port this change to release/6.0 branch
We will need an updated sdk for this one