You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Combine the -subset and -subsetcategory switches into just -subset. This probably involves making subset names distinct which IMO is a good idea anyway as we should remove the sub repositories (another case of that is removing the helper scripts for coreclr, libraries, mono, installer). Specifying -subset libraries should be sufficient to build all default subsets for libraries. No need for the extra -subsetcategory verb.
Allow adding to the default set of subsets without the need to specify all of them, ie. -subset libs+libs.tests.
Allow removing from the default set of subsets without needing to specify all of them...
Moved proposal up
Proposal
You can specify multiple subsets. clr, mono, libs and installer imply the child subsets.
Something to consider while designing this is how are we going to identify in between different subsets when they clash. For example, if at some point in mono we could build only corelib, how will I be able to build mono corelib if I just say, build -subset corelib, that would be ambiguous if both mono and coreclr have a corelib subset, so we might need to append mono or coreclr to it. Something like, -subset coreclrruntime or coreclrcorelib, and if we want to build all coreclr, you would just say, subset coreclr.
Something to consider while designing this is how are we going to identify in between different subsets when they clash.
Having unique subset ids make most sense IMO. We shouldn't need to append the sub repo for all of them, ie only installers build installers (lol). What I'm doing in #33553 is naming the libraries test subset, which we haven't had before, libtests.
It would be nice to drop the need for the -subset prefix. I would like to be able to just type build libraries.
For the subset I think that makes sense, for other arguments I would like to keep the current syntax which is -<option-name> <option-value> primarily to stay consistent with other repositories. One thing to keep in mind here is that we already overload the "non-option" value (which can occur at any position) to build individual libraries: https://github.com/dotnet/runtime/blob/master/eng/build.ps1#L125-L138. We could change this to require -projects option which already is an Arcade standardized one. As not many libraries devs us that feature I would be ok with changing that. Of course there are other ways to solve this (ie positional, hardcoded checks, ...).
Based on #33821, the earliest we can get this in is start of May.
I agree, and that is why I brought that up. So how would we do it for the scenario I posted above, could you provide an example of what you're envisioning?
For the subset I think that makes sense, for other arguments I would like to keep the current syntax which is - primarily to stay consistent with other repositories.
So we have top-level project subsets (coreclr, libraries, installer, mono) and each has a set of their own subsets (sub-subsets?); for the latter the names only need to be unique within their subset, right? So, e.g., "native" in "coreclr" and "native" in "libraries" mean something different, and don't conflict.
Keeping something similar to what we have today, maybe you should be able to:
I liked coreclr build.cmd where I could type eg build -windowmscorlib -linuxmscorlib
Rather than worrying about subsets, why not just have a list of workloads? It could be a long list, if it's logically organized. Then just list off the ones you want eg build coreclr coreclrcorelib or build monoruntime monocorelib libraries ?
Rather than worrying about subsets, why not just have a list of workloads? It could be a long list, if it's logically organized. Then just list off the ones you want eg build coreclr coreclrcorelib or build monoruntime monocorelib libraries ?
Workloads are the same thing as subsets. What you are proposing is the same that I was thinking of.
Keeping something similar to what we have today, maybe you should be able to:
I would like to get rid of the sub-repository boundaries in the subsets/workloads.
Looks great to me overall, I'm just wondering whether some of the longer combined words (like coreclrnativecorelib) aren't a bit hard to read/write (even though I guess you're well trained for that with your German language background ;-)) - any chance you'd be willing to consider using some word separator like coreclr-native-corelib, coreclr.native.corelib or coreclr/native/corelib?
Updated the proposal as I wasn't able to make specifying multiple subsets space separated work on both powershell and bash. Instead you want to combine them with the + sign, i.e. clr.corelib+libs.
Activity
jkotas commentedon Apr 1, 2020
It would be nice to drop the need for the
-subsetprefix. I would like to be able to just typebuild libraries.safern commentedon Apr 1, 2020
Something to consider while designing this is how are we going to identify in between different subsets when they clash. For example, if at some point in mono we could build only corelib, how will I be able to build mono corelib if I just say,
build -subset corelib, that would be ambiguous if both mono and coreclr have a corelib subset, so we might need to append mono or coreclr to it. Something like, -subset coreclrruntime or coreclrcorelib, and if we want to build all coreclr, you would just say,subset coreclr.ViktorHofer commentedon Apr 1, 2020
Having unique subset ids make most sense IMO. We shouldn't need to append the sub repo for all of them, ie only installers build installers (lol). What I'm doing in #33553 is naming the libraries test subset, which we haven't had before,
libtests.For the subset I think that makes sense, for other arguments I would like to keep the current syntax which is
-<option-name> <option-value>primarily to stay consistent with other repositories. One thing to keep in mind here is that we already overload the "non-option" value (which can occur at any position) to build individual libraries: https://github.com/dotnet/runtime/blob/master/eng/build.ps1#L125-L138. We could change this to require-projectsoption which already is an Arcade standardized one. As not many libraries devs us that feature I would be ok with changing that. Of course there are other ways to solve this (ie positional, hardcoded checks, ...).Based on #33821, the earliest we can get this in is start of May.
safern commentedon Apr 1, 2020
I agree, and that is why I brought that up. So how would we do it for the scenario I posted above, could you provide an example of what you're envisioning?
+1 on those two statements.
BruceForstall commentedon Apr 1, 2020
Related: #33167
BruceForstall commentedon Apr 1, 2020
So we have top-level project subsets (coreclr, libraries, installer, mono) and each has a set of their own subsets (sub-subsets?); for the latter the names only need to be unique within their subset, right? So, e.g., "native" in "coreclr" and "native" in "libraries" mean something different, and don't conflict.
Keeping something similar to what we have today, maybe you should be able to:
where you specify "coreclr" subsets, but build whatever the "libraries" default is.
danmoseley commentedon Apr 1, 2020
I liked coreclr build.cmd where I could type eg
build -windowmscorlib -linuxmscorlibRather than worrying about subsets, why not just have a list of workloads? It could be a long list, if it's logically organized. Then just list off the ones you want eg
build coreclr coreclrcoreliborbuild monoruntime monocorelib libraries?ViktorHofer commentedon Apr 1, 2020
Workloads are the same thing as subsets. What you are proposing is the same that I was thinking of.
I would like to get rid of the sub-repository boundaries in the subsets/workloads.
That's a draft proposal:
Moved proposal into top post
trylek commentedon Apr 1, 2020
Looks great to me overall, I'm just wondering whether some of the longer combined words (like
coreclrnativecorelib) aren't a bit hard to read/write (even though I guess you're well trained for that with your German language background ;-)) - any chance you'd be willing to consider using some word separator likecoreclr-native-corelib,coreclr.native.coreliborcoreclr/native/corelib?ViktorHofer commentedon Apr 1, 2020
That's a great idea, let me update the proposal.
ViktorHofer commentedon Apr 1, 2020
Added an example above of how we would do an exclusion with the
-sign.safern commentedon Apr 1, 2020
Maybe that one should just be
coreclr-corelibnative?24 remaining items
ViktorHofer commentedon Apr 3, 2020
Updated the proposal in the top post. I'll start with the implementation today.
ViktorHofer commentedon Apr 7, 2020
Updated the proposal as I wasn't able to make specifying multiple subsets space separated work on both powershell and bash. Instead you want to combine them with the
+sign, i.e.clr.corelib+libs.Redesign the subset feature (#34663)
danmoseley commentedon Apr 8, 2020
Your spec at the top says that libs includes all its children. But you also have an example of specifying
libs+libs.testssafern commentedon Apr 8, 2020
libs.testsis not included. I think that is the only subset not included by default on libraries, we should update that.danmoseley commentedon Apr 8, 2020
Yeah, probably in
-subset helpthis should make it clearer:Would this help? https://github.com/danmosemsft/runtime/pull/new/subsethelp