Update main.yml build arguments to reduce flakiness with BuildChecks#462
Update main.yml build arguments to reduce flakiness with BuildChecks#462
Conversation
📝 WalkthroughWalkthroughThe GitHub Actions workflow was updated to modify the Changes
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Pull Request Overview
This PR updates the GitHub Actions build step to add MSBuild flags aimed at reducing flaky builds by enforcing deterministic outputs and disabling shared compilation, parallel builds, and node reuse.
- Added
/p:Deterministic=true,/p:UseSharedCompilation=false,/p:BuildInParallel=false, and disabled node reuse in the build command. - Kept the binary log output path unchanged.
Comments suppressed due to low confidence (1)
.github/workflows/main.yml:51
- Typo in MSBuild flag
nodeResuse. It should benodeReuseto properly disable node reuse.
run: dotnet build --no-restore --configuration Release /check /p:Deterministic=true /p:UseSharedCompilation=false /p:BuildInParallel=false /nodeResuse:false /bl:./artifacts/logs/release/build.release.binlog
|
If we're running into problems with BuildChecks, can we file bugs upstream? |
|
|
||
| - name: Build | ||
| run: dotnet build --no-restore --configuration Release /check /bl:./artifacts/logs/release/build.release.binlog | ||
| run: dotnet build --no-restore --configuration Release /check /p:Deterministic=true /p:UseSharedCompilation=false /p:BuildInParallel=false /nodeReuse:false /bl:./artifacts/logs/release/build.release.binlog |
There was a problem hiding this comment.
Expected an indentation at 8 instead of at 6.
|
Code Climate has analyzed commit 9560ec9 and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
@MattKotsenas sure. They produce a bunch of noise see recent run, especially with Nerdbank Git Version, so I'm considering turning them back off. I fixed a couple of errors they surfaced (see #437, #440, #442), but as of now their utility is minimal. I'm considering a separate workflow that just does the build check so the main PR flow isn't jammed up with flaky stuff (and we can dogfood changes there if need be without changing core CI) |
@coderabbitai open an issue for this |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain@rjmurillo I'll create an issue to track the BuildChecks problems you described. 🏁 Script executed: Length of output: 1292 Perfect! I've created issue #463 to track the BuildChecks problems you described: #463 The issue captures the excessive noise problem, particularly with Nerdbank Git Version, references the specific run that demonstrates the issue, and outlines potential solutions including creating a separate workflow or filing bugs upstream. ฅ(^・ω・^)ฅ |
|
Yeah, I've seen them be noisy too. Just want to make sure upstream is aware, as I'm not yet sure they're ready for adoption? |
@coderabbitai
Summary by CodeRabbit