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
Updater archive test fails on macOS when files carry com.apple.provenance #1460
installer::tests::reads_native_release_tar_format_and_preserves_bundle_modes in crates/maple-agent-updater fails on macOS when the files it archives carry a com.apple.provenance extended attribute. The Agent pre-commit hook runs it through just ci-test, so any Mac commit that stages Agent files stops there. This has now blocked commits twice on macOS 27.2.
called `Result::unwrap()` on an `Err` value: Invalid("unsupported archive metadata")
Cause
The test builds its archive with COPYFILE_DISABLE=1 /usr/bin/tar -czf. That stops AppleDouble files, but bsdtar still records extended attributes as pax headers. Here macOS tags the test's files with com.apple.provenance, so every entry gets two extra keys:
scan_archive only accepts a fixed list of pax keys, so it refuses the archive. That refusal is correct: rejecting host metadata is the scanner's job, and the same test file covers it for com.apple.quarantine.
Impact
Release archives should not be affected. macos_archive_app in scripts/macos-release-app.sh passes --no-xattrs --no-fflags --no-acls --no-mac-metadata, and its comment already names this gap. Archiving a tree with the provenance attribute using those flags gives no pax keys at all, against the two keys above without them.
So the test has drifted from the release command it is meant to represent. It says it reads the native release format, but it builds a different archive.
CI does not catch this: agent-test runs on Linux, where this cfg(target_os = "macos") test is compiled out, and agent-macos only runs Clippy.
Fix
Give the test's tar command the same four flags as macos_archive_app. Do not widen the scan_archive allowlist.
The test only fails when the files get the attribute, and what triggers that has not been established, so it may pass on other Macs.
Activity