One three-valued logic for CI conditions, or a recorded reason to keep them apart

Offen
#610 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
cmake, github, gitlab, python

Rechercherichtung

Read ci/gitlab_rules.py:59-73, ci/github_expressions.py:187-203, and the condition functions under facts/conditions used by cmake/generator_expressions.py. Compare their three-valued semantics and decide whether one lattice can serve all three or document why they should remain separate. Done means recording and justifying that decision; the issue allows no code change.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Problem

Three pairs of three-valued condition functions exist:

  • _either / _both in ci/gitlab_rules.py:59-73 (settles run/required);
  • _either / _both in ci/github_expressions.py:187-203 (GitHub's truthy operands);
  • either / both in facts/conditions, used by cmake/generator_expressions.py.

Their semantics differ, so this is design-level repetition, not copy-paste.

Expected

A design pass: either one lattice serves all three, or the docs record why they stay apart. "No change, with a reason" is an acceptable outcome.

Not planned for the release unless decided otherwise.

Split from #543. 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.