speedup: build the e2e test binaries once per run

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

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

評価

この issue はまだ評価されていません。

説明

area:build topic:testing

User Story

As a contributor waiting on Branch E2E, I want the e2e test binaries built once per run, so that about 14 jobs stop compiling the same Rust tests for 1.4–4.5 minutes each.

Description

Jobs that run directly on the runner (docker-e2e, podman-e2e, vm-e2e, kubernetes-e2e and friends) build the e2e/rust tests and some tests/suites/features tests with cargo test in each job. In run 44803367985, that compile took 1.4–4.5 min per job, in about 14 jobs. kubernetes-e2e compiles twice, for about 3.9–4.5 min.

Conformance already avoids this: build-conformance builds the program once and jobs download it.

Proposed change
  • Build the test binaries these jobs run once per run, for example as a nextest archive per target, in a job beside build-conformance.
  • Run them from the archive in each job, with no Rust toolchain build step.

This saves runner time now. It shortens the whole run only once kubernetes-e2e stops being near the end, which depends on the conformance changes under #5281. Many of these lanes will retire as tests move to testkit (#5297), so keep the change small.

Context

  • Parent: #5281. Related: #5297, #5765.
  • e2e/rust/e2e-docker.sh, e2e-podman.sh, e2e-vm.sh, e2e-kubernetes.sh (cargo test, cargo nextest run --profile e2e-kubernetes), .github/workflows/branch-e2e.yml.

Definition of Done

  • Jobs that run on the runner no longer compile Rust tests.
  • The tests and filters each job runs are unchanged.
  • Branch E2E passes, and the PR records before/after times for the affected jobs.

+++ Agent notes

  • Compile times from logs of run 44803367985: first "Compiling" to last "Finished test profile" line per job.
  • e2e-kubernetes.sh runs cargo test --locked --manifest-path tests/suites/features/Cargo.toml twice (lines ~108 and ~119) and then cargo nextest run --profile e2e-kubernetes.
  • arm64 jobs (docker-e2e runs on ubuntu-24.04-arm) need an aarch64 archive.

+++

主要言語
Rust
スター
21.5k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

NVIDIA/OpenShell のほかの issue

NVIDIA/OpenShell の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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