Skip to content

fix(ci): avoid SIGPIPE in native test listing - #132

Merged
mergify[bot] merged 3 commits into
mainfrom
codex/inv-05-ci-scripts
Oct 3, 2026
Merged

mergify[bot] merged 3 commits into
mainfrom
codex/inv-05-ci-scripts

Conversation

@Cuarroc

@Cuarroc Cuarroc commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Der native Windows-CI-Testlauf meldet gültige Tests nicht mehr fälschlich als fehlend, wenn die Testliste groß ist.
Die Regression ist mit einer langen simulierten Testliste reproduziert und der kleinste Fix ist umgesetzt.
Die vollständige Linux-Prepush-Bahn ist grün; der Windows-Lauf bleibt für die Merge-Queue offen.

Report

Was geändert wurde

  • scripts/ci/native-tests.sh: Die Testnamensprüfung liest die gespeicherte Testliste per Here-String statt über printf | grep -q; dadurch kann pipefail kein SIGPIPE von printf mehr als fehlenden Test fehlinterpretieren.
  • scripts/test-native-tests.sh: Regressionstest mit gültigen nativen Tests und einer langen Ausgabe.

Belege

  • bash scripts/test-native-tests.sh — Exit 0 nach dem Fix; auf Merge-Base origin/main — Exit 1 mit derselben langen gültigen Testliste.
  • bash scripts/ci/gates.sh lane prepush — Exit 0 (1.656 Rust-Tests bestanden, 7 übersprungen).
  • Commit-Hooks/Secret-Scan — Exit 0.
  • git ls-remote origin codex/inv-05-ci-scripts — bestätigt 0df81c3.

NICHT ABGEDECKT

  • Die #[cfg(windows)]-Tests und Windows-Arme von Clippy wurden auf diesem Linux-Host nicht ausgeführt; der Windows-Lauf erfolgt in der Merge-Queue.

Review: erledigt (Stufe B, siehe Disposition).

Bestandsaufnahme

  • hoch, scripts/ci/native-tests.sh:84: printf ... | grep -q konnte unter pipefail bei langen gültigen Testlisten SIGPIPE als Testfehler melden; behoben in diesem Paket.
  • Keine weiteren bestätigten Fehler, Verbesserungen oder neuen Ideen im untersuchten Bereich nach Gegenprüfung gegen Selbsttests, offene PR-Dateien, STAND.md, docs/PLAN.md und KNOWN_ISSUES.md.

Noch offen

  • Nichts.

Review disposition

  • Reviewer: Claude (Sonnet 5.5), Stufe B, Kandidat 0df81c3; Delta-Commit 5c85b75.
  • mittel, scripts/ci/gates.sh:71 (vorher): scripts/test-native-tests.sh war in keiner Bahn eingehängt, der Regressionstest lief in CI nie. Angenommen, behoben in 5c85b75 (an selftest-gates angehängt; test-gates.sh, test-ci-shape.sh und prepush-Hook Exit 0).
  • Fix in native-tests.sh selbst geprüft: Here-String ist korrekt; Test rot auf origin/main-Skript (Exit 1), grün mit Fix (Exit 0). Kein weiterer Befund.

Test-First: scripts/test-native-tests.sh::native-tests handles long listings without SIGPIPE
@Cuarroc
Cuarroc marked this pull request as ready for review October 3, 2026 01:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T01:07:50.953054Z 0df81c3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0df81c39b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +45 to +46
if ! PATH="$tmp/bin:$PATH" OS=Windows_NT CARGO_TARGET_DIR="$tmp/target" \
bash "$ROOT/scripts/ci/native-tests.sh" > "$tmp/out" 2>&1; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Run the new regression test from the gate list

This regression test has no caller outside its own file: at the reviewed tree, scripts/ci/gates.sh does not invoke it directly or through any self-test group. Consequently, the normal Linux and release lanes can remain green if the SIGPIPE-prone pipeline is later restored, so the test only protects the fix when someone remembers to run it manually; register it in the appropriate self-test gate.

AGENTS.md reference: AGENTS.md:L131-L146

Useful? React with 👍 / 👎.

@mergify

mergify Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

The SIGPIPE regression test was wired into no gate lane and never ran in CI.

No-Test: gate wiring only; the wired test already exists and is proven red on the merge base

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Cuarroc

Cuarroc commented Oct 3, 2026

Copy link
Copy Markdown
Owner Author

@Mergifyio queue

@mergify mergify Bot added the queued label Oct 3, 2026
@mergify
mergify Bot merged commit 8a27b83 into main Oct 3, 2026
11 checks passed
@mergify
mergify Bot deleted the codex/inv-05-ci-scripts branch October 3, 2026 02:37
@mergify

mergify Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 8 minutes 35 seconds in the queue, including 22 minutes 17 seconds running CI.

Required conditions to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant