Skip to content

base64 sub test case name may be invalid class name #355

@kou

Description

@kou

https://github.com/apache/arrow/actions/runs/20474733319/job/58837048446?pr=48638#step:11:82

/opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/testcase.rb:575:in `const_set': wrong constant name TEST_QXJyYXlUZXN0OjppbnN0YW5jZSBtZXRob2RzOjojZXF1YWxfYXJyYXk/ (NameError)

          const_set(:"TEST_#{[sub_test_case.name].pack("m").delete("\n=")}", sub_test_case)
          ^^^^^^^^^
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/testcase.rb:575:in `sub_test_case_class'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/testcase.rb:456:in `sub_test_case'
	from /Users/runner/work/arrow/arrow/ruby/red-arrow/test/test-array.rb:67:in `block in <class:ArrayTest>'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/testcase.rb:457:in `class_eval'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/testcase.rb:457:in `sub_test_case'
	from /Users/runner/work/arrow/arrow/ruby/red-arrow/test/test-array.rb:27:in `<class:ArrayTest>'
	from /Users/runner/work/arrow/arrow/ruby/red-arrow/test/test-array.rb:18:in `<top (required)>'
	from /opt/homebrew/Cellar/ruby@3.3/3.3.10/lib/ruby/3.3.0/bundled_gems.rb:69:in `require'
	from /opt/homebrew/Cellar/ruby@3.3/3.3.10/lib/ruby/3.3.0/bundled_gems.rb:69:in `block (2 levels) in replace_require'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:118:in `block in collect_file'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:140:in `add_load_path'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:116:in `collect_file'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:91:in `block in collect_recursive'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:89:in `each'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:89:in `collect_recursive'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:47:in `block (2 levels) in collect'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:44:in `each'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:44:in `block in collect'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:140:in `add_load_path'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/collector/load.rb:38:in `collect'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/autorunner.rb:109:in `block in <class:AutoRunner>'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/autorunner.rb:490:in `run'
	from /opt/homebrew/lib/ruby/gems/3.3.0/gems/test-unit-3.7.4/lib/test/unit/autorunner.rb:69:in `run'
	from test/run-test.rb:71:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions