Typst: tytanic (`tt run`), the standard package test runner, is unknown; typstyle via its action + git diff is not a formatting gate

Aperta Adatta ai principianti
#263 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
ci-cd, tooling

Direzione di ricerca

Inizia dal profilo Typst in ecosystems/typst.py alle righe 28-34, che elenca come comandi riconosciuti solo typst compile e typst c, e verifica come il fact tests-run usa questo elenco. Aggiungi tt run come comando di test riconosciuto, con un test che usa tests/a/test.typ e un passo del workflow run: tt run. È completato quando questo repro riporta tests-run PASS indicando tytanic. Controlla anche facts/formatting.py per il caso typstyle-action apply-then-diff, ma trattalo come una modifica separata.

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

Descrizione

cetz, fletcher and touying run tt run (compiles every tests/**/test.typ against references) → tests-run FAIL/WARN "no CI runs typst compile"; ecosystems/typst.py knows only typst compile/typst c. touying's typstyle job formats with typstyle-rs/typstyle-action and fails on git diff --exit-code, the apply-then-diff pattern facts/formatting.py accepts, but the action is unknown → code-formatting FAIL.

Evidence from the corpus audit

cetz-package/cetz, Jollywatt/typst-fletcher, touying-typ/touying / tests-run
  • kind: UNSUPPORTED (FALSE_NEGATIVE for cetz and fletcher)
  • actual: cetz FAIL: Typst: tests found in 171 file(s), but no CI configuration runs typst compile main.typ; fletcher WARN: tests found in 82 file(s), but no CI configuration runs typst compile main.typ; touying PASS only because it also compiles two regression documents directly.
  • expected: PASS: all three run the Typst test runner tytanic (tt run), which compiles every tests/**/test.typ and compares against references; it is the standard Typst package test tool (also in fletcher's pixi.toml), and the profile (ecosystems/typst.py:28-34) knows only typst compile/typst c.
  • evidence: fletcher .github/workflows/ci.yaml:24: crate: tytanic, :28: run: tt run; touying .github/workflows/test.yml:28: run: tt run; cetz justfile:19: tt run {{filter}} (via just test, see next finding); fletcher pixi.toml:12: test = "tt run".
  • repro: tests/a/test.typ + workflow step run: tt run; expect tests-run PASS naming tytanic.
  • confidence: high

Found by the regression-corpus audit (235 real repositories, one or more per ecosystem profile; corpus and expected results in corpus/). Evidence is quoted from the audited checkouts at the commits pinned in corpus/projects.toml; <checkouts>/<owner>__<repo> is such a checkout.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Lingua principale
Python
Stelle
4
Fork
1
Merge medio
10h 41m
PR unite (30g)
79

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.