speedup: run the full conformance suite once per driver, not in every variant job

未关闭
#5,861 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, github-actions, kubernetes, rust
领域
ci-cd, testing

调研方向

Start with .github/workflows/branch-e2e.yml and the e2e/rust/e2e-{docker,podman,vm,kubernetes}.sh lane scripts; compare each job’s conformance settings and current test coverage. Read the related issues #5281 and #5297 to understand planned lane changes. Done means each real environment has a documented full-suite lane, variant jobs run stated subsets, Branch E2E passes, and the PR records before and after timings.

由索引模型根据 Issue 内容生成。

描述

area:build topic:testing

User Story

As a contributor waiting on Branch E2E, I want each compute driver to run the full conformance suite once per run, so that jobs that test one variant don't each spend 6–17 minutes re-running the whole suite.

Description

Every Docker, Podman, VM and Kubernetes job that runs directly on the runner runs the full conformance suite before its own tests, and the tmachine rows run it again. In run 44803367985 (77 tests):

Driver Full passes Jobs
Kubernetes 7 kubernetes-e2e v1alpha1, v1beta1 and additional destination CA; workspace-managed; external-driver; tmachine k3s and k3s-ha
Docker 5 rust-docker, additional-ca, rust-docker-push; tmachine deb and deb-external-docker-driver
Podman 5 rust-podman-ci, additional-ca, external-driver; tmachine rootful and rootless
VM 3 rust-vm-managed, external-driver, additional-ca

The variant jobs spend most of their time in the copy of the suite. kubernetes-e2e takes 21–25 min; 16.7–17.5 min of it is conformance on kind, and its own 39 Rust tests take 45 s.

Proposed change
  • Choose one lane per driver, and per environment that really differs (for example k3s and k3s-ha), to run the full suite. Prefer the tmachine row where one exists.
  • Other jobs run only the tests that exercise their difference, through a filter on the conformance program. Examples: the CA tests for additional-ca, a lifecycle smoke for push, external-driver and the Agent Sandbox v1alpha1 job.
  • Write down which lane covers what, so moving tests in #5297 doesn't lose coverage.

Context

  • Parent: #5281. Related: #5297 (moving host lanes onto testkit), #5423, #5678 (show which environments run which suites).
  • Open question: is any variant job meant to prove the whole suite passes under its variant? If yes, it keeps the full suite.

Definition of Done

  • Each driver runs the full conformance suite on one lane per real environment difference, and other jobs run a stated subset.
  • The choice of lanes and subsets is documented next to the job definitions or in TESTING.md.
  • Branch E2E passes, and the PR records before/after times for the changed jobs.

+++ Agent notes

  • Jobs are defined in .github/workflows/branch-e2e.yml (docker-e2e, podman-e2e, vm-e2e, kubernetes-e2e and friends), with prebuilt-conformance: true/conformance: true passed to the setup-e2e-* actions.
  • Lane scripts that start the conformance program: e2e/rust/e2e-{docker,podman,vm,kubernetes}.sh (e.g. "==> Running conformance suites against the Kubernetes gateway").
  • Per-job times are from logs of run 44803367985 (job 136526209209 for v1alpha1).

+++

主要语言
Rust
星标
21.5k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。