Repository navigation
Give the project its first instrumented tests, and fix three defects the walkthrough left - #187
Merged
Merged
Conversation
…ging gesture on a device There was no androidTest source set anywhere, so the one thing a hand notices about the arranging gesture could not be asked: whether half a slot, at a device's real density and with its real long-press timeout, is where a tab changes place. The JVM tests drag ten thousand pixels to land on an answer Robolectric's densities cannot move. ToolbarOnDeviceTest, in :core:designsystem, holds a tab and drags it 0.7 and 0.4 of a slot in one touch: the first moves it exactly one place and is not taken for a tap, the second puts it back. A third taps the page with the mode open and checks the dismiss layer closes it and passes nothing through. All three pass on the API 37 emulator in 14 seconds, with `./gradlew :core:designsystem:connectedDebugAndroidTest`. The Compose BOM's ui-test-junit4 brings Espresso 3.5.0, which reaches for InputManager.getInstance by reflection; API 34 removed it and every test failed at its first onIdle. Espresso 3.7.0 and runner 1.7.0 are pinned in the catalog, read from Google Maven's metadata, where each is the current release. Not in CI, on purpose: CI has no device. CLAUDE.md, docs/build.md, the README and docs/architecture.md say how to run it and that it is the only test that touches a device. Closes #110
Both forms that take a diary password showed the sentence naming the diary's host beside the general notice, and the notice opened by saying it again: «по HTTPS, прямо в дневник», one paragraph under the other. With a host known, the sentence that names it now also says the password goes nowhere else, and the second paragraph is only what happens to the session. Without one, the general notice stands alone as before. One function decides the paragraphs for both forms, so they cannot drift apart again. PasswordPrivacyTest counts «HTTPS» across what is drawn, in both languages, and fails on the old pair. Closes #175
A refusal is an answer from one address. The join screen kept it after the address under the button was changed to a working one, until the next keystroke or the next press, so it showed a connection error about an address it no longer used. The view model now keeps each error with the address it was an answer from and shows it only while that is still the address. That covers a change from the screen's own link and one made in the settings alike, which clearing the error in one handler would not. A code of the wrong length is about the code, not a server, and stays whatever the address. JoinErrorAddressTest fails on the old behaviour. It did not reproduce on the second try on the emulator; the code path that keeps it is plain when read, and the test holds it. Closes #176
A join asked for the whole school year twice in the same second: the join screen's own refresh, and the one-off worker the class switch schedules. Neither had stored an ETag yet, so the server's log showed two 200s of ~273 days on two connections for every phone that joined. Syncs of one class's year now go through a single flight keyed like the tag, by class and year: a second caller while the first is on the wire waits for it and takes its answer. Nothing is remembered once a run ends, so a later refresh still asks again, and a waiter whose run was cancelled under it starts its own instead of inheriting the cancellation. ConcurrentSyncTest holds all three; the first fails on the old code with two requests. Closes #171
A caller waiting on a sync whose owner was cancelled retries for itself, which is right, but the owner takes its entry out only after it has completed the run's deferred. On a pool of threads the waiter can wake in between, find the same finished run still under the key, await it, get the same cancellation at once and go round again, until the owner gets the lock back — a loop that recurses and never suspends. A run that is no longer active is now treated as absent: the next caller starts its own and puts it under the key, and the old owner's identity check leaves the new entry where it is. ConcurrentSyncTest's three cases still pass. None of them reproduces the loop: under the test dispatchers the waiter's resumption is queued behind the owner, which finishes its cleanup first, so the window this closes is argued from the code rather than shown red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y left HANDOVER.md opens on #187 and gains its batch: #110's device test and the catalog pins it needed, #175, #176 and #171 with the hardening made at review, the branch ref that came back as NUL bytes and was restored from its reflog, and a teleport stash of IDE-generated files left for the owner. It records the gates on f787357, the join seen on the emulator — one 200 and one 304, never the overlap the fix coalesces — and what that leaves unverified. #186's summary moves into its own section, now «What the session before it added», and the chain below it shifts by one. Sections 5 and 7 no longer say there is no androidTest or that C: has 1.3 GB. The Android test count is 1446 in its three places, and the README's gate table carries the device run, marked as outside CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
lumenpearson
marked this pull request as ready for review
September 26, 2026 22:56
lumenpearson
pushed a commit
that referenced
this pull request
Sep 27, 2026
…they left HANDOVER.md opens on #189 and gains its batch: #174's diagnosis corrected (the phone's 2×2 is SMALL_TALL, not LARGE) before the fix, the fix, #188 found while checking it and fixed, what the emulator showed in both languages and at font scale 2.0, how the widget can and cannot be redrawn from a shell, and the gates on 675cafe. #187's section becomes «What the session before it added» and records its merge; the chain below shifts by one, and two references to #186's section now name it by its subject, since «What the batch before added» is shared. Section 5 says what #189 did not see: the one-line size during lessons at a large font, a system font-scale change, any other launcher. Section 7 has this batch's cost in disk. The Android test count is 1459 in its three places. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
Description
The project gets its first instrumented tests, and three of the four defects #186 filed and left open are fixed. The four commits were made on the night of 26–27 September. A fifth was added when the branch was picked up again: a hardening of the single flight, found while reviewing it before the push.
androidTestsource set anywhere, so where half a slot really falls under the arranging gesture could only be asked at Robolectric's densitiesToolbarOnDeviceTestin:core:designsystemdrags a tab 0.7 and 0.4 of a slot in one touch at the device's own density, and checks that a tap on the page closes the mode and reaches nothing. Espresso 3.7.0 and runner 1.7.0 are pinned in the catalog, because the Compose BOM's Espresso 3.5.0 fails on API 34 and laterThe hardening on #171 (
f787357). A waiter whose owner was cancelled retries for itself. It could wake before the owner had removed its finished run, find that same run again and again, and loop without ever suspending. A run that is no longer active is now never joined. None of the three tests reproduces that window, so it is argued from the code rather than shown red.HANDOVER.mdcarries the close-out: the batch, the ref that had to be restored from its reflog, aTeleport auto-stashthat holds only IDE-generated files and is left for the owner, and the gates.Closes #110
Closes #171
Closes #175
Closes #176
What is affected
server/app/api— the client-facing APIserver/app/bot— the botserver/app/services— the rules the bot and the API shareserver/app/providers/petersburg— the electronic diaryserver/migrations— the database schemaandroid/core/model— the models and the state engineandroid/core/data— Room, network, sync, notificationsandroid/core/designsystem— theme and componentsandroid/widget— the widgetandroid/app— the screensdocs/,README.md.github/— build and automationBoundaries
app/schedule.pystill imports neither FastAPI nor aiogram — the server is not touchedpasswordPrivacyParagraphsis the one place both forms readEXPECTED_REVISIONis still0017:core:datadoes not depend on:widgetvalues-en/—diary_password_sessionVerification
The server was not touched, so ruff, mypy and pytest were not run.
./gradlew assembleDebug./gradlew assembleReleasePixel_10_Pro_XLAVD, API 37. This branch's debug build, with its data cleared, went through the first run and joined «9А» withDEMO24against a local server. The server's log showedPOST /api/v1/join200, thenGET /api/v1/bundle?start=2026-09-01&days=273200, then the same request answered 304, one after the other on one connectionWhat is NOT covered
304rather than a second download; two overlapping syncs making one request is shown only byConcurrentSyncTestagainst a fake server.JoinErrorAddressTest.createComposeRuleis deprecated in favour of thev2one. The device test uses the old one, like all 39 JVM files; moving them is one change for all of them.Documentation
docs/updated —docs/build.mdhas «Instrumented tests», anddocs/architecture.mdhas the device source set and the new countsCLAUDE.mdupdated — theconnectedDebugAndroidTestcommandREADME.mdupdated — the honest status and the gate table🤖 Generated with Claude Code