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

Aperta
#587 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, python
Ambito
ci-cd, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
4
Fork
1
Merge medio
6h 31m
PR unite (30g)
238

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cpp-best-practices/project_validator

Tutte le issue di cpp-best-practices/project_validator

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.