Repository navigation
docs(test): unstale the #1470 attic test's comments - #1491
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 SummarySummary by CodeRabbit
WalkthroughThe pull request updates documentation in the attic narinfo URL compression test. It explains the fixed compression-resolution behavior, identifies the reported content-level zstd case, and documents the skipped transport-level zstd gap. ChangesCompression test documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This updates test documentation for compression behavior and the known skipped transport-level case without changing production or test behavior. No current merge-readiness risk remains. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
The transport-level subtest's skip pointed at "follow-up change, see #1470". Both references are now dead: #1470 is closed (the reporter was on the content-level variant and v0.10.0-rc17 fixed them), and the follow-up PR was deliberately dropped once that variant was ruled out as their failure mode. A reader hitting the skip today is sent to a closed issue and a PR that never existed, and cannot tell whether the test is waiting on something in flight. Restate it as what it actually is: a standing description of an open gap with no fix planned. The gap itself is unchanged and still real — upstream.GetNar always sends Accept-Encoding: zstd and blind-strips any Content-Encoding: zstd, so an upstream applying zstd at the transport level over an uncompressed body leaves ncps holding a raw NAR. The comment now records why that is ncps-specific (ncps always advertises zstd; nix's curl often is not built with it, so a proxy may compress for ncps alone), that no real upstream has been observed doing it, and exactly what would close it and let the skip be deleted. The header comment had gone stale the same way: it described the pre-fix behaviour in the present tense and cited a code comment that the fix itself rewrote. Reworded to past tense, and the drifting cache.go line number dropped. Comments only; no test or production behaviour changes. Co-Authored-By: Claude Opus 5 <[email protected]>
8b2b409 to
395d773
Compare
Summary
Comment-only cleanup left behind by #1474. No test or production behaviour changes.
The transport-level subtest in
pkg/cache/attic_narinfo_url_compression_test.goskips with:Both references are now dead:
So a reader hitting this skip today is pointed at a closed issue and a PR that does not exist, and cannot tell whether the test is blocked on something in flight. That is the only thing wrong here.
What changed
The skip is restated as what it actually is — a standing description of an open gap with no fix planned. The gap itself is unchanged and still real:
upstream.GetNarunconditionally sendsAccept-Encoding: zstdand blind-strips anyContent-Encoding: zstd, so an upstream applying zstd at the transport level over an uncompressed body leaves ncps holding a raw NAR, which it stores and serves under a.nar.zstkey while the narinfo advertisesCompression: zstd.The comment now also records what was learned while diagnosing #1470 and was not written down anywhere:
pkg/cache/upstream), after which the subtest should pass with no edit and the skip can be deleted.The header comment had gone stale the same way. It described the pre-fix behaviour in the present tense ("ncps derives a NAR's compression exclusively from the URL's file extension… and never reconciles") and cited a
cache.gocomment that #1474 itself rewrote. Reworded to past tense as the bug the test guards against, and the driftingcache.go:4368line reference dropped.Alternative considered
Deleting the transport-level subtest outright. Kept instead because it encodes a real, code-verified gap and is the ready-made failing test if anyone ever hits it — but deletion is defensible if you would rather not carry a permanently-skipped case. Happy to switch.
Test plan
task fmt,task lint(0 issues),task test— all greenTestAtticNarInfoURLWithoutCompressionExtension: content-level subtest PASS, transport-level SKIP (unchanged)