Commit graph Idunn/.github/workflows
Author SHA1 Message Date
Meta Vens
1f68cff9a5 Fix R-I26: turn host_actuator.rs's never_loop into a real if, restore --all-targets
The answerer thread's `while let Some(frame) = client.receive_once()? { ...;
return Ok(()); }` always returns on its first (and only reachable) iteration,
so clippy::never_loop was right that it never loops -- the outer `for` is
what actually retries across polls. Rewritten as `if let`.

With that gone, cargo clippy --all-targets has nothing left to scope the
lint workflow around, so .github/workflows/lint.yml runs it again. Test
code is exactly where a disallowed_methods bypass would hide, and it was
the one place the workflow's own lint couldn't reach.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-23 05:48:07 +02:00
Meta Vens
75153b09b1 Drop --all-targets from the lint workflow: it fails on pre-existing,
unrelated code

Measured on Yggdrasil against both this batch and its parent, a46b997:
`cargo clippy --all-targets` already fails on `clippy::never_loop` in
host_actuator.rs's own test code, which this batch never touched and is
not chartered to fix. `cargo clippy` without --all-targets still analyzes
the library crate, which is where frozen_symlink_port and every other
disallowed-method call site actually live, so R-I23's coverage is
unaffected; only test-only code outside the lib goes unchecked by this
job.

Also verified directly on Yggdrasil: with this scoping, `cargo clippy
--all-features -- -D clippy::disallowed_methods` passes clean on
c667171, and fails as intended when Soul's exact bypass spellings are
reintroduced (`candidate.canonicalize()?` and `fs::canonicalize(&candidate)?`
at drivers.rs:6219, and `fs::read_link(symlink_path)?` in
open_frozen_symlink_frame) -- each one reported as
"use of a disallowed method" pointing at the port, not silently passing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-23 05:21:43 +02:00
Meta Vens
43dc318f12 Land R-I23 of Cut 1's eighth fix batch: make the resolver's bypass a
compile error

Soul pass 8 proved the FrozenSymlinkFs port (R-I14) was an honour system
one level up from the counter it replaced: restoring the S5-1 cubic bug
as `candidate.canonicalize()?` in resolve_frozen_source_symlink's Normal
arm left all 193 tests green, and open_frozen_symlink_frame was still
calling fs::read_link directly, proving the convention leaks.

- Add `read_link` to FrozenSymlinkFs and route open_frozen_symlink_frame
  and validate_frozen_source_symlink's root resolution through it.
- Move every function the resolver can reach into a `frozen_symlink_port`
  submodule with `#![deny(clippy::disallowed_methods)]`; drivers.rs
  blanket-allows the lint at the top of the file since most of the crate
  has legitimate, unrelated reasons to call these methods (host.rs and
  provisioning.rs get the same blanket allow). Everything the module
  exports is re-exported so every existing caller and test keeps its
  bare name.
- Add clippy.toml listing Path::canonicalize, fs::canonicalize,
  fs::symlink_metadata and fs::read_link as disallowed, each with a
  reason pointing at the port.
- Add .github/workflows/lint.yml: this repo had no CI surface at all
  before this batch, so "denied in CI" had nowhere to attach.
- Update validate_frozen_source_symlinks_resolves_a_long_component_chain_
  with_a_linear_call_count's formula and doc: read_link and the
  now-ported root canonicalize add two calls per resolution
  (components + 4, not + 2), and the doc no longer claims the count
  can't catch its own regression -- R-I23 is what catches it now (R-I24).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-23 05:14:32 +02:00