Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python

Stabilize NVIDIA NIM smoke coverage and local CI isolation (#1462)

Ali Khokhar60fe80b48d13
diff --git a/smoke/lib/config.py b/smoke/lib/config.py
index 6960ce2f..ea4eeaa5 100644
--- a/smoke/lib/config.py
+++ b/smoke/lib/config.py
@@ -96,7 +96,7 @@ PROVIDER_SMOKE_DEFAULT_MODELS: dict[str, str] = {
MISTRAL_REASONING_SMOKE_DEFAULT_MODEL = "mistral/mistral-medium-3-5"
NVIDIA_NIM_CLI_DEFAULT_MODELS: tuple[str, ...] = (
- "z-ai/glm-5.2",
+ "nvidia/nemotron-3.5-lightning-30b-a3b",
"moonshotai/kimi-k2.6",
"minimaxai/minimax-m2.7",
"minimaxai/minimax-m3",
diff --git a/smoke/product/test_nvidia_nim_cli_product_live.py b/smoke/product/test_nvidia_nim_cli_product_live.py
index 706e9122..d2be2389 100644
--- a/smoke/product/test_nvidia_nim_cli_product_live.py
+++ b/smoke/product/test_nvidia_nim_cli_product_live.py
@@ -36,6 +36,7 @@ def test_nvidia_nim_cli_matrix_e2e(smoke_config: SmokeConfig, tmp_path: Path) ->
"MODEL": provider_model.full_model,
"MESSAGING_PLATFORM": "none",
"REASONING_POLICY": "high",
+ "LOG_LEVEL": "DEBUG",
"LOG_RAW_API_PAYLOADS": "true",
"LOG_RAW_SSE_EVENTS": "true",
},
diff --git a/tests/contracts/test_smoke_config.py b/tests/contracts/test_smoke_config.py
index 51426841..7a455cda 100644
--- a/tests/contracts/test_smoke_config.py
+++ b/tests/contracts/test_smoke_config.py
@@ -978,7 +978,7 @@ def test_smoke_config_returns_nvidia_nim_cli_provider_models(monkeypatch) -> Non
models = config.nvidia_nim_cli_models()
assert models[0].provider == "nvidia_nim"
- assert models[0].full_model == "nvidia_nim/z-ai/glm-5.2"
+ assert models[0].full_model == f"nvidia_nim/{NVIDIA_NIM_CLI_DEFAULT_MODELS[0]}"
assert models[0].source == "nvidia_nim_cli_default"
diff --git a/tests/scripts/test_installers.py b/tests/scripts/test_installers.py
index 32df3ecc..27a48e56 100644
--- a/tests/scripts/test_installers.py
+++ b/tests/scripts/test_installers.py
@@ -1994,21 +1994,7 @@ def test_install_ps1_stops_without_success_on_each_failure(
def test_install_ps1_dry_run_never_executes_commands(
powershell_harness: PowerShellHarness,
) -> None:
- result = subprocess.run(
- [
- powershell_harness.powershell,
- "-NoProfile",
- "-ExecutionPolicy",
- "Bypass",
- "-File",
- str(_repo_root() / "scripts" / "install.ps1"),
- "-DryRun",
- ],
- check=False,
- capture_output=True,
- text=True,
- env=powershell_harness.env,
- )
+ result = powershell_harness.run("-DryRun")
assert result.returncode == 0, result.stderr
assert powershell_harness.calls() == []
diff --git a/tests/scripts/test_uninstallers.py b/tests/scripts/test_uninstallers.py
index 9515459b..0f0c7880 100644
--- a/tests/scripts/test_uninstallers.py
+++ b/tests/scripts/test_uninstallers.py
@@ -528,6 +528,19 @@ function Remove-Item {
}
Microsoft.PowerShell.Management\Remove-Item @PSBoundParameters
}
+function Get-Process {
+ [CmdletBinding()]
+ param([string[]] $Name)
+
+ if ([string]::IsNullOrWhiteSpace($env:FCC_RUNNING_COMMAND)) {
+ return
+ }
+ foreach ($requestedName in $Name) {
+ if ($requestedName -eq $env:FCC_RUNNING_COMMAND) {
+ [pscustomobject] @{ Id = 4242; ProcessName = $requestedName }
+ }
+ }
+}
$installer = [scriptblock]::Create([IO.File]::ReadAllText($env:FCC_UNINSTALLER))
if ($env:UNINSTALL_DRY_RUN -eq "1") {
& $installer -DryRun
@@ -569,6 +582,7 @@ else {
"CALL_LOG": str(log),
"FAKE_TOOL_BIN": str(tool_bin),
"FCC_UNINSTALLER": str(_repo_root() / "scripts" / "uninstall.ps1"),
+ "FCC_RUNNING_COMMAND": "",
"FAIL_STEP": "",
"UNINSTALL_DRY_RUN": "0",
}
@@ -696,6 +710,25 @@ def test_uninstall_ps1_dry_run_is_non_mutating(
assert "Dry run complete. No changes were made." in result.stdout
[email protected]("command_name", FCC_COMMANDS)
+def test_uninstall_ps1_rejects_running_fcc_before_mutation(
+ powershell_uninstall_harness: PowerShellUninstallHarness,
+ command_name: str,
+) -> None:
+ powershell_uninstall_harness.env["FCC_RUNNING_COMMAND"] = command_name
+
+ result = powershell_uninstall_harness.run()
+
+ assert result.returncode != 0
+ assert command_name in result.stderr
+ assert powershell_uninstall_harness.fcc_home.exists()
+ assert all(
+ (powershell_uninstall_harness.tool_bin / f"{name}.cmd").exists()
+ for name in FCC_COMMANDS
+ )
+ assert powershell_uninstall_harness.calls() == []
+
+
def test_uninstallers_guard_running_commands_and_preserve_shared_owners() -> None:
shell = (_repo_root() / "scripts" / "uninstall.sh").read_text(encoding="utf-8")
powershell = (_repo_root() / "scripts" / "uninstall.ps1").read_text(