Skip to content

nightly: drop the recipes self-test unit that check-recipes already runs - #692

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-nightly-recipes-selftest-once
Oct 22, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-nightly-recipes-selftest-once

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

nightly가 레시피 self-test를 두 번 돌리던 중복을 없앴습니다.

What and why

Closes #683.

The nightly host unit list ran the recipes self-test twice. check-recipes already runs python3 tools/recipes.py --self-test, and HOST_EXTRA_UNITS added a second unit with the same command right after it. HOST_EXTRA_UNITS is now empty, so the self-test runs once per nightly. nightly_problems now reports an extra unit that runs recipes.py --self-test while check-recipes.sh is itself a unit, so the duplicate cannot come back. No other entry in HOST_EXTRA_UNITS existed.

Release notes: internal: the nightly no longer runs the recipes self-test a second time.

Code shape

  • No second copy. The extra unit repeated the command check-recipes runs; it is removed, and check-recipes stays the one owner.
  • Model code holds only architecture facts. No model code changes.
  • Dead code is gone. The recipes-self-test entry and its mention in the host doc text are gone.
  • No silent failure. A repeat of the self-test is now a named problem line in nightly_problems.
  • Comments state what is true now.
  • No relaxed gate.
  • cargo fmt and cargo clippy: no Rust changes (Python only).

Duplication found or removed (path:line), or "none": tools/recipes.py:6291, the recipes-self-test unit that repeated the self-test of blk_selftest in tools/check-recipes.sh.

What I ran

On an x86 Linux machine.

  • FAIL-first: on a commit that has the new test row but not the check, python3 tools/recipes.py --self-test reports self-test FAIL: host nightly: an extra unit that repeats the check-recipes self-test and self-test: FAIL (224 gate recipes, 1 failures).
  • On this head, python3 tools/recipes.py --self-test reports self-test: ok (224 gate recipes, 0 failures).

What I ran into

None of this blocks the PR. There is nothing else to report.

Hardware (if the change is for a machine)

Not a hardware change.

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

@github-actions github-actions Bot added the tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo label Oct 22, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: Nightly retains the recipes self-test through check-recipes.sh and removes only its duplicate unit.

Checked

Duplicates: 0 new functions, types or constants; the duplicate nightly entry is removed.
Complexity: one validation branch added to nightly_problems.
Silent failure: 0 new suppression sites; the diagnostic reaches the check command's nonzero exit and nightly's named error.
Tests: in-memory checks with stubbed dependencies passed for normal, duplicate, skipped-owner, absent-owner and unrelated-extra cases. Removing the guard at tools/recipes.py:6336 makes the added assertion at line 12298 fail. AST comparison confirms unit assembly and crate selection are unchanged.
Gates: no pins moved; check-recipes.sh:79 retains the self-test and propagates failure.
Escape catalog: no patterns matched.

Notes

No dryer or crapper results were supplied; the diff changes only Python. The full self-test suite was not run.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit 7868f27 into midagedev:main Oct 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nightly: recipes.py self-test is scheduled twice

1 participant