Skip to content

fix(records): list artifact paths with POSIX separators - #18

Merged
XuehaiWang merged 1 commit into
mainfrom
fix/artifacts-path-tree
Nov 25, 2026
Merged

XuehaiWang merged 1 commit into
mainfrom
fix/artifacts-path-tree

Conversation

@kiri603

@kiri603 kiri603 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

GET runs/:id/artifacts built every listed path with the host separator, so on Windows the Web artifact tree saw one flat file named data\big-3mb.jsonl instead of a data folder, and the reported nested directories (reports/2026/...) never appeared.

The listed relative path is now normalized to /, which makes the listing a portable contract and matches what files/* already accepts. The Web tree also splits on either separator, for daemons and cluster workers still running an older build, and each tree row carries a title so a truncated long name stays readable on hover.

Validation

Checked in Chrome against a daemon running the patched listing on Windows: run c3e5a7 now shows a collapsible data / plots / reports / 2026 / 11 / deep / nested tree, every row has the full path in title, and opening the deep JSON shows the full path in the preview toolbar.

New test in packages/orbit/test/records.test.ts ("lists artifacts with portable separators") writes reports/2026/run.csv and top.json and asserts the listing is ["reports/2026/run.csv", "top.json"] with no backslash anywhere.

  • pnpm verify passes on CI (ubuntu-24.04 / Node 24.18): https://github.com/zjunlp/Orbit/actions/runs/45004250181/job/137152201632
  • Note: run locally on Windows only for the parts that need no daemon (this machine has no /proc and no Docker, so the daemon suite is CI-only).
  • Task record / design / status updated when needed — docs/design.md now states that the artifact path is host-independent and /-separated

GET runs/:id/artifacts built every path with the host separator, so on
Windows the Web artifact tree saw one flat file named data\big-3mb.jsonl
instead of a data folder. Normalize the listed relative path to "/" so the
listing is a portable contract and matches what files/* already accepts.

The Web tree also splits on either separator, for daemons and cluster
workers still running an older build, and each tree row carries a title so
a truncated long name stays readable on hover.
@kiri603
kiri603 requested a review from XuehaiWang as a code owner November 22, 2026 08:44
@XuehaiWang
XuehaiWang merged commit b76e3c6 into main Nov 25, 2026
1 check passed
@crepuscular-drizzle
crepuscular-drizzle deleted the fix/artifacts-path-tree branch November 26, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants