Skip to content

test(skills): skip non-UTF8 filename test on macOS - #463

Merged
SaladDay merged 1 commit into
SaladDay:mainfrom
bryango:skip-non-utf8-test-macos
Sep 16, 2026
Merged

SaladDay merged 1 commit into
SaladDay:mainfrom
bryango:skip-non-utf8-test-macos

Conversation

@bryango

@bryango bryango commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

TLDR(zh_cn): 这个 test 不能在macos上正常运行,因为 macos 根本不支持这样的文件名

Problem

migration_tree_hash_preserves_non_utf8_names creates filenames containing invalid UTF-8 bytes with OsStringExt.

In a Nix sandbox on Darwin, creating these test fixtures fails with EILSEQ before the migration hash logic is exercised. The test is useful on Unix platforms that support these filenames, but the fixture is not portable to macOS.

Change

Run the test on Unix except macOS:

#[cfg(all(unix, not(target_os = "macos")))]

No production code changes.

@SaladDay

Copy link
Copy Markdown
Owner

LGTM, THANKS!!

@SaladDay
SaladDay merged commit 1ae36f7 into SaladDay:main Sep 16, 2026
@bryango

bryango commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Thank you! Here is another minimal bug fix / 另一个小小的 bug 修复:

@bryango
bryango deleted the skip-non-utf8-test-macos branch September 17, 2026 07:23
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