[dotnet] run format against slnx instead of looping csproj#17483
Conversation
Review Summary by Qodo(Agentic_describe updated until commit 09a78e4)Run dotnet format against slnx solution file instead of looping csproj files
WalkthroughsDescription• Replace per-project formatting loop with single slnx solution file • Significantly improves format command performance by half • Add solution file existence validation and error handling • Fix Windows script runfiles directory path resolution • Set AllowMissingPrunePackageData environment variable for Bazel SDK compatibility Diagramflowchart LR
A["Loop over individual csproj files"] -->|Replace with| B["Single slnx solution file"]
B -->|Performance gain| C["Format time cut in half"]
D["Add validation"] -->|Ensure| B
E["Set environment variable"] -->|Enable| B
File Changes1. dotnet/private/dotnet_format.bzl
|
Code Review by Qodo
1.
|
|
Persistent review updated to latest commit 71273a5 |
|
Persistent review updated to latest commit 837f368 |
|
Interesting, this works locally on my mac, even when I delete cache and things, adding diagnostics to debug issue on windows. |
|
There we go, it was erroring based on Pruned data on Windows, these settings fixed it. verified that time on CI is much less as well as local |
|
Persistent review updated to latest commit 09a78e4 |
* origin/trunk: (97 commits) [py] update python dependencies (SeleniumHQ#17490) [build] fix renovate reported issues with configuration [build] remove base-ref from renovate workflows it does not work for the use case I had for them [build] add renovate dependency workflow (SeleniumHQ#17504) [build] simplify commit-changes workflow (SeleniumHQ#17503) [build] clarify dependency pin and update tasks (SeleniumHQ#17463) [build] do not rerun or attempt to upload logs unless workflow failure is from the Bazel step [build] fix renovate ignore rules_python to v2 until upstream fixed [build] renovate ignore rules_python until upstream fixed [build] bump rules_closure version (SeleniumHQ#17500) [build] bump rules_jvm_external (SeleniumHQ#17501) [js] remove npm dependency by using bazel for everything (SeleniumHQ#17499) [build] bump ruby versions to latest patch releases (SeleniumHQ#17496) [dotnet] [build] Support deterministic build output (SeleniumHQ#17497) [build] remove renovate update requests pending work done in SeleniumHQ#17427 (SeleniumHQ#17498) [dotnet] [build] Fix remote linkage in SourceLink (SeleniumHQ#17495) [rust] update reqwest to 0.13 (SeleniumHQ#17488) [build] bump low-risk Bazel module dependencies (SeleniumHQ#17494) [dotnet] run format against slnx instead of looping csproj (SeleniumHQ#17483) [build] ignore renovate.json references in renovate recommendations ... # Conflicts: # MODULE.bazel # rust/BUILD.bazel
🔗 Related Issues
Implements #17457
💥 What does this PR do?
Uses slnx instead of looping over csproj. Format commit time is cut in half.
🔧 Implementation Notes
🤖 AI assistance