Skip to content

fix(tests): repair the tests broken by the #4001 and #4005 merges - #4460

Merged
KuSh merged 2 commits into
rtk-ai:developfrom
KuSh:fix/post-merge-test-isolation
Oct 6, 2026
Merged

KuSh merged 2 commits into
rtk-ai:developfrom
KuSh:fix/post-merge-test-isolation

Conversation

@KuSh

@KuSh KuSh commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

What

develop's CI is red since #4001 and #4005 were merged: each passed on its own branch, but the merge of the two does not.

  • tests/glab_argv_test.rs (fix(glab): tokenize glab args instead of walking them by hand #4005) spawned the binary through CARGO_BIN_EXE_rtk, which the core::test_isolation::tests_that_spawn_rtk_isolate_their_data scan refuses because the child writes to the real ~/.local/share/rtk/. It now goes through common::rtk_command(), which also pins HOME and the data paths, so the test's own HOME and RTK_DB_PATH overrides are dropped.
  • BLOB_HINT in tests/guard_integration_test.rs (refactor(git): tokenize git show's objects instead of walking clusters #4001) still held the hint text from before fix(git): stop show reporting on HEAD and log capping in silence #4117 routed it through rtk proxy. Two git_show_* tests failed on it, and git_show_blob_spec_after_double_dash_is_a_pathspec_not_an_object passed without checking anything, since its negative assertion could never match the old text.
  • The comment on the leading-redirect step-over in split_for_permissions and its row in the segmenter table now say that the operand taken along with the redirect is the one attached to the operator. Comment-only.

No behaviour change in src/.

Test plan

cargo fmt --all -- --check, cargo clippy --all-targets and cargo test --all --no-fail-fast on this branch: 4183 passed, 0 failed. --include-ignored also passes, and the two touched integration files pass under LC_ALL=de_DE.UTF-8.

🤖 Generated with Claude Code

KuSh and others added 2 commits October 5, 2026 23:32
…ew text

glab_argv_test spawned the binary from CARGO_BIN_EXE_rtk, which the
isolation scan refuses; it now goes through common::rtk_command().
BLOB_HINT in guard_integration_test still held the pre-`rtk proxy`
hint, so two git show tests failed and a third passed vacuously.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟢 Risk low

Summary

Fixes CI breakage on develop caused by the merge of #4001 and #4005: glab_argv_test.rs now spawns the binary via common::rtk_command() so it passes the test-isolation scan while still pinning HOME/RTK_DB_PATH, and BLOB_HINT in guard_integration_test.rs is updated to match the rtk proxy git show text introduced by #4117. Also updates a comment and doc table row in split_for_permissions to clarify that the redirect's attached operand is stepped over, with no behavior change.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Analyzed automatically by wshm · This is an automated analysis, not a human review.

@KuSh
KuSh merged commit eb225a1 into rtk-ai:develop Oct 6, 2026
12 checks passed
@KuSh
KuSh deleted the fix/post-merge-test-isolation branch October 6, 2026 10:18
@rtk-release-bot rtk-release-bot Bot mentioned this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants