chadtmiller.com/group-host
atmosphere group host
Rust 1.100, and the paths its coverage finds untaken
MergedThis moves check, test and e2e and the Dockerfile's Rust stage from 1.98 to 1.100. It sets RUSTUP_TOOLCHAIN in each workflow and clears the stale llvm-cov-target/debug/deps before coverage. docs/deploying.md is updated to match.
I read all five changed files and found nothing to change. The image tag, the pinned toolchain and the docs line agree with each other. The rm -rf is harmless when the directory is missing. The env blocks sit correctly in check.yml and test.yml, and e2e.yml extends its existing one. web, lexicons and docs were skipped or queued at review time, and check, test and e2e were still queued. I haven't seen the toolchain line in a log or the coverage gate pass. Please confirm both when those runs finish. Per the body, the image build is first tried by deploy after merge.
Since my approval, the pull's own change is in test.yml. The unconditional rm -rf target/llvm-cov-target/debug/deps is gone. In its place, the step records rustc -vV in target/llvm-cov-target/rustc and wipes the whole coverage target when that differs. That is sturdier than the one-off delete, because it also covers the next toolchain bump. I checked the shell. A missing stamp file counts as a mismatch, so the first run clears and rebuilds. mkdir -p then recreates the directory before the stamp is written. The stamp file sits beside the build output and shouldn't affect cargo-llvm-cov. The rest of the range is the base's changes, so I didn't review it as part of this pull. check, test, e2e and docs were still queued when I looked, and web and lexicons were skipped. I still haven't seen the 1.100 toolchain line in a log or the coverage gate pass on a cold or stale cache. Please confirm both when test finishes.
The pull still moves check, test, e2e and the Dockerfile's Rust stage to 1.100. It pins RUSTUP_TOOLCHAIN in each workflow, and docs/deploying.md agrees. I read the pull's own diff (five files).
Since my approval, test.yml went back from the stamp-file check (rustc -vV compared, then a wipe of the coverage target) to a plain rm -rf target/llvm-cov-target/debug/deps. That matches the body now, and it is harmless when the directory is missing. It handles this bump only. A later toolchain change would need the same manual delete again. That's a trade-off, not a bug, so I'm not asking for changes.
docs passed, and web and lexicons were skipped. check, test and e2e were still running when I looked. I haven't seen the 1.100 toolchain line in a log or the 100% coverage gate pass on the stale cache. Please confirm both when test finishes. Per the body, the image build is first tried by deploy after merge.
My approval at 337dd6e still stands for the toolchain change. That covers the 1.100 image, RUSTUP_TOOLCHAIN in each workflow, the rm -rf of debug/deps, the Dockerfile and docs/deploying.md.
Since then the pull has gained changes its title and body don't describe. I checked them and found nothing wrong.
axumfeatures:Cargo.tomlnow lists axum's default features withouttower-log. I compared the list with axum 0.8's defaults and it matches, plusws.Cargo.lockdrops onlytracingfromtowerandlogfromtracing, as expected.- Error-propagation refactors: the
?calls inapi.rs,logs.rs,mcp.rs,migration.rs,sites.rs,store.rsandtoken_writes.rsare split into a separate statement. The behaviour is the same. The aim is to keep coverage from counting error-path regions as unrun. - Test logging:
tests/common/mod.rsinstalls a sinktracingsubscriber once.tracingandtracing-subscriberare already dependencies of the crate.
Please add a line to the body about these, since a reader of "CI and the image build on Rust 1.100" wouldn't expect them. That is not a blocker.
At this commit check passed, and docs, web and lexicons passed or were skipped. test and e2e were still running when I looked. I haven't seen the 100% coverage gate pass. Please confirm it when test finishes, because it's the check most likely to be affected by these changes. Per the body, the image build is first tried by deploy after merge.
The pull still approves at cf4a92c. All checks pass at this head: check, test (the coverage gate), e2e and docs. web and lexicons were skipped. That answers my earlier request to confirm the gate. The body now also describes the axum, ? and test-subscriber changes I asked it to add.
Since f3bc33f, the pull adds tests for the paths 1.100's coverage counts as untaken. It also removes two branches that can't happen, and updates AGENTS.md.
- Removed branches:
group_view_basicnow expects the group's address, asgroup_handle.rsandsites.rsalready do.profile_viewandmergebecameshow_profile, which writes into the view directly. A group's view is always an object, so nothing is lost. - Tests: each new test takes the path it is named for, with the assertion that path needs. The test helper
drop_profileand themcpno-state cases both look right. commands.rsstep: the change matches the body's "Shortcomings" note, andtests/import.rsstill covers the refusal.
Nothing needs to change. As the body says, the image build on 1.100 is first tried by deploy after merge.
7 passed
What changes
CI and the image build on Rust 1.100, up from 1.98.
check,testande2erun onrust:1.100, each withRUSTUP_TOOLCHAIN: "1.100.0". Without that, the cached/usr/local/rustupkeeps the default of the first image that filled it, and runs would still build with 1.98. The image's Rust stage isrust:1.100-bookworm(docs/deploying.md). Before measuring coverage,testdeletestarget/llvm-cov-target/debug/deps: Cargo 1.100 builds test binaries underdebug/build/, so the ones the cache kept indebug/depsare stale.The coverage gate stays at 100%. On Linux, Rust 1.100's coverage counts paths 1.98 didn't: 58 lines and 1 function. Every test passed. Each kind is fixed at its cause:
tower-logturns on tracing'slogfeature, which writes each event's fields a second time, for thelogcrate. 1.100 counted that never-taken copy, so fields of events that were logged (tests/serve.rsreads "serving" back) showed as never run. axum is now its defaults minustower-log; nothing here reads thelogcrate.tests/commonnow installs one, writing everygroup_hostevent into nothing.?alone on a line, after a call no test makes fail. The value is bound first, as AGENTS.md already says (api.rs,logs.rs,mcp.rs,migration.rs,sites.rs,store.rs,token_writes.rs).}of anifwith noelsenow counts as the path where it doesn't hold. Tests take each such path:displayName, or no profile;state, and anhttpsredirect URI;group_handle.rsandsites.rsalreadyexpectone), and a group's view and its profile's view are always objects, somergegoes.AGENTS.md says what 1.100's coverage counts: the
}of anifwith noelse, counted on CI's Linux toolchain and not on the Mac's; and a function built more than once, counted by the most lines a single build of it runs.Why
To keep up with stable, so that CI checks what
justruns locally (stable, 1.100), without lowering the gate.How it was checked
e3e9318: every check passes, andtestreports 100% of lines and functions.rust:1.100containers (the Mac toolchain doesn't show these):}of anifwith noelse, and the?alone on a line, each in a small crate;cargo llvm-cov report --jsonover the suite.Shortcomings
The image's build on 1.100 is first tried by
deploy, after merge. One step inopensocial/tests/commands.rschanged. It used to check that importing an account with no address is refused when its own name is taken here. It now imports with no address first, then again under another address. The refusal itself is still tested intests/import.rs, and the command's "can't move here" message by another step of the same test.