summaryrefslogtreecommitdiff
path: root/tool/test
AgeCommit message (Collapse)Author
3 hoursCount assertions in child processesHEADmasterNobuyoshi Nakada
Fix up GH-15785.
13 daysExtract 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-31Skip the hang-up test on WindowsNobuyoshi Nakada
2025-12-17test_sync_default_gems.rb: Omit if git is v2.43 or olderTakashi Kokubun
2025-12-17test_commit_email.rb: Ensure #teardown doesn't failTakashi Kokubun
if test is omitted. Follow up c4e090def134f9b109991b74c027648564963763
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-17Skip TestCommitEmail if git is not available.Hiroshi SHIBATA
https://github.com/ruby/actions/actions/runs/19420968008/job/55558315338 ``` 1) Error: TestCommitEmail#test_sendmail_encoding: Test::Unit::ProxyError: No such file or directory - git /home/runner/work/actions/actions/ruby-4.0.0-preview2/lib/open3.rb:534:in 'Kernel#spawn' /home/runner/work/actions/actions/ruby-4.0.0-preview2/lib/open3.rb:534:in 'Open3.popen_run' /home/runner/work/actions/actions/ruby-4.0.0-preview2/lib/open3.rb:379:in 'Open3.popen2' /home/runner/work/actions/actions/ruby-4.0.0-preview2/lib/open3.rb:785:in 'Open3.capture2' /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:89:in 'TestCommitEmail#git' /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:13:in 'block in TestCommitEmail#setup' /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:12:in 'Dir.chdir' /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:12:in 'TestCommitEmail#setup' 2) Error: TestCommitEmail#test_sendmail_encoding: Test::Unit::ProxyError: no implicit conversion of nil into String /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:37:in 'File.unlink' /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:37:in 'TestCommitEmail#teardown' ```
2025-11-13Exclude lib/unicode_normalize from lib/unNobuyoshi Nakada
2025-11-13Use path in tmpdir instead of IO::NULLKazuhiro NISHIYAMA
The path already used in tool/test/test_sync_default_gems.rb . Try to fix errors on Windows. https://github.com/ruby/ruby/actions/runs/19316448613/job/55248700110
2025-11-13Ignore ~/.gitconfigKazuhiro NISHIYAMA
I use `commit.gpgsign=true`, so I want to ignore it in tests.
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-10-29test_commit_email.rb: Clean up temporary filesNobuyoshi Nakada
2025-10-11test_commit_email.rb: Simply use shNobuyoshi Nakada
`env` on macOS resets DYLD environment variables that are needed to run ruby configured with `--enable-load-relative`. Use simple commands instead, and `/bin/sh` that is specified in POSIX is more portable than `/usr/bin/env`.
2025-10-08test_commit_email.rb: Split out as binary for --with-gmpTakashi Kokubun
https://github.com/ruby/ruby/actions/runs/18365998053/job/52318906076
2025-10-08test_commit_email.rb: Stop testing the un-encoded nameTakashi Kokubun
Hoping to work around failures on --with-gmp CI: https://github.com/ruby/ruby/actions/runs/18365603616/job/52317792903
2025-10-08test_commit_email.rb: Test the encoding of commit messagesTakashi Kokubun
2025-10-08test_commit_email.rb: Skip the sendmail test on WindowsTakashi Kokubun
We use only ubuntu-latest on post_push.yml anyway.
2025-10-08test_commit_email.rb: Fix the timezone for commit-email.rbTakashi Kokubun
as well
2025-10-08test_commit_email.rb: Use a fixed timezoneTakashi Kokubun
2025-10-08commit-email.rb: Remove legacy SVN headersTakashi Kokubun
2025-10-08test_commit_email.rb: Remove an unused local variableTakashi Kokubun
2025-10-08test_commit_email.rb: Test the content of an emailTakashi Kokubun
2025-10-08Allow test-tool to use bundled gems in child processes (#14794)Takashi Kokubun
2025-10-08Revert "commit-email.rb: Use base64 instead of nkf"Takashi Kokubun
This reverts commit dbb5972b340f24d9ff4f3996f57439d5a6b3454e. It didn't work, sorry.
2025-10-08commit-email.rb: Use base64 instead of nkfTakashi Kokubun
which makes it more obvious what it's doing.
2025-10-08test_commit_email.rb: Stop printing LoadErrorTakashi Kokubun
on a require attempt
2025-10-08Migrate a test for commit-email.rb (#14784)Takashi Kokubun
from https://github.com/ruby/git.ruby-lang.org/commit/2c4628e489ed00732a5bcde3373d784307c54280. Also drop ostruct from dependencies. We could remove nkf if we use base64, but it's also a bundled gem, so it doesn't really help.
2025-09-17Unset RUBY_CRASH_REPORT in tests that crash on purposeAlan Wu
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
2025-06-18Follow up testunitNobuyoshi Nakada
* Update method names. * Sort shuffled tests by names. Notes: Merged: https://github.com/ruby/ruby/pull/13640
2025-06-18Revert "Temporary pend unknown behavior of parallel tests"Nobuyoshi Nakada
This reverts commit 980f61935f6e8331e0908dc963e60fb727ab4d8c, which seems no longer needed. Notes: Merged: https://github.com/ruby/ruby/pull/13640
2025-03-28Remove test_retry_workersYusuke Endoh
The test fails randomly for unknown reason. https://github.com/ruby/ruby/actions/runs/14121674932/job/39562945096?pr=12993 ``` 1) Error: TestParallel::TestParallel#test_retry_workers: Test::Unit::ProxyError: execution expired (start: 2025-03-28 04:04:10 +0000, end: 2025-03-28 04:05:50 +0000) /home/runner/work/ruby/ruby/src/tool/test/testunit/test_parallel.rb:16:in 'TestParallel.timeout' /home/runner/work/ruby/ruby/src/tool/test/testunit/test_parallel.rb:225:in 'TestParallel::TestParallel#test_retry_workers' ``` Maybe the workers do not respond "quit" request. We no longer use the retry mechanism, so just remove the test. Notes: Merged: https://github.com/ruby/ruby/pull/12993
2025-03-28Try avoiding "invalid byte sequence in UTF-8"Yusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/12993
2025-03-28Report the actual time wated for timeout errors in TestParallelYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/12993
2025-02-27Increase timeout in TestParallel testing to reduce flaky failures (#12822)Naoto Ono
Currently, the following tests are flaky and failing intermittently, so I'm going to increase the timeout to improve stability. ``` 1) Failure: TestParallel::TestParallel#test_hungup [/Users/runner/work/ruby/ruby/src/tool/lib/zombie_hunter.rb:6]: Expected [[42009, #<Process::Status: pid 42009 SIGKILL (signal 9)>]] to be empty. 2) Error: TestParallel::TestParallel#test_hungup: Test::Unit::ProxyError: execution expired /Users/runner/work/ruby/ruby/src/lib/timeout.rb:40:in 'Timeout::Error.handle_timeout' /Users/runner/work/ruby/ruby/src/lib/timeout.rb:194:in 'Timeout.timeout' /Users/runner/work/ruby/ruby/src/tool/test/testunit/test_parallel.rb:210:in 'TestParallel::TestParallel#test_hungup' ``` https://github.com/ruby/ruby/actions/runs/13560087551/job/37901506230#step:14:105 ``` 1) Error: TestParallel::TestParallel#test_retry_workers: Test::Unit::ProxyError: execution expired /Users/runner/work/ruby/ruby/src/lib/timeout.rb:40:in 'Timeout::Error.handle_timeout' /Users/runner/work/ruby/ruby/src/lib/timeout.rb:194:in 'Timeout.timeout' /Users/runner/work/ruby/ruby/src/tool/test/testunit/test_parallel.rb:217:in 'TestParallel::TestParallel#test_retry_workers' ``` https://github.com/ruby/ruby/actions/runs/13559151505/job/37899041580#step:14:106 Notes: Merged-By: ono-max <onoto1998@gmail.com>
2025-02-27[Misc #20661] Stop retrying tests in `make test-all` command by default (#11271)Naoto Ono
[Misc #20661] Stop retrying tests in make test-all command by default Notes: Merged-By: ono-max <onoto1998@gmail.com>
2025-02-13[Feature #21116] Extract RJIT as a third-party gemNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12740
2025-01-24Add `Test::Unit::CoreAssertions#assert_raise_kind_of`Nobuyoshi Nakada
Similar to `Test::Unit::assert_raise`, but allows sub classes too. Notes: Merged: https://github.com/ruby/ruby/pull/12625
2025-01-24Add test for `Test::Unit::CoreAssertions#assert_raise_with_message`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12625
2024-10-29Fix TestParallel#test_hungup when RUBY_TEST_TIMEOUT_SCALE is setPeter Zhu
When RUBY_TEST_TIMEOUT_SCALE is set, the timeout increases by the multiple specified. However, the test in test4test_hungup.rb does not scale, so if RUBY_TEST_TIMEOUT_SCALE is a large number like 10, then the test will not time out causing the tests test to fail. Notes: Merged: https://github.com/ruby/ruby/pull/11959
2024-09-12Accept version rangeNobuyoshi Nakada
Single `Integer` argument means an exact match to the major version. Notes: Merged: https://github.com/ruby/ruby/pull/11604
2024-08-06Dump all-thread backtraces when test parallel worker exceeds time limitYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11315
2024-07-11Removed WEBrick and that testsHiroshi SHIBATA
We can handle uri, time and others without `make test-all` dependencies now.
2024-07-08Move the file location of launchable.rbNaoto Ono
2024-07-08Integrate Launchable into make btestNaoto Ono
2024-05-08Show the caller location of assertion methodsNobuyoshi Nakada
Not only defined in `Test::Unit` or `CoreAssertions`, also show the caller location of assertion methods defined in the current class or ancestors.