mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2552
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:chief-serve/setup-tests-host📝 Commits (1)
1e02629tests: the setup tests no longer depend on this PC's network or /proc/cpuinfo (#1935)📊 Changes
3 files changed (+12 additions, -2 deletions)
View changed files
📝
tools/test_setup_amd.py(+1 -0)📝
tools/test_setup_choices.py(+3 -0)📝
tools/test_setup_engine_hash.py(+8 -2)📄 Description
The test half of #1935: 8 tests in
tools/test_setup_*.pypassed or failed depending on the PC that runs them.Test files only;
setup.pyis not changed.What it changes.
tools/test_setup_engine_hash.py(WhatARefusalDoesToTheCaller, 2 tests):get_prebuilt()first sends a real HEADfor the release asset. Offline, or on Linux (no release publishes
strata-linux-x64.zip), it returned "compilinginstead" before
download, so the refusal path the tests are about never ran and they failed. The HEAD'surlopenis now a stand-in that answers (release_found()), next to the existingdownload/engine_digestones.tools/test_setup_choices.py(HipVision,CudaVision,HostCompilers, 5 tests) andtools/test_setup_amd.py(
GpuLists.test_build_for_every_arch):build_engine(_hip)read this PC's/proc/cpuinfo. On a host without aflagsline it raised (thecpu_info()bug fixed in #2551), and on a CPU without AVX2 the build would get anotherfloor.
setup.cpu_infois now("test CPU", True, False)there.What it leaves alone. Every other test, and what each of these tests checks.
How it was checked. On this PC (x86-64 with network)
tools/test_setup_engine_hash.pyfailed 2 tests onupstream/mainand passes now (in 0.01 s instead of 1.5 s). With/proc/cpuinforeplaced by an aarch64 one (awrapper that patches
open):test_setup_choices.py5 errors andtest_setup_amd.py1 error onmain, OK now. Allfour files (
engine_hash,choices,amd,oldcpu) pass on the normal host and with the aarch64 cpuinfo. Python3.14, Ubuntu (Linux 7.0); not run on Windows or in a
python:3.12-slimcontainer.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
--resident-expertsto prevent startup failure #4908