ci(windows): put the stable junction under /tmp and make the supervisor test portable
VoidBuildSystem CI / 1 · Requirements (push) Successful in 8s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m11s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m28s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 3m15s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m49s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m29s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 37s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m31s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 1m49s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 2m12s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 2m19s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m15s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m14s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 1m54s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 2m3s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 2m5s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Successful in 2m54s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Successful in 4m32s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 43m24s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) In progress
VoidBuildSystem CI / 1 · Requirements (push) Successful in 8s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m11s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m28s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 3m15s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m49s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m29s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 37s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m31s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 1m49s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 2m12s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 2m19s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m15s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m14s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 1m54s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 2m3s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 2m5s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Successful in 2m54s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Successful in 4m32s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 43m24s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) In progress
C:/vbs-ci could not be created on the runner (the junction silently failed and every job rebuilt), so the stable path now lives under the MSYS2 temp directory, which persists across the jobs of a run and is writable. A failed junction is reported instead of being ignored. The process-supervisor test now uses cmd.exe on Windows and skips the POSIX process-group cases (job objects own the descendants there).
This commit is contained in:
1 parent
f3e6715af1
commit
756fbb9a6b
2 files changed
+19
-9
No files matched your search
@@ -22,16 +22,17 @@ if command -v cygpath >/dev/null 2>&1; then
|
||||
# The runner gives every job a different workspace directory while build
|
||||
# artifacts embed absolute paths. Work through one stable junction per
|
||||
# run+variant so the build, test and package jobs share identical paths and
|
||||
# artifacts can be reused instead of rebuilt.
|
||||
stable_win="C:/vbs-ci/${GITHUB_RUN_ID:-local}/${variant}"
|
||||
# artifacts can be reused instead of rebuilt. /tmp is the MSYS2 temp dir,
|
||||
# which persists across the jobs of a run.
|
||||
stable_win="$(cygpath -w "/tmp/vbs-ci/${GITHUB_RUN_ID:-local}/${variant}")"
|
||||
stable="$(cygpath -u "${stable_win}")"
|
||||
if mkdir -p "$(dirname "${stable}")" 2>/dev/null; then
|
||||
cmd //c "rmdir \"$(cygpath -w "${stable_win}")\"" >/dev/null 2>&1 || true
|
||||
cmd //c "mklink /J \"$(cygpath -w "${stable_win}")\" \"$(cygpath -w "${workspace}")\"" \
|
||||
>/dev/null 2>&1 || true
|
||||
if [ -d "${stable}" ]; then
|
||||
workspace="${stable}"
|
||||
fi
|
||||
mkdir -p "$(dirname "${stable}")"
|
||||
cmd //c "rmdir \"${stable_win}\"" >/dev/null 2>&1 || true
|
||||
junction_output="$(cmd //c "mklink /J \"${stable_win}\" \"$(cygpath -w "${workspace}")\"" 2>&1 || true)"
|
||||
if [ -d "${stable}" ]; then
|
||||
workspace="${stable}"
|
||||
else
|
||||
echo "warning: cannot create the stable junction '${stable_win}': ${junction_output}" >&2
|
||||
fi
|
||||
fi
|
||||
cd "${workspace}"
|
||||
|
||||
@@ -81,8 +81,13 @@ VOID_TEST(CoreEngineTests, process_supervisor_exec_failure_and_early_leader_gran
|
||||
// 2. Program explicitly exiting 127 is NOT exec_failed.
|
||||
{
|
||||
Platform::ProcessRequest req;
|
||||
#if defined(_WIN32)
|
||||
req.executable = "cmd.exe";
|
||||
req.arguments = {"/c", "exit 127"};
|
||||
#else
|
||||
req.executable = "/bin/sh";
|
||||
req.arguments = {"-c", "exit 127"};
|
||||
#endif
|
||||
auto res = Platform::run_supervised(req);
|
||||
Void::Testing::expect(res.has_value());
|
||||
if (res) {
|
||||
@@ -92,8 +97,11 @@ VOID_TEST(CoreEngineTests, process_supervisor_exec_failure_and_early_leader_gran
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(_WIN32)
|
||||
// 3. Adversarial VL-001 test: leader spawns stubborn grandchild ignoring SIGTERM and exits
|
||||
// immediately; timeout escalates to SIGKILL and prevents grandchild from writing sentinel file.
|
||||
// The POSIX process-group/signal semantics do not apply on Windows (job objects own the
|
||||
// descendants instead).
|
||||
{
|
||||
Void::FileSystem::TempDir tmp{"vbs_proc_"};
|
||||
const auto sentinel = tmp / "grandchild_escaped.txt";
|
||||
@@ -136,6 +144,7 @@ VOID_TEST(CoreEngineTests, process_supervisor_exec_failure_and_early_leader_gran
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds{300});
|
||||
Void::Testing::expect(!std::filesystem::exists(sentinel));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
VOID_TEST(CoreEngineTests, profile_inheritance_and_cycle_rejection) {
|
||||
|
||||
Reference in new issue
Block a user