Repository navigation
fix(tests): align the remaining suite with fork behavior - #4
Merged
Merged
Conversation
Cloud removal in befae99 retired entity tag 7. Remove only those records from the pinned frames and preserve surviving fixture values and wire tags. [skip ci]
befae99 removed the cloud marker and moved the AI key to index 6. Keep the ciphertext leak assertions and decrypted round-trip control intact. [skip ci]
3c61c67 added a Behavior row above Appearance. Measure the font weight picker at label_y + 45 and scroll the theme gallery card into view, retaining all assertions. [skip ci]
7f1c36d removed the vault-password and lock cards. Click the measured Privacy switch at y 118 while retaining all masking and session override checks. [skip ci]
7f1c36d replaced the Personal vault chip with the icon-only Home tab. Exercise macro bar membership and tab double-click settings through that current control. [skip ci]
7f1c36d narrowed the leading Home tab. RTL targets move right, while the overflow tail and reserved drag handle stay anchored to the trailing chrome. Keep every order and menu assertion. [skip ci]
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.
What and why
Bring the complete test suite into line with the intentional fork changes, without changing production behavior. This builds on PR #3 and includes its two commits, b75d01a and 10302d4. Six new commits address six root causes, rather than grouping fixes by filename.
Cargo tests exercise the Rust code; the .ice scenarios click the real application without opening a window. The inventory found 11 stale failures (3 Rust tests and 8 UI scenarios) and 41 environment-only failures. No application bug remained after reproducing the documented environment.
Baseline before edits: cargo test --locked --workspace --lib --bins --no-fail-fast and cargo test --locked --workspace --no-fail-fast each failed on the same three Rust tests. Full Cargo inventory: 2,988 passed, 3 failed, 52 already ignored. All 113 .ice files were copied into separate case directories and run with separate fresh HOME directories, across the complete 38/38/37 shard membership. Native environment: 65 passed, 48 failed. Bash-only discovery control: 104 passed, 9 failed (8 stale tests and one long-path environmental failure). No repository files changed until both inventories were complete.
Failure inventory
E1 means the local shell environment, not a fork regression: this workstation defaults to fish and exposes bash, fish and zsh. The shell scanner discovers common shells through PATH and opens a picker when there is more than one. The scripts assume bash opens directly.
git blameattributes that behavior to upstream 8e4e81e (picker arm ad26460); there is no responsible fork commit. The unchanged 40 scripts passed with SHELL=/bin/bash and a temporary PATH containing executable symlinks from /usr/bin except fish, zsh and nu. This is a local control matching CI shell discovery, not a claim that Ubuntu CI ran.E2 means the local sandbox path: the long evidence-directory HOME wrapped the file breadcrumb and shifted the fixed-coordinate parent row. Keeping evidence in its long directory but using a separate short fresh /tmp/ossh.XXXXXX HOME made the unchanged script pass. The row-coordinate assumption came from upstream 777e1d3, not a fork change.
wire_golden::every_golden_frame_decodes_back_to_its_messagebefae99a: old golden messages still contained removed CloudProfile tag 7 (InvalidTagEncoding(7)).wire_golden::every_message_encodes_to_its_golden_bytesbefae99a: the golden corpus had 11 entity kinds; the app now has 10, and fixture indices shifted later values.store::tests::portable_hardening::export_blob_contains_no_plaintext_secretsbefae99a: cloud-marker removal moved the AI key to slot 6; the assertion still read slot 7 and panicked.font-weight.ice3c61c673: Macro confirmation shifted the font picker by 52 px; the old clicks left Regular selected.theme-gallery-tags.ice3c61c673: The added Behavior row pushed the active-theme card below the 2000 px viewport.privacy-v2.ice7f1c36d0: Removing vault-password and lock cards moved Privacy from y 450 to y 118.snippet-bar.ice7f1c36d0: The Personal vault chip was removed; it was still the route back home.tab-double-click.ice7f1c36d0: The Personal vault chip was removed; the settings flow still clicked it.tab-bar-drag-handle.ice7f1c36d0: An incorrect 74 px test adjustment moved the pointer from the fixed trailing handle onto a tab.tab-drag-slide.ice7f1c36d0: Overflow targets were incorrectly shifted left with the leading Home tab; the tail stays anchored to trailing chrome.tab-drag-slide-rtl.ice7f1c36d0: The narrower Home tab moved RTL chips right by 74 px; the script dragged gamma instead of beta.clipboard-paths.iceclipboard is "HELLO_CLIP".history-suggest.iceexpect "From this host's history".hosts-connect-new-window-chord.iceexpect "bash (default)".mcp-sudo-dialog.iceexpect "Allow sudo with the stored password?".mcp-sudo-dialog-queue.iceexpect "Allow sudo with the stored password?".new-window-menu-entries.iceclick right "bash (default)".osc8-hyperlinks.iceexpect "https://example.com".pane-drag.iceexpect "bash (default) (exited)".pane-end-card.iceexpect "Session ended".pane-header.iceexpect "bash (default) (exited)".pane-out-of-grid.iceexpect "bash (default) (exited)".password-suggest.iceexpect "Stored passwords".privacy-version-strings.iceexpect "● bash (default)".reopen-closed-tab.iceexpect "bash (default)".restore-tabs-connect.iceexpect "bash (default)".restore-tabs-on-launch.iceexpect "bash (default)".sftp-tab-move-windows.iceclick "Move to New Window".shortcuts-unbound-verbs.iceexpect "bash (default)".snippet-actions.iceexpect "bash (default)".snippet-paste-clipboard.iceexpect "bash (default)".tab-bar-menu.iceexpect "bash (default)".tab-drag-dock.iceclick right "bash (default)".tab-drag-slide-side.iceclick right "bash (default)".tab-drag-split.iceexpect "Close this group?".tab-drag-whole-window.iceclick right "bash (default)".tab-duplicate-hotkey.iceabsent "Create host".tab-group-close-confirm.iceexpect "Split side by side".tab-move-windows.iceclick right "bash (default)".tab-switch-order.iceabsent "Terminal Settings".tab-tear-off.iceclick right "bash (default)".tag-bubbles.iceexpect "bash (default)".terminal-broadcast.iceexpect "Split side by side".terminal-context-menu-key.iceexpect "bash (default)".terminal-copy-last-command.iceexpect "bash (default)".terminal-copy-screen.iceexpect "bash (default)".terminal-pinch-zoom.iceexpect "Zoomed to 17 for this session".terminal-save-output.iceexpect "bash (default)".terminal-search.iceexpect "Find in buffer".window-close-first.iceclick right "bash (default)".window-home-and-close.iceclick right "bash (default)".files-double-click.ice777e1d38, upstream): long sandbox paths wrap the breadcrumb and move the fixed-coordinate parent row.Verification
cargo check --locked --workspacecargo clippy --locked --workspace --all-targets -- -D warningscargo test --locked --workspace --no-fail-fastcargo build --locked -p obsidianssh-app --features harness.icefile individually, using the invocation belowGIT_MASTER=1 git diff main...HEAD --checkActual final all-case driver command:
That driver runs four independent processes at a time; each receives an unchanged copy of one original scenario and its own short fresh HOME. It records every exit code and returns failure if any scenario fails. The equivalent serial reproduction below does not stop at the first failure.
The 52 ignored Rust tests were already ignored on the baseline. This PR adds no ignore/skip flags, removes no test functions, and changes none of the 68 assertions in the eight repaired .ice files. The only retired cases are CloudProfile records in the saved wire examples, removed deliberately in befae99.
Mutation controls: changing the retained PortForwardRule wire tag from 8 to 7 made both golden tests fail (including InvalidTagEncoding(8)); deliberately corrupting the AI key during export made the repaired secrecy test fail on the exact imported value. Both production mutations were restored before final checks. Screenshots were inspected for the selected font and warning, masked terminal content, and RTL drag order.
Review: the two Rust files remain test owners (wire-format examples and export secrecy). No production interfaces, trust boundaries, enum dispatch, escape hatches, defensive checks, one-use helpers, parameter lists, negative names, or logging were introduced. The corrected tests reject mutated protocol tags and corrupted exported keys. All 68 assertions in the eight edited UI scenarios are byte-for-byte unchanged. wire_golden.rs has 137 nonblank/noncomment lines. portable_hardening.rs already has 613; its single-line index correction adds no lines, and splitting that unrelated test module is outside this repair.
Independent reviewer spawning is unavailable in this nested session; the implementation review and QA above were performed directly. Editor LSP requests timed out; the compiler and strict Clippy checks both completed successfully.
Local logs and individual results:
/tmp/obsidianssh-remaining-evidence/. Each final-e2e case has run.log, result.tsv, and home-path pointing to its screenshots. No logs, screenshots, temporary scripts, secrets, tokens or personal data were added to the repository. The complete final diff, including inherited PR #3 changes, was reviewed before pushing.Checklist
cargo check --workspace,cargo test --workspace --lib --binsandcargo clippy --workspace --all-targets -- -D warningspass locally (locked full workspace tests include all unit and binary tests).cargo test --locked --workspacepasses if aCargo.tomlorCargo.lockchanged (not applicable; neither changed; the command passed anyway).i18n::t("key"), with the key added to all 23 language modules (not applicable; no new strings).cargo fmt --allor broad formatting was run.No
run-cilabel or workflow dispatch is requested. Each new commit includes[skip ci], including HEAD, so opening this PR also suppresses the otherwise automatic pull_request CodeQL workflow. Verification was local; no GitHub Actions runners were used.