Repository navigation
fix(agent): stop two tests from blocking Mac commits - #1465
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_modesbuilt its archive withCOPYFILE_DISABLE=1alone, which still records extended attributes as pax headers. When macOS tags the fixture withcom.apple.provenance,scan_archivecorrectly refuses the archive, so the hook stops any Mac commit that stages Agent files. The test now passes the same four flags asmacos_archive_appinscripts/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:
Invalid("unsupported archive metadata")and passes with this change.just ci-lint,just ci-test) passed on this commit with no skip.CI does not cover the updater test:
agent-testruns on Linux, where thiscfg(target_os = "macos")test is compiled out, andagent-macosonly runs Clippy.Noticed, not changed
transcript_context_menu_copies_link_destinationsfailed 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
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.