A single build failure should (optionally?) not kill other running builds #878
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#878
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We've all been there. You're building your system config, your Chromium build that took five hours is almost done, and oops,
farts.conf
failed to validate, and you forgot to--keep-going
, and now the entire build tree is dead and so are five hours of your life. We should have a mode that's kind of like--keep-going
, except it stops scheduling new builds, but waits for existing ones to complete before failing, and we should have that be the default.Suggestions for name:
--finish-builds
--complete-builds
is probably too long--complete-builds-on-failure
Another option:
Enhancing
--keep-going
with=$MODE
(only=
form accepted) where--keep-going
being left unqualified resolves to the mode name equivalent to the current behaviour (i.e. exhaust every builds). So e.g.--keep-going=only-complete-builds
or some more concise mode name.If we turn this around then the flag could be
--fail-fast
, inspired by various CI systems.So
--fail-fast
and--fail-faster
? xpOne issue I'd have is
--fail-fast
seems like the current strategy. That is, it aborts ASAP all the builds on first failure.--fail-fast
would make sense with a (not that much) breaking change where the default is to finish current builds, and--fail-fast
becomes the flag to get the current behaviour.My non-joke proposal would be:
--fail-fast
becomes the oldkeep-going = false
behavior--keep-going
keeps the oldkeep-going = true
behaviorChanging the default also makes sense in a "principle of least astonishment" point of view, that builds that are not yet failed, and could be successful, be tried to be completed. After all, we know that they did not depend on the current failure. So I guess it's likely enough that they will not be affected by whatever change would fix the current failure.
Let’s do it.