mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1510] [CLOSED] test(setup): the ready-made-engine refusal tests reach the checksum path on any PC #3501
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#3501
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/1510
Author: @victorgabr
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:fix/setup-engine-hash-hermetic📝 Commits (1)
6e50bb2test(setup): the refusal tests reach the checksum path on any PC📊 Changes
1 file changed (+12 additions, -4 deletions)
View changed files
📝
tools/test_setup_engine_hash.py(+12 -4)📄 Description
tools/test_setup_engine_hash.py'sWhatARefusalDoesToTheCallermocked the download and the published digest, but notthe two steps that come before the checksum, so on most PCs the run never reaches the path those two tests are about:
get_prebuiltreturns at once when this checkout'sengine/holds a locally built engine ("source": "local") -which any PC that ever ran
./setup.sh --buildhas;HEADs the release asset over the real network, and no release carries this OS's asset.Measured 2026-10-08:
HEAD .../releases/latest/download/strata-linux-x64.zipand.../download/v0.1.40.3/strata-linux-x64.zipboth answer 404, whilestrata-windows-x64.zipanswers 200.Either way the run stops before
verify_engine_archive, prints nothing, and the two tests fail withAssertionError: SystemExit not raisedand'keeping the engine that is installed' not found in ''- on Linux always,on Windows on a checkout with a locally built engine.
What changes: the class now points
setup.engine_dirat theengine/folder its ownsetUpalready makes, and mocksthe
HEAD; the first-install case goes through that same helper instead of patching two of the four steps. No fixtureversions and no setup.py behaviour are touched.
Offline (0.02 s, no request leaves the process), and it needs no
engine/in the checkout. The othertools/test_setup_*.pysuites are unchanged and green.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.