Cross-target clippy (check rs_cross) is a quarter of each local check

Aperta
#10,420 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
ci-cd, testing

Direzione di ricerca

Start by reading sh/rs/cross-lint.sh and the just check and just ci definitions to see how rs_cross runs and where --all-targets is set. Compare the two options in the issue against the native nightly lanes and landing worker gate; done means choosing and implementing a scope change that reduces local check time while documenting where cross-target test errors will be caught.

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

Descrizione

quest

Problem

Over 7 hours of agent work on one 32-core host, just check and just ci in moq worktrees used 33 core-hours across 81 runs, a mean of about 25 CPU-minutes per run. The wall and CPU seconds per module summaries from 45 of those runs split it like this:

Phase Share of CPU Mean CPU-min per run
test rs 40% 12.2
check rs_cross 23% 6.6
check rs 17.5% 5.0
check js 6% 3.1
  • rs_cross's local narrowing to "selected crates that name a platform" saves little: it averaged 7.7 CPU-min under just check and 6.1 under just ci.
  • In sampled clippy-driver processes, test targets (--test) made up about 79% of cross-target clippy time (1.81 of 2.29 core-hours). Libs and bins made up the other 21%.

Options

  • Drop --all-targets from sh/rs/cross-lint.sh. macOS and Windows would lint libs, bins and examples, and leave test targets to the nightly native lanes. That cuts about three quarters of the phase, roughly 15% of every check.
  • Or run rs_cross only in the landing worker's gate, not in a local just check.

Either way, a platform-gated error in a test target would surface later: in the nightly native lanes with the first option, or in the queue with the second.

(Written by Claude Opus 5.5 with high effort)

Lingua principale
Rust
Stelle
1.6k
Fork
251
Merge medio
10h 10m
PR unite (30g)
822

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 moq-dev/moq

Tutte le issue di moq-dev/moq

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.