Repository navigation
Conversation
…695) What changed: PR #689 added testPageReadoutCountsTheDisplayListNotTheElidedV1Pages at the end of PreviewV2ParityTests instead of PreviewV2ShellTests, where the model()/load() helpers it calls actually live. PreviewV2ParityTests has neither helper, so the test target failed to compile on main (dbe3cac), taking the whole `mac app (swift build + test)` CI job down with it. This moves the test, unchanged, into PreviewV2ShellTests (which is already @mainactor at the class level, so the redundant per-method @mainactor is dropped) and does nothing else. What was run: - `cd apps/mac && swift build` — Build complete! - Before (origin/main content, reproduced): `swift test` failed to compile with the same two errors as #695: PreviewV2Tests.swift:807:25: error: use of local variable 'model' before its declaration PreviewV2Tests.swift:809:9: error: static member 'load' cannot be used on instance of type 'PreviewV2ParityTests' - After (this fix): `swift test --filter 'PreviewV2'` — Executed 29 tests, with 0 failures (0 unexpected), including testPageReadoutCountsTheDisplayListNotTheElidedV1Pages passing under PreviewV2ShellTests. Next step: none; ready for review. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
This was referenced Sep 16, 2026
Contributor
Author
ItsAkilesh
pushed a commit
to ItsAkilesh/flashtex
that referenced
this pull request
Sep 18, 2026
… integration/2026-09-17-qol Own commit only, rebased onto main without flash-tex#698's. CompletionLatencyTests conflict resolved to main's guard-let, which already removed the force unwrap. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
ItsAkilesh
pushed a commit
to ItsAkilesh/flashtex
that referenced
this pull request
Sep 18, 2026
…gration/2026-09-17-qol Own commit only, rebased onto main without flash-tex#698's. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
ItsAkilesh
pushed a commit
to ItsAkilesh/flashtex
that referenced
this pull request
Sep 18, 2026
…ntegration/2026-09-17-qol Own commit only, rebased onto main without flash-tex#698's. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
ItsAkilesh
pushed a commit
to ItsAkilesh/flashtex
that referenced
this pull request
Sep 18, 2026
…ntegration/2026-09-17-qol Own commit only, rebased onto main without flash-tex#698's. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
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.
What
Unbreak main:
apps/mac/Tests/FlashTeXMacTests/PreviewV2Tests.swiftfails tocompile on
main(dbe3cac8), taking the wholemac app (swift build + test)CI job down with it. Fixes #695.
PR #689 added
testPageReadoutCountsTheDisplayListNotTheElidedV1Pagesat theend of
PreviewV2ParityTestsinstead ofPreviewV2ShellTests, where themodel()/load()helpers it calls actually live. This moves the test,unchanged, into
PreviewV2ShellTestsand does nothing else. (PreviewV2ShellTestsis already
@MainActorat the class level, so the redundant per-method@MainActoron the moved test is dropped.)Why
PreviewV2ParityTestshas neithermodel()norload(), so the new testdoesn't compile there:
swift testmust compile the whole test target before running anything, sothis is a hard build break, not a flake — every open PR's Mac check is red
until this lands. See #695 for the full root-cause writeup and #689 for the
PR that introduced it (the test's intent — the page readout must read the
v2 display list's page count, not the elided v1
result.pages, and must notbe gated on which pane is showing — is preserved exactly; only its class
changed).
Overlap check
gh pr list --repo flash-tex/flashtex --state open --search "PreviewV2Tests"/--search "695": no open PRs.python3 scripts/coord.py claims: only my own claim,GH-695-MAC-PREVIEWV2-BUILD.python3 scripts/coord.py claim GH-695-MAC-PREVIEWV2-BUILD --actor daniel-parent --machine mac-m5pro-dq222 --branch agent/daniel-parent/fix-gh695-previewv2-test-class→CLAIMED.Test results
Reproduced the break first (origin/main content,
swift test --filter '__no_such_test__', same two errors as #695 at the same lines: 807:25 and 809:9), then applied the fix and re-verified.Before (origin/main, reproduced locally):
After (this branch):
All 4
PreviewV2*test classes (PreviewV2Tests,PreviewV2ShellTests,PreviewV2LiveTests,PreviewV2ParityTests— 29 tests total) build and pass.Did not run the full unfiltered
swift testsuite (shared build machine); theknown unrelated flakes (RustPDFExportPipeTests load timeout, 3 Mac
CompletionTests, machine-dependent DesignSnapshots, DocumentFilesTests helper
timeout) are out of scope for this fix and don't touch this file.
Not done
Nothing else changed. This is a pure test-class move; no production code
touched.
🤖 Generated with Claude Code
https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz