Repository navigation
fix(ci): recover deploy tests from vcluster tunnel drops #14246
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
Merged
nv-anants
merged 11 commits into
ai-dynamo:main
from
xianlubird:bug/ci-vcluster-reconnect
Sep 14, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
56ecb8b
fix(ci): recover deploy tests from vcluster tunnel drops
xianlubird 6bc061a
fix(ci): narrow deploy cleanup recovery
xianlubird 0cc4990
fix(ci): retry deploy requests after tunnel timeout
xianlubird 433d666
fix(ci): recover DGDR cleanup from tunnel drops
xianlubird 8f16249
refactor(ci): consolidate DGDR API retries
xianlubird 1d6f00c
test(ci): remove duplicate DGDR retry coverage
xianlubird 9a6047a
fix(ci): centralize vcluster API retries
xianlubird fb6cf95
Merge origin/main into bug/ci-vcluster-reconnect
xianlubird ad0ff73
fix(ci): keep diagnostic tunnel errors from blocking DGDR cleanup
xianlubird a5d829a
fix(ci): retry DGDR setup across vcluster tunnel drops
xianlubird b12db4b
fix(ci): package and isolate vcluster shell regression tests
xianlubird File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| #!/usr/bin/env bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| set -euo pipefail | ||
| output_dir="$1" | ||
| mkdir -p "$output_dir" | ||
| for log_name in vcluster-port-forward.log vcluster-port-forward-watchdog.log; do | ||
| if [ -f "${GITHUB_WORKSPACE}/.${log_name}" ]; then | ||
| # Non-hidden names ensure upload-artifact includes the tunnel logs. | ||
| cp "${GITHUB_WORKSPACE}/.${log_name}" "${output_dir}/${log_name}" | ||
| fi | ||
| done | ||
| { | ||
| echo "captured_at=$(date -u +%FT%TZ)" | ||
| curl -skS --connect-timeout 1 --max-time 2 \ | ||
| -o /dev/null -w 'healthz_http_code=%{http_code}\n' \ | ||
| https://127.0.0.1:8443/healthz || echo "healthz_unreachable=true" | ||
| for pid_name in vcluster-port-forward.pid vcluster-port-forward-watchdog.pid; do | ||
| if [ -f "${GITHUB_WORKSPACE}/.${pid_name}" ]; then | ||
| pid=$(cat "${GITHUB_WORKSPACE}/.${pid_name}") | ||
| echo "${pid_name}=${pid}" | ||
| ps -p "$pid" -o pid=,ppid=,stat=,etime=,command= || true | ||
| else | ||
| echo "${pid_name}=missing" | ||
| fi | ||
| done | ||
| } > "${output_dir}/vcluster-port-forward-status.log" 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| #!/usr/bin/env bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Retry idempotent kubectl operations while the vCluster watchdog restores its | ||
| # tunnel. Use -f <file>, not stdin, so every attempt receives the same manifest. | ||
| retry_kubectl() ( | ||
| local error_log attempt status | ||
| error_log=$(mktemp) | ||
| trap 'rm -f "$error_log"' EXIT | ||
| for attempt in 1 2 3 4; do | ||
| if kubectl --request-timeout=30s "$@" 2>"$error_log"; then | ||
| cat "$error_log" >&2 | ||
| return 0 | ||
| else | ||
| status=$? | ||
| fi | ||
| cat "$error_log" >&2 | ||
| if (( attempt == 4 )) || ! grep -Eiq \ | ||
| 'Unable to connect to the server:.*(EOF|connection refused|connection reset|i/o timeout|TLS handshake timeout)|The connection to the server .* was refused|read: connection reset by peer' \ | ||
| "$error_log"; then | ||
| return "$status" | ||
| fi | ||
| echo "vCluster connection lost; retrying in 5s ($attempt/3)" >&2 | ||
| sleep 5 | ||
| done | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.