Skip to content

evidencectl source import: read bounds, discarded results on sealing and cleanup paths, diff on an unaccepted export #873

Description

@jeremi
  1. Read bounds (crates/registry-evidencectl/src/source_import/files.rs and mod.rs): the snapshot reads each project file under the 64 MiB project bound before the aggregate check, the destination check reads up to 512 MiB, and state reads use a 256 MiB bound, while a project file is bounded at 1 MiB and an export at 16 MiB. Bound each read at the size its content can legitimately have.
  2. Five let _ = sites in crates/registry-evidencectl/src/authoring.rs discard the result of set_bundle_modes and fs::set_permissions on the sealing path of compile_local_project_with_target_inputs and in the Drop cleanup of CompiledFixtureProject and the test Fixture. A failed seal should at least be reported.
  3. evidencectl source diff with --target (diff in crates/registry-evidencectl/src/source_cli.rs) runs a not-yet-accepted export's adapter Rhai through the fixtures to produce the comparison. Decide whether diffing should execute the incoming adapter before acceptance, and if so say so in the command's help.

Origin: review of PR #865.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions