Repository navigation
test(e2e): migrate network policy to Vitest [ANCHOR-6] #5226
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
Merged
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
2393538
test(e2e): migrate network policy to Vitest
jyaunches 651dfa5
ci(e2e): filter free-standing Vitest jobs
jyaunches a95d120
ci(e2e): install OpenShell for network policy Vitest
jyaunches 7f45a2e
test(e2e): retry transient network-policy onboard
jyaunches 9631c8c
chore: merge main into PR branch
jyaunches fc370fa
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches a84b91e
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches 5f5433c
test(e2e): tighten Slack policy assertion
jyaunches c1370d2
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches 8eb579d
fix(ci): map network policy scenario selector
jyaunches b099f25
test(ci): avoid source-shape workflow assertion
jyaunches 174c016
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches 17022ca
test(e2e): harden network policy validation
jyaunches 96dae66
fix(ci): validate free-standing scenarios
jyaunches 4293195
test(ci): harden vitest selector workflow
jyaunches 50e1320
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches bfe024f
style(test): format selector workflow coverage
jyaunches 63bba68
test(e2e): tighten network policy pypi probe
jyaunches 5789e01
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches 49c8661
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches eb12434
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches 5a1bc34
test(e2e): force NemoClaw gateway in network policy
jyaunches 64f4b54
fix(ci): mask rejected scenario selectors
jyaunches cbf7c9e
fix(ci): remove unused Docker auth preflight
jyaunches 9bfcea0
Merge remote-tracking branch 'origin/main' into e2e-migrate/test-netw…
jyaunches 716d7e4
fix(ci): mask matrix scenario validation
jyaunches 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
20 changes: 20 additions & 0 deletions
20
test/e2e-scenario/live/network-policy-transient-provider.ts
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,20 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import type { ShellProbeResult } from "../fixtures/shell-probe.ts"; | ||
|
|
||
| const TRANSIENT_PROVIDER_VALIDATION_RE = | ||
| /endpoint validation failed|failed to verify inference endpoint|Chat Completions API validation/i; | ||
| const TRANSIENT_PROVIDER_DETAIL_RE = | ||
| /timed? out|timeout|curl failed \(exit (7|28|35|52|56)\)|ETIMEDOUT|ECONNRESET|EAI_AGAIN|ENOTFOUND|failed to connect|error sending request|HTTP (429|502|503|504)|returned HTTP (429|502|503|504)|temporar/i; | ||
|
|
||
| function resultText(result: Pick<ShellProbeResult, "stdout" | "stderr">): string { | ||
| return [result.stdout, result.stderr].filter(Boolean).join("\n"); | ||
| } | ||
|
|
||
| export function isTransientProviderValidationFailure( | ||
| result: Pick<ShellProbeResult, "stdout" | "stderr">, | ||
| ): boolean { | ||
| const output = resultText(result); | ||
| return TRANSIENT_PROVIDER_VALIDATION_RE.test(output) && TRANSIENT_PROVIDER_DETAIL_RE.test(output); | ||
| } |
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.