WIP: Exercise native hash stream edge cases #532

Draft
erikinkinen wants to merge 2 commits from feature/sha2-owned-stream-vm into feature/shared-development-source-selection
Owner

The initial Exsh text workflow now checks the real Rust hash command against empty, binary and 16 KiB file and inherited-stream inputs. A malformed duplicate-stdin command must return status 2 before a successful reread of the same original file. The existing file authority, success marker and guest time limit are retained.

Related client: erix/sha2-tool#29; source selection: #518.

  • Add exact vectors, refusal/recovery guards and restore the shared input.
  • Add 20 host-side byte/result/status controls and retain the existing pathname/manual controls.
  • Build the matching Rust client and providers into the frozen native image.
  • Demonstrate actual guest execution, grant refusal and complete teardown.

Host controls test the authored oracle; they do not establish guest acceptance. Native packaging and matching-image acceptance remain unfinished.

The initial Exsh text workflow now checks the real Rust hash command against empty, binary and 16 KiB file and inherited-stream inputs. A malformed duplicate-stdin command must return status 2 before a successful reread of the same original file. The existing file authority, success marker and guest time limit are retained. Related client: erix/sha2-tool#29; source selection: #518. - [x] Add exact vectors, refusal/recovery guards and restore the shared input. - [x] Add 20 host-side byte/result/status controls and retain the existing pathname/manual controls. - [ ] Build the matching Rust client and providers into the frozen native image. - [ ] Demonstrate actual guest execution, grant refusal and complete teardown. Host controls test the authored oracle; they do not establish guest acceptance. Native packaging and matching-image acceptance remain unfinished.
Run the existing Rust hash command against exact empty, binary and multibuffer file and inherited-stream inputs. Require malformed stdin selection to fail before a subsequent read of the same file, then restore the shared coreutils input.
docs: Describe stream coverage without assuming buffer capacity
Some checks failed
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 18s
Coreutils provider graph / coreutils (push) Successful in 4m36s
CI / rust (push) Failing after 6m35s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
3970f72660
erikinkinen added this to the Alpha 1 milestone 2026-11-07 19:20:19 +01:00
Some checks failed
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 18s
Coreutils provider graph / coreutils (push) Successful in 4m36s
CI / rust (push) Failing after 6m35s
CI / host_zero (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_three (push) Has been skipped
CI / integration (push) Has been skipped
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/sha2-owned-stream-vm:feature/sha2-owned-stream-vm'
git switch 'feature/sha2-owned-stream-vm'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/shared-development-source-selection'
git merge --no-ff 'feature/sha2-owned-stream-vm'
git switch 'feature/sha2-owned-stream-vm'
git rebase 'feature/shared-development-source-selection'
git switch 'feature/shared-development-source-selection'
git merge --ff-only 'feature/sha2-owned-stream-vm'
git switch 'feature/sha2-owned-stream-vm'
git rebase 'feature/shared-development-source-selection'
git switch 'feature/shared-development-source-selection'
git merge --no-ff 'feature/sha2-owned-stream-vm'
git switch 'feature/shared-development-source-selection'
git merge --squash 'feature/sha2-owned-stream-vm'
git switch 'feature/shared-development-source-selection'
git merge --ff-only 'feature/sha2-owned-stream-vm'
git switch 'feature/shared-development-source-selection'
git merge 'feature/sha2-owned-stream-vm'
git push origin 'feature/shared-development-source-selection'
Sign in to join this conversation.
No description provided.