Repository navigation
ci(e2e): freeze new legacy Rust E2E tests #5909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
e220ff0
b1d2ff6
6157664
d3d4c8e
8a1a589
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -269,7 +269,7 @@ jobs: | |
| set -euo pipefail | ||
| # Retry dependency preparation, then build once. | ||
| nix build --no-link .#openshell-test-runner || nix build --no-link .#openshell-test-runner | ||
| for family in features drivers/podman; do | ||
| for family in features drivers/podman drivers/kubernetes; do | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So we still don't have
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or mayb ethe clarifying queston is: Why don't we also list the |
||
| nix run .#openshell-test-runner -- build \ | ||
| --family "$family" --out "artifacts/e2e-bundles/${family//\//-}" | ||
| done | ||
|
|
@@ -285,6 +285,12 @@ jobs: | |
| path: artifacts/e2e-bundles/drivers-podman | ||
| retention-days: 5 | ||
| if-no-files-found: error | ||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: openshell-e2e-bundle-drivers-kubernetes-x86_64-unknown-linux-musl | ||
| path: artifacts/e2e-bundles/drivers-kubernetes | ||
| retention-days: 5 | ||
| if-no-files-found: error | ||
|
|
||
| build-external-drivers: | ||
| name: ${{ matrix.binary }} (${{ matrix.triple }}) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #!/usr/bin/env bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| base=$(git merge-base "$1" "$2") | ||
| head=$2 | ||
|
|
||
| # Treat a move into the frozen tree like any other new file. | ||
| new_files=$(git diff --no-renames --name-only --diff-filter=A "$base" "$head" -- e2e/rust/tests/) | ||
|
|
||
| # Scan added lines only; hunk headers and context must not count. Match | ||
| # parameterized Tokio attributes too, including when their arguments wrap. | ||
| new_attributes=$(git diff --no-renames --no-ext-diff --no-textconv --no-color --no-prefix --text \ | ||
| --unified=0 "$base" "$head" -- e2e/rust/ | | ||
| awk ' | ||
| /^diff --git / { path = ""; in_hunk = 0 } | ||
| /^\+\+\+ / && !in_hunk { path = substr($0, 5) } | ||
| /^@@ / { in_hunk = 1 } | ||
| in_hunk && /^\+[[:space:]]*#[[:space:]]*\[[[:space:]]*(test[[:space:]]*\]|tokio[[:space:]]*::[[:space:]]*test[[:space:]]*(\]|\())/ { | ||
| print " " path ": " substr($0, 2) | ||
| } | ||
| ') | ||
|
|
||
| if [[ -z "$new_files" && -z "$new_attributes" ]]; then | ||
| exit 0 | ||
| fi | ||
|
|
||
| echo "::error title=Rust E2E Freeze::e2e/rust is frozen to new tests. See TESTING.md: Where a new test goes." >&2 | ||
| if [[ -n "$new_files" ]]; then | ||
| echo "New files under e2e/rust/tests:" >&2 | ||
| printf ' %s\n' "${new_files//$'\n'/$'\n '}" >&2 | ||
| fi | ||
| if [[ -n "$new_attributes" ]]; then | ||
| echo "New test attributes under e2e/rust:" >&2 | ||
| echo "$new_attributes" >&2 | ||
| fi | ||
| exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: My first thought when I see something like this is why we don't use "common" freeze tooling, but it's probably not worth it.