-
Notifications
You must be signed in to change notification settings - Fork 1.1k
skip making archives for inner loop #47993
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
base: main
Are you sure you want to change the base?
Conversation
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.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- src/Layout/redist/targets/Directory.Build.targets: Language not supported
@ViktorHofer looks like this change breaks the VMR - can you advise on the best way to skip this step for local builds? It's kinda ridiculous to have almost 4 minute cycle times for simple changes. |
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.
From what I see in a binlog (sdk official build: win-x64), generating the archives only takes 10-15s depending on the machine:
I'm not sure where you got those numbers from. Windows or Unix?
It's kinda ridiculous to have almost 4 minute cycle times for simple changes.
I assume you are referring to an incremental sdk build? That time can be reduced by declaring inputs & outputs on a bunch of targets in redist.csproj. I.e. the GenerateArchives
target would benefit from that.
@ViktorHofer Terminal Logger was my primary guide here - this is mid-build: I usually sit on this target for a few minutes. Here's the final time from a binlog:
Yeah, of course you're right here. But that's harder than just turning things off :) Might be necessary to not break the VMR build though :-/ Is there a way that normal VMR build could trigger this even if dev inner-loop doesn't? |
Thanks for sharing more details. I'm surprised to see such long zip times. Could Defender be interfering there? I don't think we should turn this target off, even in local builds. It produces the primary output of the sdk repo. I would rather invest in better Inputs and Outputs and investigation onto why the zip invocation takes that long on your machine. |
Are you on a devdrive there? I suspect that could be a big part of my problems. |
No. On a normal NTFS drive but the folder excluded from Defender scanning. |
Btw I filed #48070 to track adding incremental build support to redist.csproj. |
cc @joeloff
Before:
After: