You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workbench .NET tests: 7 pre-existing failures on Linux CI (path assumptions + stale storage-introspection) #426
The Workbench .NET test suite (test/Typhon.Workbench.Tests) has 7 pre-existing failures on the Linux CI gate box (c6id / ubuntu). Surfaced 2026-07-01 by the merge-gate run of PR #424 — the first PR since the gate went live (#405) to trigger the Workbench suite. They are not caused by #424 (which touched only the engine + Typhon.slnx); the engine suite passed clean. Green on a Windows dev box, red on the Linux CI box.
workbench.trx: 620 total / 594 passed / 7 failed.
Failures — two categories
A. Linux platform assumptions (pass on Windows, fail on ubuntu)
ResolveAbsolutePath_AlreadyAbsolute_DoesNotJoinWorkspaceRoot — feeds a Windows path C:\different\workspace\…; on Linux that is not absolute, so the code joins it to the workspace root → Does.Not.Contain("workspace") fails.
GetSource_CSharpFile_ReturnsEnclosingMethodBlock — writes a temp .cs file then gets File not found → 404 instead of 200 (temp-dir/path handling).
GetSource_AbsolutePath_BypassesWorkspaceGuardAndReadsFile — same temp-file 404.
B. Stale storage-introspection tests vs. the v4 directory-root rework
GetPage_DecodesOccupancyRoot — expects PageType == "Occupancy", engine now returns "Root".
GetPage_OccupancyRoot_RendersGovernedRegionMap — same "Occupancy" vs "Root".
Category B lines up with the recent v4 directory-only-root storage change (root now holds only the page directory) — the introspection page-type taxonomy changed and these Workbench tests were never updated.
Fix directions
A — make the path/temp handling OS-agnostic (don't rely on C:\-style absolute detection in the test inputs; use Path.GetTempPath() consistently on both the test and server side).
B — update the expected PageType / ChunkFill / ChunkClass to the current v4 introspection output (verify against DatabaseEngine.StorageIntrospection).
Evidence
Full TRX: artifact ci-reports on Actions run 28524492815 (workbench.trx).
These 7 are now disabled at execution via NUnit [Ignore("… tracked by #426")] on main (merged in PR #451), so the merge gate is green while the real fix stays tracked here. This issue remains open — the tests are skipped, not fixed.
Tests carrying the [Ignore]:
ProfilerSourceControllerTests — Linux path assumptions:
To resolve: apply the two fix directions from the description — (A) OS-agnostic path/temp handling so a /-rooted input is treated as absolute; (B) update the expected PageType / ChunkFill / ChunkClass to the current v4 introspection output — then remove the 7 [Ignore] attributes (grep tracked by #426).
Implemented on fix/426-workbench-ci-tests (pending review + commit)
All 7 [Ignore] attributes removed; both root causes fixed.
A — path assumptions (product fix, ProfilerSourceController.cs). The absolute-path detection was hand-rolled to recognize only Windows forms (X:, \\, //), so a POSIX-absolute path (IsPathRooted==true but no drive letter) was mis-classified as relative and joined onto the workspace root on Linux. Replaced with Path.IsPathFullyQualified in both ResolveAbsolutePath and GetSource — OS-agnostic (drive/UNC on Windows, /-rooted on Linux), with the /_/ repo-relative branch still checked first and the traversal guard intact.
B — stale v4 introspection (test fix, StorageMapDetailTests.cs). The 4 tests probed stale page indices. Retargeted to the correct v4 pages, discovered from the segment table (not hardcoded):
Occupancy tests → the Occupancy segment's root (was hardcoded page 1, now the directory Root). RendersGovernedRegionMap further moved to the first occupancy data page (renamed GetPage_OccupancyPage_…) because the directory-only root governs zero pages in v4 (GetOccupancyPageGovernedRangerootGoverned == 0).
Vsbs/Index tests → the first non-root data page (new FirstDataPageAsync helper), since the v4 root carries zero chunks.
Finding: the demo's 8 index segments are the engine's schema-catalog indexes and are all node-less (directory chunk only). The original IndexPage test Assert.Ignored wholesale when it found no node — even after its directory-hatch assertions passed. Restructured so the directory-hatch verification is the spine (runs + passes on the first data page) and the leaf/internal node-role decode is an optional cross-check (if (node exists)). Strictly stronger than the original on this demo.
Verification: full Typhon.Workbench.Tests suite green locally — 600 passed / 0 failed / 9 skipped; all 7 target tests confirmed running and passing (not skipped). B is platform-independent (fully verified). A is a Linux-specific bug (passes on Windows regardless) — the Linux fix holds by Path.IsPathFullyQualified's cross-platform semantics and will be confirmed on the merge-gate Linux runner.
Activity
#147 #148 #450 Simplified setup, .typhon bundle, options validation (PR
nockawa commentedon Jul 4, 2026
These 7 are now disabled at execution via NUnit
[Ignore("… tracked by #426")]onmain(merged in PR #451), so the merge gate is green while the real fix stays tracked here. This issue remains open — the tests are skipped, not fixed.Tests carrying the
[Ignore]:ProfilerSourceControllerTests— Linux path assumptions:ResolveAbsolutePath_AlreadyAbsolute_DoesNotJoinWorkspaceRootGetSource_AbsolutePath_BypassesWorkspaceGuardAndReadsFileGetSource_CSharpFile_ReturnsEnclosingMethodBlockStorageMapDetailTests— stale vs the v4 directory-root introspection:GetPage_DecodesOccupancyRootGetPage_OccupancyRoot_RendersGovernedRegionMapGetPage_VsbsPage_CarriesElementFillGetPage_IndexPage_ClassesLeafInternalAndHatchesDirectoryTo resolve: apply the two fix directions from the description — (A) OS-agnostic path/temp handling so a
/-rooted input is treated as absolute; (B) update the expectedPageType/ChunkFill/ChunkClassto the current v4 introspection output — then remove the 7[Ignore]attributes (greptracked by #426).nockawa commentedon Jul 4, 2026
Implemented on
fix/426-workbench-ci-tests(pending review + commit)All 7
[Ignore]attributes removed; both root causes fixed.A — path assumptions (product fix,
ProfilerSourceController.cs). The absolute-path detection was hand-rolled to recognize only Windows forms (X:,\\,//), so a POSIX-absolute path (IsPathRooted==truebut no drive letter) was mis-classified as relative and joined onto the workspace root on Linux. Replaced withPath.IsPathFullyQualifiedin bothResolveAbsolutePathandGetSource— OS-agnostic (drive/UNC on Windows,/-rooted on Linux), with the/_/repo-relative branch still checked first and the traversal guard intact.B — stale v4 introspection (test fix,
StorageMapDetailTests.cs). The 4 tests probed stale page indices. Retargeted to the correct v4 pages, discovered from the segment table (not hardcoded):Occupancysegment's root (was hardcoded page 1, now the directoryRoot).RendersGovernedRegionMapfurther moved to the first occupancy data page (renamedGetPage_OccupancyPage_…) because the directory-only root governs zero pages in v4 (GetOccupancyPageGovernedRangerootGoverned == 0).FirstDataPageAsynchelper), since the v4 root carries zero chunks.Finding: the demo's 8 index segments are the engine's schema-catalog indexes and are all node-less (directory chunk only). The original IndexPage test
Assert.Ignored wholesale when it found no node — even after its directory-hatch assertions passed. Restructured so the directory-hatch verification is the spine (runs + passes on the first data page) and the leaf/internal node-role decode is an optional cross-check (if (node exists)). Strictly stronger than the original on this demo.Verification: full
Typhon.Workbench.Testssuite green locally — 600 passed / 0 failed / 9 skipped; all 7 target tests confirmed running and passing (not skipped). B is platform-independent (fully verified). A is a Linux-specific bug (passes on Windows regardless) — the Linux fix holds byPath.IsPathFullyQualified's cross-platform semantics and will be confirmed on the merge-gate Linux runner.Log2n-io#426 Fix 7 Workbench Linux-CI test failures (path assumptions…