Repository navigation
Remove orphaned pdfium modules and guard against unwired files - #3
Merged
Merged
Conversation
The audit found crates/pdf-engine/src/rendering.rs and fileops.rs were never declared by any `mod`, so 937 lines of pdfium-based code silently bypassed fmt, clippy, and tests. Delete them, add a CI wiring check that fails when a source file is unreachable from its crate root, cache Rust and native build deps, cancel superseded PR runs, and correct the stale README repo claim plus document Print. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Follow-up to the architecture/tech-debt audit of
main(06631b8). Fixes the issues the audit found, without touching any compiled code path.P1 — dead code
crates/pdf-engine/src/rendering.rs(333 lines) andcrates/pdf-engine/src/fileops.rs(604 lines). Neither was ever referenced by amoddeclaration in any commit, so ~937 lines of pdfium-based code silently bypassedcargo fmt,cargo clippy, andcargo test— it references the non-existentpdfium_renderdependency and could never compile.scripts/check-module-wiring.py: walks each crate's module tree fromlib.rs/main.rs, resolves plain and#[path = "..."]moddeclarations, and fails if anysrc/**/*.rsfile is unreachable (or a declared module file is missing). Verified to flag exactly these two orphans before deletion (exit 1) and to pass afterwards (pdf-engine 14, pdfree 14, viewer-core 9 — all reachable, exit 0).P2 — CI
In
.github/workflows/ci.yml:Swatinem/rust-cache@v2(with.toolsincache-directories) to stop rebuilding native deps from scratch every run.concurrencygroup cancelling superseded PR runs, nevermainpushes.P3 — documentation drift
ShellExecuteW "print") but undocumented — added to the README controls paragraph anddocs/feature-matrix.md.docs/architecture.md's "legacy draft APIs remain for compatibility" claim is still true (save_as/rename_and_savestill accept draft annotations; the coordinator rejects them when the journal is active).Backlog
docs/backlog.md: dependency advisory checking (cargo audit/cargo deny) — deliberately not added as a required check in this PR since it can't be verified against the locked graph without a Windows toolchain.Verification limits
Wiring script (before/after),
py_compile, YAML parse, and a repo-wide grep confirming zero remaining references to the deleted files.cargo fmt/clippy/testcould not run in the audit VM (no Rust toolchain, Windows/MSVC-only project) — CI on this PR is the first real compile check, though risk is minimal since no compiled file changed.🤖 Generated with Codebuff
Co-Authored-By: Codebuff noreply@codebuff.com