RunTracker Unicode names can exceed filesystem filename byte limits
RunTracker truncates its sanitized filename slug to 100 Python characters. Non-ASCII alphanumeric names can still consume 300–400 UTF-8 bytes before the timestamp, ID and file suffixes are added, exceeding common 255-byte filename limits.
Reproduction on dev 5c7285e:
from visdom.tracking.core import _slugify
len(_slugify("研究" * 100).encode("utf-8")) # 300A RunTracker created with that name produces a 330-byte metadata filename (and a longer event-log filename). The existing truncation only covers ASCII names. This was reproduced with a byte-length assertion on macOS; I am not claiming an OSError occurred on this macOS filesystem. Such names cannot be created on filesystems with a 255-byte component limit.
Expected: bound the generated slug in UTF-8 bytes, retain complete characters, and preserve the original run name in metadata.
I have a two-file fix with failing-before/passing-after Unicode regressions, actual temporary-file lifecycle coverage, and passing tracking tests. No matching issue/open PR found.
Source: fossasia/visdom