-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix tests & code coverage reporting #633
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
Conversation
📝 WalkthroughWalkthroughRemoves Deterministic and CI build flag settings from Directory.Build.props. Introduces Conditional ContinuousIntegrationBuild=true in Directory.Build.targets for Release builds when running on GitHub Actions. No public APIs changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Developer/CI
participant MSB as MSBuild
participant Props as Directory.Build.props
participant Targets as Directory.Build.targets
Dev->>MSB: Build (Configuration=Release)
MSB->>Props: Evaluate properties
note right of Props: No Deterministic<br/>No CI flag set here
MSB->>Targets: Evaluate targets/properties
alt GITHUB_ACTIONS == true AND Configuration == Release
Targets-->>MSB: Set ContinuousIntegrationBuild=true
else Not in Release CI
Targets-->>MSB: Do not set ContinuousIntegrationBuild
end
MSB-->>Dev: Build proceeds with resolved properties
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
Directory.Build.targets (1)
14-18: LGTM! Conditional logic correctly addresses the PR objective.The implementation properly restricts
ContinuousIntegrationBuild=trueto Release builds on GitHub Actions, which prevents filename normalization from breakingShouldMatchApprovedin Debug builds while maintaining proper path handling for CI releases.The condition currently targets GitHub Actions specifically. If you use other CI environments (e.g., Azure Pipelines, GitLab CI), you may want to extend the condition to include their environment variables as well.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
Directory.Build.props(0 hunks)Directory.Build.targets(1 hunks)
💤 Files with no reviewable changes (1)
- Directory.Build.props
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: additional-tests
- GitHub Check: build
Deterministicbecause it defaults totrueContinuousIntegrationBuildfromDebugbuilds because normalization of filenames preventedShouldMatchApprovedfrom properly reading approval filesSummary by CodeRabbit