Skip to content

deps: use zipfast::zipview, drop the archived zipview crate - #849

Merged
xbmc4lyfe merged 1 commit into
mainfrom
zipview-to-zipfast
Dec 5, 2026
Merged

xbmc4lyfe merged 1 commit into
mainfrom
zipview-to-zipfast

Conversation

@xbmc4lyfe

@xbmc4lyfe xbmc4lyfe commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Engineer · project thread

What

  • Removes the zipview git dependency (xbmc4lyfe/zipview rev 2c3d73a0). That repo is archived. zipview now lives in zipfast as crates/zipview and is re-exported as zipfast::zipview.
  • rust/src/unpack.rs and rust/src/streamrepair.rs now use zipfast::zipview;. All other code is unchanged.
  • Bumps zipfast fa031ee7 -> c7ee07db (current main). The commits in between are restart and correctness fixes: ZipCrypto and Deflate mid-member restart, 7zAES-over-Copy restart, RAR history zero-fill, and strict RAR CRC/PPMd.
  • Before this change, Cargo.lock held two zipview copies (the archived one and zipfast's). Now it has one. The old copy lacked later fixes, including 1d8609b "Authenticate full zipview WinZip AES reads".

nntp-rs is untouched (main pins it, now cf5df57 via #851).

graph LR
  A[RustyGet before] --> Z1[zipview 2c3d73a0, archived]
  A --> F1[zipfast fa031ee7] --> Z2[crates/zipview]
  B[RustyGet after] --> F2[zipfast c7ee07db] --> Z3[crates/zipview, used as zipfast::zipview]
Loading

API check

The public API of the old zipview matches zipfast/crates/zipview: ZipReader, ZipIndex, ZipIndexOpener, PasswordCheck, zip64_sizes, and every ZipReadError variant and Display string. The only difference is ZipIndexOpener::finish(mut self) becoming finish(self), which callers cannot see. The ("zipview", "0.1.0") entry in systemhealth.rs still matches Cargo.lock, since zipview stays linked through zipfast.

Validation (head 5bbd04b7ea543fdb9f139b530d9d500a260f1b43, rebased on main 57ba238f)

The rg-farm build farm on m4air is down: rg-farm status reports every builder unreachable (ssh timeout). Linux x86_64 and arm64 are therefore covered by this PR's build workflow. macOS was run locally on Apple silicon:

  • (cd rust && RUSTFLAGS="-D warnings" cargo nextest run --retries 1): Summary [ 75.019s] 2190 tests run: 2190 passed, 8 skipped (no retries)
  • CARGO_BUILD_JOBS=8 just test-daemon 8: All 10 daemon checks passed!
  • Functional (tests/functional/dupefallback/harness.py --target local):
    • [PASS] xpackzip (status=SUCCESS/HEALTH recovered=2 repaired=1 integrity=True)
    • [PASS] xdecomp_zip (status=SUCCESS/HEALTH recovered=2 decompressed_logs=1 integrity=True)
    • xcrypt_encplain was skipped because the Python cryptography module is not installed here.

Review: a clean-room review of this diff came back g2g.

Deployment: this is a dependency-only change. It ships with the next redeploy of :6790, which the coordinator does once the parallel PRs land. This PR does not deploy anything.

🤖 Generated with Claude Code

@xbmc4lyfe xbmc4lyfe self-assigned this Dec 5, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T21:25:11.132484Z 5bbd04b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c8232183b9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread rust/Cargo.toml Resolved
@xbmc4lyfe
xbmc4lyfe force-pushed the zipview-to-zipfast branch 2 times, most recently from 8f052bc to fe3221e Compare December 5, 2026 17:30
xbmc4lyfe added a commit that referenced this pull request Dec 5, 2026
#846, #849)

Rebases the remaining open PRs cleanly onto main (f0fb231, after
#847 landed) with proactive fixes and edge-case hardening:

- #845 (queue-lock-coord): spin-then-park RawLock and event-driven
  coordinator run-loop wait on wait_lock, with SeqCst CAS failure
  ordering on RawLock::try_take for weak memory models.
- #846 (unpack-pacing-queue): yield a paced download's connections to
  other queued downloads while exempting the active unpack volume,
  UnpackPacing / UnpackPacingLag options, listgroups fields, WebUI
  dual-progress badge/tests, plus:
  - site/build.py and site/check.py validation across LAYOUT and
    OPTION_REQUIRES in webui/config.js so every exposed option has an
    options.html anchor;
  - Vale prose fixes in site/content/api.md and settings-processing.md;
  - queuecoord::pick_next_article desired-server exclusion retry and
    deferred apply_pick_yield after connection acquisition, plus
    PostStrategy=sequential exemption for unpack-paced downloads.
- Follow-up fix for #847 (rust/src/articledl.rs): enforce immediate
  MEM_SLOT_TIER <= MEM_TIER clamp on step-down (resetting
  MEM_SLOT_GATE) and fall back to decision.cache_source for source
  attribution.
- #849 (zipview-to-zipfast): switch unpack.rs and streamrepair.rs to
  zipfast::zipview (c7ee07db) and drop the standalone zipview crate.
xbmc4lyfe added a commit that referenced this pull request Dec 5, 2026
zipview moved into zipfast as crates/zipview and is re-exported as
zipfast::zipview. The standalone xbmc4lyfe/zipview repo is archived and
its pinned copy (2c3d73a0) lacked later fixes, including authenticated
full WinZip AES reads. unpack.rs and streamrepair.rs now import
zipfast::zipview, the separate dependency is removed, and zipfast moves
fa031ee7 -> c7ee07db (restart and correctness fixes). One zipview copy
is built instead of two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xbmc4lyfe added a commit that referenced this pull request Dec 5, 2026
zipview moved into zipfast as crates/zipview and is re-exported as
zipfast::zipview. The standalone xbmc4lyfe/zipview repo is archived and
its pinned copy (2c3d73a0) lacked later fixes, including authenticated
full WinZip AES reads. unpack.rs and streamrepair.rs now import
zipfast::zipview, the separate dependency is removed, and zipfast moves
fa031ee7 -> c7ee07db (restart and correctness fixes). One zipview copy
is built instead of two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zipview moved into zipfast as crates/zipview and is re-exported as
zipfast::zipview. The standalone xbmc4lyfe/zipview repo is archived and
its pinned copy (2c3d73a0) lacked later fixes, including authenticated
full WinZip AES reads. unpack.rs and streamrepair.rs now import
zipfast::zipview, the separate dependency is removed, and zipfast moves
fa031ee7 -> c7ee07db (restart and correctness fixes). One zipview copy
is built instead of two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xbmc4lyfe added a commit that referenced this pull request Dec 5, 2026
…ocs fixes

Rebases PR #850 cleanly onto main (57ba238, after #845, #846, #847,
and #851 landed), rolls in PR #849, and includes follow-up hardening
and documentation validation fixes:

- #849 (zipview-to-zipfast): switch unpack.rs and streamrepair.rs to
  zipfast::zipview (c7ee07dbf4c9817bb8d0dbf07684c643932a96e5) and drop
  the standalone archived zipview crate (keeping #851's nntp-rs pin
  cf5df57ac49c6709ddde86f3f7eeff49e032821d; 1 zipview package in
  Cargo.lock).
- #845 follow-up (rust/src/qqueue.rs): use Ordering::SeqCst on
  RawLock::try_take CAS failure so ARM64 / weak memory models keep the
  Dekker store-load pair against unlock().
- #846 follow-up (rust/src/queuecoord.rs, site/, site/content/):
  - Update site/build.py (validate_config_js_options) and site/check.py
    to verify every option in webui/config.js LAYOUT and OPTION_REQUIRES
    has an options.html anchor;
  - Fix Vale Google.Quotes and Google.OxfordComma findings in
    site/content/api.md and site/content/settings-processing.md;
  - Update queuecoord::pick_next_article and Coordinator::run()
    (excluded_nzbs retry, deferred apply_pick_yield after conn_ptr != 0,
    and PostStrategy=sequential exemption for unpack-paced downloads) so
    desired_server_id exhaustion skips to other work or falls back cleanly
    without falsely unpacing the yielding download.
- #847 follow-up (rust/src/articledl.rs): clamp MEM_SLOT_TIER down
  immediately whenever (slot_current as i32) > next_tier (resetting
  MEM_SLOT_GATE) and fall back to decision.cache_source for attribution.
@xbmc4lyfe
xbmc4lyfe merged commit 5bbd04b into main Dec 5, 2026
10 of 11 checks passed
xbmc4lyfe added a commit that referenced this pull request Dec 5, 2026
…s checks (#850)

Applies follow-up hardening, documentation validation, and Vale fixes after #845, #846, #847, and #849 landed in main:

- rust/src/qqueue.rs: use Ordering::SeqCst on RawLock::try_take CAS failure for weak memory models (ARM64).
- rust/src/queuecoord.rs: retry pick_next_article around desired_server_id exhaustion via excluded_nzbs, defer apply_pick_yield until conn_ptr != 0, and exempt unpack-paced downloads during yield_paced pass 1 in sequential_active_priority (with unit test coverage).
- rust/src/articledl.rs: clamp MEM_SLOT_TIER down immediately whenever (slot_current as i32) > next_tier (resetting MEM_SLOT_GATE) and fall back to decision.cache_source for source attribution.
- site/build.py, site/check.py: validate every option in webui/config.js LAYOUT and OPTION_REQUIRES has an options.html anchor.
- site/content/api.md, site/content/settings-processing.md: fix Vale Google.Quotes and Google.OxfordComma findings.

Working history: origin/backup/rollup-pr-845-846-847-849-2a3e0773.
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.

1 participant