S048: test file, release notes, packaging fixes, progress
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
bc8f9ae97d
commit
7b00bcbfb9
2 changed files with 61 additions and 10 deletions
|
|
@ -19,12 +19,12 @@ All 206, same size, same type; nodes differ only in mtime (nginx ETag = `"<size
|
|||
When a reply's validators differ from the known ones but the total size is equal: do not fail. Check bytes instead: compare a sample of bytes already on disk with the same range from this reply (the existing `same_bytes` path in fetch.rs ~205; make the sample big enough, e.g. 64 KiB or what is there) before writing. Bytes equal → mark the task's link as a *farm* (validators unreliable): from then on compare size + byte samples only, send no `If-Range` (a Last-Modified `If-Range` makes other nodes answer 200 full), keep the first validators for display. Bytes differ, or size differs → `Changed` as today. A 200 to a range on a farm is `RangeIgnored`, not `Changed`. Also nginx-style ETags that differ only after the size part count as "maybe the same file" (still checked by bytes).
|
||||
|
||||
## Steps
|
||||
- [ ] testserver: a farm mode (several "nodes" with the same bytes but different Last-Modified/ETag picked per request, nginx-style weak ETags), and a liar mode (same size, different bytes) — docs in the lib.rs header
|
||||
- [ ] Engine: the rule above, in probe, parts and resume; the farm flag stored with the task (store migration) so a restart keeps it; parts on a farm still run in parallel
|
||||
- [ ] Tests: farm download with 4 parts completes with the right hash; pause/restart/resume on a farm; liar same-size-different-bytes still fails with Changed and keeps what is there; If-Range not sent on a farm; unit tests for the ETag comparison
|
||||
- [ ] Full workspace suite once (absolute TMPDIR), release build, hidden smoke against testserver farm on a spare port (the user's Medlar 0.1.1 runs on 17616: never stop it)
|
||||
- [ ] `tools/package.sh` (0.1.1, rebuilds dist/), copy the four files to `~/Projects/Medlar/dist/` as well; notes in docs/releases/0.1.1.md
|
||||
- [ ] Test file with Results, PROGRESS, tick INDEX, commit `S048: …`, `git push origin HEAD`
|
||||
- [x] testserver: a farm mode (several "nodes" with the same bytes but different Last-Modified/ETag picked per request, nginx-style weak ETags), and a liar mode (same size, different bytes) — docs in the lib.rs header
|
||||
- [x] Engine: the rule above, in probe, parts and resume; the farm flag stored with the task (store migration) so a restart keeps it; parts on a farm still run in parallel
|
||||
- [x] Tests: farm download with 4 parts completes with the right hash; pause/restart/resume on a farm; liar same-size-different-bytes still fails with Changed and keeps what is there; If-Range not sent on a farm; unit tests for the ETag comparison
|
||||
- [x] Full workspace suite once (absolute TMPDIR), release build, hidden smoke against testserver farm on a spare port (the user's Medlar 0.1.1 runs on 17616: never stop it)
|
||||
- [x] `tools/package.sh` (0.1.1, rebuilds dist/), copy the four files to `~/Projects/Medlar/dist/` as well; notes in docs/releases/0.1.1.md
|
||||
- [x] Test file with Results, PROGRESS, tick INDEX, commit `S048: …`, `git push origin HEAD`
|
||||
|
||||
## Pitfalls
|
||||
Never contact romsgames.net or any real site in tests; testserver only. Never weaken the "two files are never mixed" guarantee.
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ Tracker: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H
|
|||
- [x] [S045](10%20Distribution/S045-installer-arch.md) installer.sh and Arch package
|
||||
- [x] [S046](10%20Distribution/S046-fixes-0.1.1.md) 0.1.1: names from the server, raise on arrival, copy in fields
|
||||
- [ ] [S047](10%20Distribution/S047-close-to-tray-wayland.md) Close to tray that works on Wayland
|
||||
- [ ] [S048](10%20Distribution/S048-server-farms.md) Servers behind a load balancer with different validators
|
||||
- [x] [S048](10%20Distribution/S048-server-farms.md) Servers behind a load balancer with different validators
|
||||
|
||||
## Later (after version 1; not run by /orchestrate)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue