Skip to content

Stand up GitXTests unit-test target with a race-condition regression test - #566

Merged
hannesa2 merged 1 commit into
gitx:masterfrom
goneng:standup-gitxtests-unit-tests
Aug 17, 2026
Merged

hannesa2 merged 1 commit into
gitx:masterfrom
goneng:standup-gitxtests-unit-tests

Conversation

@goneng

@goneng goneng commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The scheme already referenced a GitXTests target (BlueprintIdentifier BBCCDDA000000A00) in both BuildAction and TestAction, but it never actually existed in project.pbxproj -- a dangling reference.

Changes

Test plan

(Not Blocked)

Was blocked on #565, which is merged by now.

@goneng
goneng force-pushed the standup-gitxtests-unit-tests branch 5 times, most recently from bc06789 to 14f1afb Compare August 12, 2026 18:59
…test

The scheme already referenced a GitXTests target (BlueprintIdentifier
BBCCDDA000000A00) in both BuildAction and TestAction, but it never
actually existed in project.pbxproj -- a dangling reference. Recreate
it as a real unit-test bundle (TEST_HOST/BUNDLE_LOADER against GitX.app)
and repoint the scheme at its real target UUID.

Add PBGitRevListRaceConditionTests.m, driving PBGitRevList's private
loadGeneration/updateCommits:operation:generation: directly to assert
a stale generation's flush is dropped and a current generation's
flushes still accumulate -- covering the fix without depending on
FSEvents/operation-queue timing.
@goneng
goneng force-pushed the standup-gitxtests-unit-tests branch from 14f1afb to d15f35a Compare August 14, 2026 17:56
@goneng goneng mentioned this pull request Aug 14, 2026
1 task done
@goneng
goneng marked this pull request as ready for review August 14, 2026 19:28
@hannesa2
hannesa2 merged commit 46dfa30 into gitx:master Aug 17, 2026
3 checks passed
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