argumentcomputer / argumentcomputer/ci-workflows
lints workflow : feature or crate selection
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 0
- Fork
- 3
- Merge medio
- 59m
- PR unite (30g)
- 2
Descrizione
Documenting an issue encountered in https://github.com/lurk-lab/neptune/pull/255, which is arguably the fault of the crate organization:
- the gbench crate (which is non-publish!) runs with the default opencl feature, which does not compile on some CI machines:
https://github.com/lurk-lab/neptune/blob/main/gbench/Cargo.toml#L25
- the lint crate runs with `workspace` in the doc step of the job:
https://github.com/lurk-lab/neptune/actions/runs/7294189991/job/19878612122?pr=255
https://github.com/lurk-lab/ci-workflows/blob/96e567fa741858807c1de28bb4d8194291faecfb/.github/workflows/lints.yml#L49
Three ways to solve this:
- make the gbench feature non-default, just generate a runtime panic if neither of opencl nor cuda are active,
- allow excluding a crate from the doc test,
- allow excluding a feature (or running with default-deatures = false) from the doc test,
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia leggendo .github/workflows/lints.yml in ci-workflows, la definizione delle feature di gbench/Cargo.toml e la PR #255 indicata. Confronta il modo in cui il passaggio della documentazione invoca il crate di lint e determina quale crate o comportamento di selezione delle feature dovrebbe essere supportato. Il lavoro è completato quando il workflow può gestire i casi documentati relativi al crate e alla selezione delle feature senza fallire a causa di feature predefinite non supportate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions, rust
- Ambito
- build-system, ci-cd
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100