Repository navigation
Add a “pedantic” CI build - #10144
Draft
thufschmitt wants to merge 6 commits into
Draft
thufschmitt wants to merge 6 commits into
thufschmitt wants to merge 6 commits into
Conversation
thufschmitt
force-pushed
the
pedantic-ci-build
branch
from
March 6, 2024 10:40
e803c6d to
36b9bef
Compare
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
added 6 commits
March 12, 2024 18:21
Currently only `-Werror`s, but can be strengthen in the future
Required by the various sanitizers
Try to enforce that we don't rely on any undefined behavior that might break from under us at any time
The constructor of `EvalSettings` was calling into the global `evalSettings` (itself of type `EvalSettings`). This means that `evalSettings`'s constructor was trying to access it while partially initialized. It seemed to accidentally work because probably the fields were initialized in the right order, but better fix it.
The argument to `std::condition_variable::wait_for` is apparently internally expressed in `ns`, so passing it an argument in `ms` results in it being multiplied by `1000` internally. As a consequence, passing `::max()` will overflow. Instead, pass in a reasonable value that is big-enough to not have any performance impact, but small enough to not overflow.
thufschmitt
force-pushed
the
pedantic-ci-build
branch
from
March 12, 2024 22:28
36b9bef to
14e3936
Compare
Member
|
idea: |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The default build of Nix is reasonably permissive.
This causes issues because warnings creep in (#10112), people building Nix in other configurations (like downstream packages) uncover issues that we skimmed over (#10095), and dangerous things happen without anyone noticing (e344f85).
Fix that by adding a CI job that will run the build with more warnings and safety checks enabled to uncover these issues as early as possible.
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.