From: duerst Date: 2022-03-17T01:03:10+00:00 Subject: [ruby-core:107932] [Ruby master Bug#18614] Error (busy loop) inTestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write_to_the_default_gem_home Issue #18614 has been updated by duerst (Martin D��rst). Status changed from Closed to Open @hsbt: I'm very sorry, but this error has resurfaced. Yesterday afternoon, it appeared in about half of the tries of `make check`. This morning, it appeared 5 times in 5 attempts. When I run only the tests in the file, with `make test-all TESTOPTS="-- test/rubygems/test_gem_commands_setup_command.rb"`, the error always appears. There is always a busy loop, taking up a full core. I have to kill the process with ctrl-C, and don't get an error message. I don't remember how I got the `Gem::FilePermissionError` in the initial description. Please tell me anything else I should try. The problem seems to be intermittent and may be local to my setup. ---------------------------------------- Bug #18614: Error (busy loop) in TestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write_to_the_default_gem_home https://bugs.ruby-lang.org/issues/18614#change-96880 * Author: duerst (Martin D��rst) * Status: Open * Priority: Normal * Assignee: hsbt (Hiroshi SHIBATA) * ruby -v: ruby 3.1.0dev (2021-06-03T06:59:33Z master 7e14762159) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- When running `make check`, I get a busy loop in `TestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write_to_the_default_gem_home` every time I try. When excluding this test (by changing the method name to `_test_destdir_flag_does_not_try_to_write_to_the_default_gem_home`), things work as usual (17 errors related to `TestNetHTTPS`/`TestNetHTTPLocalBind`). The relevant file is `test/rubygems/test_gem_commands_setup_command.rb`. When running only that file, I get two failures and two errors. One of the errors says ``` TestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write_to_th 1) Error: TestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write_to_the_default_gem_home: Gem::FilePermissionError: You don't have write permissions for the /home/duerst/14ruby/tmp/test_rubygems_20220308-18434-8gq4j4/gemhome/plugins directory. ``` This is on Windows 10/WSL/Ubuntu 20.04. -- https://bugs.ruby-lang.org/ Unsubscribe: