mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4442] [CLOSED] [Other] Stop is only stopped when the run's folder is really gone #5051
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#5051
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/4442
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:host/timeskip-stop-027📝 Commits (1)
51224fe[Other] Stop is only 'stopped' when the run's folder is really gone📊 Changes
2 files changed (+36 additions, -6 deletions)
View changed files
📝
apps/host/server/timeskip.mjs(+31 -5)📝
apps/host/tests/timeskip-real.test.mjs(+5 -1)📄 Description
## Problem
Stopping a Time-skip run reported success even when the run's folder was still there.
existsSyncreturns false on a permission error, so "could not be deleted" read as "deleted": the copies of the person's files stayed on disk while the interface said the run had stopped.Result
ENOENTcounts as gone. If the folder is still there after eight seconds,stop()raises, and the route answers with the error instead of a cheerful "stopped".Validation
node --test tests/timeskip-real.test.mjs→ 7 pass, 0 fail, three runs in a row (Windows). The stop case went from failing after 7.9 s to passing in about 0.9 s.Limits
STRATA_HARNESS_DIRis not set; the pure logic and the code path are what the test covers here.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.