Repository navigation
[need #294] status: settle the context a per-attribute restart set pending - #295
Open
Padraic-O-Mhuiris wants to merge 2 commits into
Open
Padraic-O-Mhuiris wants to merge 2 commits into
Padraic-O-Mhuiris wants to merge 2 commits into
Conversation
A complete rebuild of a commit posts success, "not part of this build", to every stored failure it doesn't cover. Those include the commit's failed nix-build gate and effects, which carry no attribute. A rebuild that fails again turns the required gate green until its own summary lands, and a failed effect stays green until it runs again. Resolve only the stored failures of attributes. Assisted-By: omp (claude-opus-5-5)
A per-attribute restart posts its attribute's context pending, and nothing settles it: - The pending post replaces the stored failure, and a rebuild flips only stored failures, so a rebuild that succeeds leaves the context pending. - The restart builds the context with the default `checks` prefix. In a repository whose nixbot.toml sets another `attribute`, it posts to a context no build reports under. A rebuild now settles the attribute contexts a restart set pending as it does stored failures. The restart flips the context its attribute was posted under, which carries the repository's prefix. An attribute without a failed or pending context gets no context of its own; the gate still goes pending. Assisted-By: omp (claude-opus-5-5)
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.
Fixes #292. Stacked on #294: both change the loop that settles a commit's stored statuses.
A per-attribute restart posts its attribute's context pending, and nothing settles it:
checksprefix. In a repository whose nixbot.toml sets anotherattribute, it posts to a context no build reports under.A rebuild now settles the attribute contexts a restart set pending as it does stored failures (
FailedCommitStatusesbecomesUnresolvedCommitStatuses). The restart flips the context itsattribute was posted under, which carries the repository's prefix. An attribute without a failed or pending context gets no context of its own; the gate still goes pending.
Tests: a restart then a successful rebuild settles the context, for the
checksand ahydraJobsprefix; the store test covers the query against Postgres. The whole suite passes.