nightly: failed git status still publishes an unqualified source commit

Closed Beginner friendly
#382 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Burntgogi is already working on this.

Since Oct 17, 2026.

  • #399 by @Burntgogi — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
79/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
git, shell
Domain
tooling

Research direction

Start at the status assignment on line 128 of tools/nightly/run.sh and trace how its result affects the commit label and execution flow. Reproduce the case with NIGHTLY_NO_FETCH=1 and a readable HEAD but corrupt index; call finish 2 RED with the tree and Git exit code before publishing the source commit. Done when the run stops with that failure instead of publishing an unqualified commit or continuing into units.

Written by the indexing model from the issue text.

Description

review-bot

With NIGHTLY_NO_FETCH=1, a repository with a readable HEAD and a corrupt index passes the clone-directory check. git status exits 128 with no stdout, but the -n test discards that failure. The commit file and summary receive HEAD without +local, and execution continues into the units. Isolated execution of the cited production line with Git exit 128 confirms the unchanged label and continued execution. Check the status assignment and call finish 2 RED with the tree and Git exit code before publishing the source commit.

Evidence (at the base of #379):

Filed by Shingler, the review bot, while reviewing #379; the defect is outside that pull request.

Dominant language
Rust
Stars
21
Forks
4
Avg merge
2h 32m
Merged PRs (30d)
823

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from midagedev/bloomery

All issues in midagedev/bloomery

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.