Repository navigation
Remove two tests that could not fail and tighten a third - #4747
Merged
Merged
Conversation
- test_promote_swap_ignores_require_include passed `--config-set step.copy-ignored.require-include=true`, but that config key never landed (#3196 shipped only the `--require-include` flag), and handle_promote never reads copy-ignored config. It only proved an unknown --config-set key doesn't break promote. - test_switch_with_skip_prompt_flag ran without a TTY, where prompt_shell_integration never prompts whatever the flag says. The PTY test test_no_prompt_after_first_prompt covers the flag. - test_switch_with_active_shell_integration_no_prompt asserted the prompt text was absent, which also holds without a TTY regardless. It now asserts the `wt config shell install` hint is absent, which a non-TTY switch without the CD file does print. Also corrects a promote test comment: the leftover-staging check runs before ignored-file discovery, so stage_ignored is never reached there.
worktrunk-bot
commented
Nov 9, 2026
worktrunk-bot
left a comment
Collaborator
Author
There was a problem hiding this comment.
The only red check, affected tests (macos, advisory), comes from test_remove_ctrl_c_caught_by_hook_stops_batch::case_1_exit_130 hanging after SIGINT (wt did not finish). This PR only changes tests in other files, so it does not cause that failure. It is tracked as a flake in #4748.
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.
Removes two integration tests that couldn't fail and tightens a third so its assertion can.
test_promote_swap_ignores_require_include(removed): it set--config-set step.copy-ignored.require-include=true, but that config key doesn't exist. feat(step): add require-include option + CLI flags to copy-ignored #3196's commit message describes a config setting, but the merged diff only added the--require-includeflag (CopyIgnoredConfighas justexclude), andhandle_promotenever reads copy-ignored config at all. The test only showed that an unknown--config-setkey doesn't break promote.test_switch_with_skip_prompt_flag(removed): it runs through.output(), so there is no TTY, andprompt_shell_integrationnever prompts without one regardless ofskip-shell-integration-prompt. The flag's real effect is covered by the PTY testtest_no_prompt_after_first_prompt.test_switch_with_active_shell_integration_no_prompt(tightened): it asserted "Install shell integration" was absent, which is true of any non-TTY run. It now asserts thewt config shell installhint is absent. A non-TTY switch without the CD file prints that hint (test_switch_non_tty_shows_hint), so the assertion now fails if active integration stops suppressing the hint.A comment in
test_promote_stale_staging_blocks_with_guidancealso said the ignored files were needed "so stage_ignored is actually called". That's wrong:check_leftover_stagingbails before ignored-file discovery.cargo test --test integration -- shell_integration_prompt step_promote: 44 passed locally.