Repository navigation
fix(tests): align progress and shell integration tests with fork changes - #3
Merged
Merged
Conversation
4 of 8 tasks
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
Fix the two reported failures by bringing their tests into line with intentional fork changes. Application behavior stays the same.
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 fromcrates/obsidianssh-app/src/i18n/mod.rs. All remaining SSH progress messages still have their locale coverage and placeholder checks.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. Updatecrates/obsidianssh-app/tests/e2e/shell-integration-key.icefrom(1340, 2650)to(1340, 2702), measured against its 1400x2800 batch viewport. Copy, rotate, and both disappearance assertions remain in place.Based on current
mainatae690b79(including merged PR #1), rather than the earlierb1a1bf63.Verification
Both reported failures were reproduced locally before edits:
cargo test --locked -p obsidianssh-app --bin obsidianssh i18n::tests::ssh_progressfailed withzh is missing ssh_progress_instance_connect.absent "Copy shell integration snippet".The app has a binary target, so the supplied
--libcommand 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.icefile.Results after the fixes:
cargo test --locked -p obsidianssh-app --bin obsidianssh i18n::tests::ssh_progresscargo build --locked -p obsidianssh-app --features harnesscargo test --locked --workspace --lib --binscargo test --locked -p obsidianssh-terminal -p obsidianssh-vault -p obsidianssh-telnet -p obsidianssh-zmodem --lib --binscargo test --locked -p obsidianssh-zmodem --lib --binscargo clippy --locked --workspace --all-targets -- -D warningscargo check --locked --workspacetarget/debug/obsidianssh --harness-run crates/obsidianssh-app/tests/e2e --harness-shard 2/3 --home "$(mktemp -d /tmp/obsidianssh-shard2.XXXXXX)"clipboard-paths.icefailure--harness-run <single-file-directory> --home <isolated-directory>shell-integration-key.ice; 15 unrelated failures listed belowGIT_MASTER=1 git diff --checkExact single-test command:
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 atssh_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 --allwas 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)) andwire_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 atportable_hardening.rs:302.E2E failures in the exact 38-file shard:
clipboard-paths.ice: expected clipboardHELLO_CLIP, gotseeded.mcp-sudo-dialog-queue.ice: missing sudo confirmation.osc8-hyperlinks.ice: missinghttps://example.com.pane-header.ice: missingbash (default) (exited).password-suggest.ice: missingStored 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: missingbash (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'scase/errors/directory.Checklist
cargo check --workspace,cargo test --workspace --lib --binsandcargo clippy --workspace --all-targets -- -D warningspass locally(check and Clippy pass; unrelated unit failures are listed above)
cargo test --locked --workspacepasses if aCargo.tomlorCargo.lockchanged (not applicable; neither changed)i18n::t("key"), with the keyadded to all 23 language modules (not applicable; no new strings)
into the keynav framework (not applicable)
settings_index.rs(not applicable)// TODOgaps orplaceholder UI
cargo fmt --all)The diff was reviewed for secrets, tokens, and personal data. CI was not requested and the
run-cilabel was not added.