[PR #4564] [TUI] DeepSeek start_env test: assert on the library variable the code writes #5090

Open
opened 2026-11-07 16:32:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4564
Author: @Nyarlathoteppppp
Created: 10/29/2026
Status: 🔄 Open

Base: main ← Head: fix/4531-dsv41-libpath-test


📝 Commits (2)

  • f026a03 Tests: the DeepSeek start_env test reads the library variable the code writes (LD_LIBRARY_PATH off Windows) (#4531)
  • cc60922 Merge remote-tracking branch 'origin/main' into fix/4531-dsv41-libpath-test

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 tests/terminal/test_dsv41_engine.py (+5 -1)

📄 Description

Problem and result

HipPackageLibraryPath.test_rocm_bin_comes_after_the_package_folder reads env["PATH"], but dsv41_engine.start_env writes the package library folder to LIB_VAR, which is PATH only on Windows and LD_LIBRARY_PATH elsewhere (as its docstring says). So the test fails on Linux and macOS while the code is right.

After the change the test asserts on env[dsv41_engine.LIB_VAR] and passes on macOS; it also checks that the input environment is not mutated and, off Windows, that PATH is left alone.

Fixes #4531. Test-only change.

Approach

Assert on the variable the code actually writes on this platform, keeping the test's intent (package folder before the ROCm bin folder). No production code change, no skip.

Validation

Passed:

  • python -m pytest tests/terminal/test_dsv41_engine.py: 19 passed. On 46c152a: 1 failed (this test), 18 passed.
  • Environment: macOS 26 (Darwin 25.5) arm64, Apple M1 Pro, Python 3.14.7 venv with requirements.txt + pytest, base 46c152a.

Failed:
none observed.

Not run:
Windows (where LIB_VAR is PATH, so the assertion is the same as before), Linux.

Limits

none known.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4564 **Author:** [@Nyarlathoteppppp](https://github.com/Nyarlathoteppppp) **Created:** 10/29/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/4531-dsv41-libpath-test` --- ### 📝 Commits (2) - [`f026a03`](https://github.com/Niko1221/Strata/commit/f026a03e7d4a29af5835f80e08454819076f6b17) Tests: the DeepSeek start_env test reads the library variable the code writes (LD_LIBRARY_PATH off Windows) (#4531) - [`cc60922`](https://github.com/Niko1221/Strata/commit/cc609224991f16da6d084f0811c1d003d62e80e5) Merge remote-tracking branch 'origin/main' into fix/4531-dsv41-libpath-test ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/terminal/test_dsv41_engine.py` (+5 -1) </details> ### 📄 Description ## Problem and result `HipPackageLibraryPath.test_rocm_bin_comes_after_the_package_folder` reads `env["PATH"]`, but `dsv41_engine.start_env` writes the package library folder to `LIB_VAR`, which is `PATH` only on Windows and `LD_LIBRARY_PATH` elsewhere (as its docstring says). So the test fails on Linux and macOS while the code is right. After the change the test asserts on `env[dsv41_engine.LIB_VAR]` and passes on macOS; it also checks that the input environment is not mutated and, off Windows, that `PATH` is left alone. ## Related discussion Fixes #4531. Test-only change. ## Approach Assert on the variable the code actually writes on this platform, keeping the test's intent (package folder before the ROCm bin folder). No production code change, no skip. ## Validation **Passed:** - `python -m pytest tests/terminal/test_dsv41_engine.py`: 19 passed. On `46c152a`: 1 failed (this test), 18 passed. - Environment: macOS 26 (Darwin 25.5) arm64, Apple M1 Pro, Python 3.14.7 venv with requirements.txt + pytest, base `46c152a`. **Failed:** none observed. **Not run:** Windows (where `LIB_VAR` is `PATH`, so the assertion is the same as before), Linux. ## Limits none known. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5090
No description provided.