[PR #526] [CLOSED] Fix HIP report tests with a home-local TMPDIR #581

Closed
opened 2026-10-29 21:27:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/526
Author: @DailyDisco
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: fix/hip-report-home-path-tests


📝 Commits (1)

  • 5e1b2e4 [verified] test: handle home-local temporary report paths

📊 Changes

1 file changed (+14 additions, -3 deletions)

View changed files

📝 tools/test_maya_hip.py (+14 -3)

📄 Description

Summary

Make the HIP report tests work when TMPDIR is inside the user's home directory. The report intentionally replaces the home path with ~, but three assertions expected an absolute ROCm fixture path. With a home-local temp directory, all three fail even on unchanged main.

Only the expected test strings change. Report generation, path redaction, hardware detection and runtime behavior are untouched. A small additional test exercises a mocked home containing the ROCm fixture and a home outside it, and checks that the home path does not leak into the first report.

Validation

Python 3.12.3, CI-pinned gguf-py, home-local TMPDIR:

  • Before: full installer/tools suite ran 407 tests with 3 HIP-report failures and 28 skips.
  • After: full installer/tools suite ran 408 tests, passed with 28 skips.
  • Focused HIP tests: 47 passed.
  • git diff --check passed.

AI assistance: Hermes assisted with investigation, tests and review.


🔄 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/mw00/project-maya/pull/526 **Author:** [@DailyDisco](https://github.com/DailyDisco) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/hip-report-home-path-tests` --- ### 📝 Commits (1) - [`5e1b2e4`](https://github.com/mw00/project-maya/commit/5e1b2e4de479fc71fa3b105906d3da96b1f75c04) [verified] test: handle home-local temporary report paths ### 📊 Changes **1 file changed** (+14 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_maya_hip.py` (+14 -3) </details> ### 📄 Description ## Summary Make the HIP report tests work when `TMPDIR` is inside the user's home directory. The report intentionally replaces the home path with `~`, but three assertions expected an absolute ROCm fixture path. With a home-local temp directory, all three fail even on unchanged main. Only the expected test strings change. Report generation, path redaction, hardware detection and runtime behavior are untouched. A small additional test exercises a mocked home containing the ROCm fixture and a home outside it, and checks that the home path does not leak into the first report. ## Validation Python 3.12.3, CI-pinned gguf-py, home-local TMPDIR: - Before: full installer/tools suite ran 407 tests with 3 HIP-report failures and 28 skips. - After: full installer/tools suite ran 408 tests, passed with 28 skips. - Focused HIP tests: 47 passed. - `git diff --check` passed. AI assistance: Hermes assisted with investigation, tests and review. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:27:08 +07:00
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#581
No description provided.