An unknown hides only the gates its job or trigger could run

Offen
#587 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, python
Bereich
ci-cd, testing

Rechercherichtung

Read core.py, then trace how runner.py uses known_only to propagate unknown results. Reproduce the labeller workflow case with the fixtures mentioned in the issue, and inspect tests/test_score.py:705. The rule needs agreement before implementation; done means unknowns stay with their jobs, hide only gates those jobs could run, and the labeller case leaves static-analysis judged on known results.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

question

Problem

One unreadable step makes every CI-dependent gate unknown, even when it's in an unrelated workflow (a PR labeller, an issue bot). #495 added a floor, so deleting the workflow no longer raises the score, but the gates still show ERROR: tests/test_score.py:705 asserts that a labeller workflow makes static-analysis ERROR.

Expected

  • A workflow triggered only by issues, pull_request_target: labeled, schedule or workflow_dispatch, with no build or test steps, can't hide tests-run.
  • An unknown stays with its job, and hides only the gates that job could run.

Decision needed

This is a design change to how unknowns spread (core.py, runner.py known_only). Agree the rule before building it.

Done when

The labeller fixture leaves static-analysis judged on what's known, and tests/test_score.py:705 changes accordingly.

Split from #478. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Vorherrschende Sprache
Python
Sterne
4
Forks
1
Ø Merge
6 Std. 31 Min.
Gemergte PRs (30 T.)
238

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cpp-best-practices/project_validator

Alle Issues in cpp-best-practices/project_validator

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.