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

オープン
#10,420 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
ci-cd, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
10時間 10分
マージ済み PR(30日)
822

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。