Merge various restore tasks into one Sync target#17226
Conversation
|
Turns out CI does things differently then official builds (:(). Official builds call sync first but CI and dev builds do not so they will not restore the packages before the native build which needs the PGO data. So I'm going to still keep the optdata restore in the scripts on top of making it get restored during sync. That should enable both scenarios to work. |
There were various restore targets happening independently when they should all be combined so the sync step can be independent from the build step. This change merges them together under the Sync target. In particular this moves RestoreOptData and RestoreNETCorePlatforms to be part of the sync step instead of being individually ran. Pass BuildType to sync commands so optdata gets restored correctly
63fc2cd to
af6715e
Compare
|
test Ubuntu x64 Formatting |
|
@BruceForstall any idea what is going on in the formatting CI leg? |
|
I'm not sure how the formatting jobs internals work. @adiaaida can you advise? |
|
test Ubuntu x64 Formatting |
|
Formatting jobs rely on the build to generate a set of compiler command lines ( |
|
@RussKeldorph @adiaaida any pointers on where that happens? I cannot find the the script yet. It looks like it is only failing for Release build type for formatting but I cannot see anything yet that would explain why. |
|
Try running |
|
Also, |
We don't need the binclash logger for optdata so disable it by pass a single space (note empty string means default). The default value points at net46 which isn't what we want on linux.
|
OK I was finally able to repro in my ubuntu docker image and figured out what is wrong. I pushed a fix that should disable this logging setting being passed that isn't needed. |
|
OK passed the other failure not going to wait on the arm builds as they aren't reliable. I want to kick off an official build to watch. |
There were various restore targets happening independently
when they should all be combined so the sync step can be
independent from the build step. This change merges them
together under the Sync target.
In particular this moves RestoreOptData and RestoreNETCorePlatforms
to be part of the sync step instead of being individually ran.
Should fix https://github.com/dotnet/coreclr/issues/17176.
Follow-up on #17136.
cc @dpodder @wtgodbe