Skip to content

fix(agent): stop two tests from blocking Mac commits - #1465

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-updtar-maple
Nov 6, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-updtar-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #1460. Two test-only fixes for failures in the Mac pre-commit hook. No shipped code changes.

Updater archive test. reads_native_release_tar_format_and_preserves_bundle_modes built its archive with COPYFILE_DISABLE=1 alone, which still records extended attributes as pax headers. When macOS tags the fixture with com.apple.provenance, scan_archive correctly refuses the archive, so the hook stops any Mac commit that stages Agent files. The test now passes the same four flags as macos_archive_app in scripts/macos-release-app.sh, so it reads the format releases ship. The scanner's allowlist is unchanged.

Reconnect spinner test. reconnecting_shows_only_the_header_spinner, added in #1461, failed once in the hook for this PR. The composer's send button moved from y=453 to y=420 between frames, which is the size of a notice row in the centered empty state.

The cause of that one failure is not established. It did not recur in about 160 more runs of the test: 96 alone under parallel load, 54 with delays injected into the fixture's failing call, and 12 full-suite runs under contention.

What is established is that the fixture's unreachable API raises its own notices, so comparing the composer between frames can fail for reasons unrelated to reconnecting. That comparison added no coverage, because the test already checks directly that no banner or disconnect notice is shown. This drops it, and clears the notice inside the same update before checking that refused actions stay quiet.

Validation

Run on macOS 27.2 with bsdtar 3.5.3, in the Agent Nix shell:

  • The updater test failed on unchanged master with Invalid("unsupported archive metadata") and passes with this change.
  • The pre-commit hook (just ci-lint, just ci-test) passed on this commit with no skip.

CI does not cover the updater test: agent-test runs on Linux, where this cfg(target_os = "macos") test is compiled out, and agent-macos only runs Clippy.

Noticed, not changed

transcript_context_menu_copies_link_destinations failed once in the contention runs, which ran three copies of the suite at once. It is an existing test and has not failed in a normal run, so it is left alone here.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The updater archive test built its archive with COPYFILE_DISABLE alone,
which still records extended attributes as pax headers. When macOS tags
the fixture with com.apple.provenance, the scanner correctly refuses the
archive. Use the flags macos_archive_app uses, so the test reads the
format that releases ship. The scanner's allowlist does not change.

The reconnect spinner test compared the composer's position between
frames, in a fixture whose unreachable API raises its own notices. A
notice row moves the centered composer, and that comparison failed once
in a pre-commit run. Drop it: the test already checks directly that no
banner or disconnect notice is shown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AnthonyRonning
AnthonyRonning merged commit 7fa606f into master Nov 6, 2026
43 of 45 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-updtar-maple branch November 6, 2026 19:12
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.

Updater archive test fails on macOS when files carry com.apple.provenance

1 participant