-
Notifications
You must be signed in to change notification settings - Fork 9
Enable deterministic builds #142
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
|
|
237c725 to
d92bbc2
Compare
- Enable deterministic builds for binaries/packages. - Centralise common settings in `Directory.Build.props`. - Refactor some MSBuild conditions to not need changing for .NET 9 and beyond.
Use .NET 8 Artifacts Output feature to put all build output in a central directory structure instead of in each project directory.
- Bump test NuGet packages to their latest versions and pin them. - Add GitHubActionsTestLogger.
- Remove "tests" and replace with "CI" with the intention to later add a job that can publish to NuGet.org. - Test on all three available operating systems in GitHub Actions. - Publish NuGet packages to GitHub Actions artifacts. - Add job to validate NuGet packages. - Attest artifacts. - Generate SBOM.
Update to the latest .NET 8 SDK to see if that fixes issue with missing source link information.
Fetch Git history.
Separate the runner name from the OS name.
Update MinVer to the latest stable version.
Include PDBs in NuGet packages.
Disable warning about stable packages depending on prerelease packages until all OpenTelemetry dependencies are stable.
Add a NuGet package README.
Point to `ci` not `unit-tests`.
aa0f41a to
270dccc
Compare
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.
Pull Request Overview
This PR enables deterministic builds and centralizes build configuration while updating dependencies and CI workflows. Key changes include centralized properties via Directory.Build.props, refactored csproj files for updated target frameworks and package references, and revamped GitHub Actions workflows for CI and package validation.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Grafana.OpenTelemetry.Tests.csproj | Updated target frameworks and package reference versions. |
| src/Grafana.OpenTelemetry/Grafana.OpenTelemetry.csproj | Updated package references and adjusted conditional packaging. |
| src/Grafana.OpenTelemetry.Base/Grafana.OpenTelemetry.Base.csproj | Updated package references with conditional grouping. |
| package-readme.md | Added package README documentation. |
| global.json | Updated .NET SDK version. |
| README.md | Updated CI badges to reflect new workflow file. |
| Directory.Build.props | Centralized common build settings. |
| .github/workflows/unit-tests.yml | Removed outdated unit-tests workflow. |
| .github/workflows/ci.yml | Introduced a new CI workflow with build, test, and validation steps. |
Changes
Directory.Build.props.Merge requirement checklist
CHANGELOG.mdfile updated for non-trivial changes