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

Open
#587 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, python
Domain
ci-cd, testing

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
4
Forks
1
Avg merge
6h 31m
Merged PRs (30d)
238

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 cpp-best-practices/project_validator

All issues in cpp-best-practices/project_validator

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.