Skip to content

fix(tests): align progress and shell integration tests with fork changes - #3

Merged
ImStillBlue merged 2 commits into
mainfrom
fix/failing-tests
Nov 18, 2026
Merged

ImStillBlue merged 2 commits into
mainfrom
fix/failing-tests

Conversation

@ImStillBlue

Copy link
Copy Markdown
Member

What and why

Fix the two reported failures by bringing their tests into line with intentional fork changes. Application behavior stays the same.

  • Translation coverage: befae99a (feat: drop cloud accounts and the cloud provider plugins) removed EC2 Instance Connect and both of its progress messages from all 23 translation tables, but left those two keys in the coverage test. Remove the retired expectations from crates/obsidianssh-app/src/i18n/mod.rs. All remaining SSH progress messages still have their locale coverage and placeholder checks.
  • Shell integration: 3c61c673 (feat: rename snippets to macros, add tag bubbles and host setup) added the macro confirmation row and hint above the command-history switch. That moved the switch down 52 pixels while the test kept clicking its old position. Update crates/obsidianssh-app/tests/e2e/shell-integration-key.ice from (1340, 2650) to (1340, 2702), measured against its 1400x2800 batch viewport. Copy, rotate, and both disappearance assertions remain in place.

Based on current main at ae690b79 (including merged PR #1), rather than the earlier b1a1bf63.

Verification

Both reported failures were reproduced locally before edits:

  • cargo test --locked -p obsidianssh-app --bin obsidianssh i18n::tests::ssh_progress failed with zh is missing ssh_progress_instance_connect.
  • The unchanged shell integration script failed at absent "Copy shell integration snippet".

The app has a binary target, so the supplied --lib command reports "no library targets found". This harness accepts a directory, so single-test runs use a temporary directory containing an unchanged copy of the relevant .ice file.

Results after the fixes:

Command Result
cargo test --locked -p obsidianssh-app --bin obsidianssh i18n::tests::ssh_progress PASS, 1 test
cargo build --locked -p obsidianssh-app --features harness PASS; built before editing, and the changes affect tests only
Single-test harness command below PASS, all 23 script instructions
cargo test --locked --workspace --lib --bins FAIL on two existing sync fixture tests; app's 1,194 tests all passed
cargo test --locked -p obsidianssh-terminal -p obsidianssh-vault -p obsidianssh-telnet -p obsidianssh-zmodem --lib --bins FAIL on one existing vault test; terminal and telnet passed
cargo test --locked -p obsidianssh-zmodem --lib --bins PASS, 30 tests (run separately because the vault failure stopped the previous command)
cargo clippy --locked --workspace --all-targets -- -D warnings PASS
cargo check --locked --workspace PASS
target/debug/obsidianssh --harness-run crates/obsidianssh-app/tests/e2e --harness-shard 2/3 --home "$(mktemp -d /tmp/obsidianssh-shard2.XXXXXX)" Stops at unrelated clipboard-paths.ice failure
All 38 files belonging to shard 2/3, each run separately through --harness-run <single-file-directory> --home <isolated-directory> 23 PASS, including shell-integration-key.ice; 15 unrelated failures listed below
GIT_MASTER=1 git diff --check PASS

Exact single-test command:

case_dir=$(mktemp -d /tmp/obsidianssh-shell-fixed.XXXXXX)
cp crates/obsidianssh-app/tests/e2e/shell-integration-key.ice "$case_dir/"
target/debug/obsidianssh --harness-run "$case_dir" \
  --home "$(mktemp -d /tmp/obsidianssh-shell-verify.XXXXXX)"

For the broader run, every file was copied into its own temporary directory and invoked with the same harness command and its own sandbox, so an early failure could not hide later tests. The local shell's locale sorts filenames differently from Rust; the three displaced shard files were also run explicitly to complete the exact 38-file shard. A runner deadline interrupted the loop, and the three unfinished cases were resumed separately. The final counts above include all 38 completed outcomes.

The translation test was also checked by temporarily removing {user} from a live Chinese translation: it failed at ssh_progress_authenticated, proving the remaining placeholder check still works. The translation was restored byte for byte and the test passed again.

The existing i18n module has 510 nonblank, noncomment lines; this patch only removes two lines. Both fixes stay in their existing test owners and introduce no production APIs, helpers, dependencies, or translation strings. Formatting is limited to the edited lines; cargo fmt --all was not run.

Existing failures left outside this PR

The sync and vault sources are identical to main. The harness binary was built from unmodified main before either test edit, so the other UI failures also exist independently of these fixes.

Unit tests:

  • obsidianssh-sync: wire_golden::every_golden_frame_decodes_back_to_its_message (InvalidTagEncoding(7)) and wire_golden::every_message_encodes_to_its_golden_bytes (manifest fixture 8 differs).
  • obsidianssh-vault: store::tests::portable_hardening::export_blob_contains_no_plaintext_secrets, panic at portable_hardening.rs:302.
  • Existing ignored tests were left as they were.

E2E failures in the exact 38-file shard:

  • clipboard-paths.ice: expected clipboard HELLO_CLIP, got seeded.
  • mcp-sudo-dialog-queue.ice: missing sudo confirmation.
  • osc8-hyperlinks.ice: missing https://example.com.
  • pane-header.ice: missing bash (default) (exited).
  • password-suggest.ice: missing Stored passwords.
  • privacy-version-strings.ice: missing the connected bash label.
  • restore-tabs-on-launch.ice, snippet-actions.ice, tag-bubbles.ice, terminal-context-menu-key.ice: missing bash (default).
  • tab-double-click.ice: missing bash tab for double-click.
  • tab-drag-slide-side.ice, tab-drag-whole-window.ice, tab-move-windows.ice: missing bash tab for right-click.
  • terminal-pinch-zoom.ice: missing zoom-to-17 feedback.

This workstation has multiple shells, which is a documented difference from CI and can cause shell-driven scripts to encounter a shell picker. The unrelated failures were recorded rather than investigated or changed. Local evidence is under /tmp/obsidianssh-shard2-individual.XKMzhZ/<test>/run.log; failure screenshots are in each test's case/errors/ directory.

Checklist

  • cargo check --workspace, cargo test --workspace --lib --bins and
    cargo clippy --workspace --all-targets -- -D warnings pass locally
    (check and Clippy pass; unrelated unit failures are listed above)
  • cargo test --locked --workspace passes if a Cargo.toml or
    Cargo.lock changed (not applicable; neither changed)
  • New user-facing strings go through i18n::t("key"), with the key
    added to all 23 language modules (not applicable; no new strings)
  • New interactive surfaces (views, modals, menus, row lists) are wired
    into the keynav framework (not applicable)
  • New settings rows have an entry in settings_index.rs (not applicable)
  • Tests land in this PR where they apply; no // TODO gaps or
    placeholder UI
  • Only the files I touched are formatted (no cargo fmt --all)
  • Code comments are in English

The diff was reviewed for secrets, tokens, and personal data. CI was not requested and the run-ci label was not added.

@ImStillBlue
ImStillBlue merged commit 9762cbb into main Nov 18, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant