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

Abierto
#10,420 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
ci-cd, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
251
Merge medio
10 h 10 min
PR fusionados (30 d)
822

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de moq-dev/moq

Todos los issues de moq-dev/moq

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.