summaryrefslogtreecommitdiff
path: root/tool/test/test_sync_default_gems.rb
AgeCommit message (Collapse)Author
2026-01-02Extract git version onlyNobuyoshi Nakada
The version message may contain other info such as the distribution. e.g.: ```console $ /usr/bin/git --version git version 2.50.1 (Apple Git-155) ```
2025-12-17test_sync_default_gems.rb: Omit if git is v2.43 or olderTakashi Kokubun
2025-11-20Omit a test on s390x linux tripping over a git bugAlan Wu
This test has been reliably failing on recent trunk versions. See: <https://github.com/ruby/ruby/actions/runs/19519712433/job/55880266450#step:14:120>
2025-11-13Exclude lib/unicode_normalize from lib/unNobuyoshi Nakada
2025-11-05sync_default_gems.rb: gracefully handle merge commitsKazuki Yamaguchi
Find interesting commits by following parents instead of relying on "git log". If we encounter a merge commit that may contain a conflict resolution, fall back to cherry-picking the merge commit as a whole rather than replaying each individual commit. The sync commit will include a shortlog for the squashed commits in that case.
2025-11-05sync_default_gems.rb: use declarative mapping rulesKazuki Yamaguchi
No behavior change is intended by this change.
2025-11-05sync_default_gems.rb: simplify rewriting commit messageKazuki Yamaguchi
Use "git commit --amend" instead of "git filter-branch" since we only need to handle one commit at HEAD.
2025-09-17Skip `TestSyncWithCommits` on other than particular platformsNobuyoshi Nakada
No one uses `sync_default_gems_with` on other platforms; it is used by the dedicated workflow and a few developers only.
2025-09-17sync_default_gems.rb: Set git configurations for EOL code of logsNobuyoshi Nakada
2025-09-07sync_default_gems.rb: Support `log.showSignature` caseNobuyoshi Nakada
2023-12-26Test_SyncDefaultGems: Fail when editor run (#9365)Sorah Fukumori
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 so currently the test hangs when older Git is in use. https://github.com/git/git/commit/39edfd5cbc4d168db19ec1bc867d78ec7211ec39 i.e. Ubuntu 20.04, Debian Bullseye doesn't satisfy this prerequisite.)
2023-12-15Follow removed conflict filesNobuyoshi Nakada
After editing a conflict, continue without removed files.
2023-11-07Remove files which are newly added but to be ignoredNobuyoshi Nakada
2023-10-04Special treat when the first line ends with a dot [ci skip]Nobuyoshi Nakada
2023-09-20Fix the case of file to be ignored with to be removedNobuyoshi Nakada
The case of 7fc73ab5f6fbe46655855079954b26dcc14576b3, which modified `.gitignore` and `.github/workflows/main.yml`. Both files need to be rejected and restored, but since the latter file was not there before, `git checkout` failed and the former file could not be restored along with it. To fix this failure, restore the ignored files one by one.
2023-09-20Add a successful sync test caseNobuyoshi Nakada
2023-09-18Fix `git cat-file` conditionNobuyoshi Nakada
When multiple files changed in the same directory to be removed, the first file only was removed from changed set.
2023-09-18Refactor test_sync_default_gems.rbNobuyoshi Nakada
2023-08-28sync_default_gems.rb: convert keys of REPOSITORIES to stringsNobuyoshi Nakada
Referencing always after conversion to a symbol, and yielded gem name is always converted to a string.
2023-08-13Prohibit copying to `fixtures` and dot-direcotry just under `test`Nobuyoshi Nakada
Do not add directories which would let chkbuild fires accidentally, to just under `test`. The "fixtures" directory is often used to place test stuffs. Notes: Merged: https://github.com/ruby/ruby/pull/8214
2023-08-06Exclude files added to the toplevelNobuyoshi Nakada
2023-07-29Change `HOME` too when testing sync_default_gems.rbNobuyoshi Nakada
As well as `GIT_CONFIG_GLOBAL`, which is supported since git 2.32.
2023-07-29Revert "Test sync_default_gems.rb only when git 2.32 is available"Nobuyoshi Nakada
This reverts commit b0f44cfa5da53b90817732cb25b4d3a1cddecb89.
2023-07-29Test sync_default_gems.rb only when git 2.32 is availableNobuyoshi Nakada
With older git, as `GIT_CONFIG_GLOBAL` environment variable is not supported, these tests clobber user's configurations.
2023-04-28Support older gitNobuyoshi Nakada
The -b flag is available since 2.28, but Ubuntu 20.04 uses 2.25. Notes: Merged: https://github.com/ruby/ruby/pull/7770
2023-03-28Skip commits only for toolsNobuyoshi Nakada
Get rid of accidents like 67feb782f947046f65951303893713052a19a546. Notes: Merged: https://github.com/ruby/ruby/pull/7601
2022-12-22Fix the case trailer without newlineNobuyoshi Nakada
cf0b413ef8b794ef6e7436f22fd5a998050dada9
2022-11-28Fix the case of multiple trailersNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6820
2022-11-28Add tests for sync_default_gems.rbNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6820