Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test_SyncDefaultGems: Fail when editor run #9365

Merged
merged 1 commit into from Dec 26, 2023

Conversation

sorah
Copy link
Member

@sorah sorah commented Dec 26, 2023

When something went wrong and git launches editor, and a editor chosen was terminal-based, a test run unnoticeably hangs.

As we intend editors not to be ran with --no-edit, GIT_EDITOR should be defaulted to false so let Git command fails when it attempts to start a editor. This allows catching such unintentional behaviour in test suite.

(Note: Prior to Git v2.32.0, git cherry-pick --no-edit doesn't work for conflict resolution. git/git@39edfd5
i.e. Ubuntu 20.04 focal and Debian Bullseye)

When something went wrong and git launches editor, and a editor chosen
was terminal-based, a test run unnoticeably hangs.

As we intend editors not to be run with --no-edit, GIT_EDITOR should be
defaulted to `false` so let Git command fails when it attempts to start a
editor. This allows catching such unintentional behaviour in test suite.

(Note: Prior to Git v2.32.0, git cherry-pick doesn't support --no-edit.
git/git@39edfd5 )
@sorah sorah enabled auto-merge (squash) December 26, 2023 21:20
@sorah sorah disabled auto-merge December 26, 2023 21:20
@sorah sorah enabled auto-merge (squash) December 26, 2023 21:21
@sorah sorah disabled auto-merge December 26, 2023 21:37
@sorah sorah enabled auto-merge (squash) December 26, 2023 21:39
@sorah sorah merged commit fac2536 into ruby:master Dec 26, 2023
94 of 95 checks passed
@sorah sorah deleted the test-sync-default-gems-prohibit-editor branch December 26, 2023 21:43
sorah added a commit to sorah-rbpkg/ruby that referenced this pull request Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant