Skip to content

small improvements - #369

Merged
prusnak merged 2 commits into
masterfrom
small-improvements
Dec 1, 2026
Merged

prusnak merged 2 commits into
masterfrom
small-improvements

Conversation

@prusnak

@prusnak prusnak commented Dec 1, 2026

Copy link
Copy Markdown
Contributor
  • lncli, torify: exec the wrapped commands
  • chore: remove unused Nix bindings and build dependencies

Replace the lncli wrapper shell with the user-switching command and the
torify wrapper shell with Tor’s torify script. This keeps the wrapper PID
when handing off, so signals sent to it reach the invoked command.

Assisted-by: OpenAI Codex (GPT-6)
Remove unused bindings and function arguments across modules, package
helpers, tests and deployment examples. Mark unused positional arguments
with underscores and simplify modules that need no arguments to attribute
sets.

Remove makeWrapper from fetchNodeModules and limit mempool's makeWrapper
dependency to the backend, where it is used. The shared mempool builder
combines package-specific build inputs with the common Node.js and rsync
inputs.

Validated nix flake check --all-systems, shellcheck, the mempool frontend
build and affected scenario evaluations in aarch64-linux Docker. VM
integration tests were not run because KVM is unavailable.

Assisted-by: OpenAI Codex (GPT-6)
@github-actions github-actions Bot added area: ci .github/, test/, dev/ area: docs docs/, README, examples/, SECURITY.md, book.toml, assets area: modules modules/ and pkgs/lib.nix area: packages pkgs/ and flake pins size: M 30–99 changed lines (additions + deletions) labels Dec 1, 2026
@viberaven

Copy link
Copy Markdown
Contributor

Reviewed head 81ba208b2f0a5e0c0d9b524c3ee6a8cd08087f86 against base 7a927c1bacf4d0c0eb4e1ab40c836082a0504c6a.

No actionable findings. I checked the removed bindings and module arguments against their callers, the exec changes in the lncli and torify wrappers, and the mempool build hooks. The backend retains makeWrapper; neither the frontend nor the dependency fetcher uses it.

Validation on x86_64-linux:

  • nix build --no-link .#checks.x86_64-linux.module-config .#checks.x86_64-linux.test-runner .#mempool-backend .#mempool-frontend — passed; the frontend rebuilt successfully.
  • ./test/shellcheck.sh — passed.
  • nix eval --raw .#legacyPackages.x86_64-linux.tests.default.driver.drvPath — passed.

VM integration tests were not run locally. GitHub CI is still in progress, with no failures reported at the time of this review.

@prusnak
prusnak merged commit 701f590 into master Dec 1, 2026
41 checks passed
@prusnak
prusnak deleted the small-improvements branch December 1, 2026 14:05
@seberm seberm added this to the v0.2.2 milestone Dec 1, 2026
seberm added a commit that referenced this pull request Dec 1, 2026
Add a nix-lint flake check that fails on unused bindings and arguments
(deadnix) and on statix lints. The existing check_flake CI job runs it
through `nix flake check`, so ci_gate is unchanged. Both linters are in
`nix develop`. statix.toml disables repeated_keys, because splitting
options across several `services.x = …;` assignments is idiomatic in
NixOS modules.

Fix the current findings, mostly statix autofixes. fetchNodeModules now
passes its runScripts and npmFlags defaults to the derivation; the
build is unchanged. Intentionally unused bindings are marked
`# deadnix: skip`. All test scenarios evaluate to the same systems as
before.

Follow-up to #369
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci .github/, test/, dev/ area: docs docs/, README, examples/, SECURITY.md, book.toml, assets area: modules modules/ and pkgs/lib.nix area: packages pkgs/ and flake pins size: M 30–99 changed lines (additions + deletions)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants