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

[GLib] Test failed with ARROW_EXTRA_ERROR_CONTEXT=ON #45782

Closed
kou opened this issue Mar 14, 2025 · 1 comment
Closed

[GLib] Test failed with ARROW_EXTRA_ERROR_CONTEXT=ON #45782

kou opened this issue Mar 14, 2025 · 1 comment

Comments

@kou
Copy link
Member

kou commented Mar 14, 2025

Describe the bug, including details regarding any error messages, version, and platform.

For example:

Failure: test_invalid(TestRecordBatch::instance methods::#validate_full)
c_glib/test/test-record-batch.rb:260:in 'test_invalid'
     257:         columns = [@uint8_value, @invalid_name_value]
     258:         record_batch = Arrow::RecordBatch.new(@schema, @n_rows, columns)
     259: 
  => 260:         assert_raise(Arrow::Error::Invalid.new(message)) do
     261:           record_batch.validate_full
     262:         end
     263:       end

<Arrow::Error::Invalid(<[record-batch][validate-full]: Invalid: In column 1: Invalid: Invalid UTF8 sequence at string index 0>)> expected but was
<Arrow::Error::Invalid(<[record-batch][validate-full]: Invalid: In column 1: Invalid: Invalid UTF8 sequence at string index 0
cpp/src/arrow/util/bit_block_counter.h:436  visit_not_null(position)
cpp/src/arrow/array/validate.cc:170  ValidateUTF8(data)>)
/tmp/local/lib/ruby/gems/3.5.0+0/gems/gobject-introspection-4.2.7/lib/gobject-introspection/loader.rb:715:in 'GObjectIntrospection::MethodInfo#invoke'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/gobject-introspection-4.2.7/lib/gobject-introspection/loader.rb:715:in 'GObjectIntrospection::Loader::Invoker#invoke'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/gobject-introspection-4.2.7/lib/gobject-introspection/loader.rb:583:in 'Arrow::RecordBatch#validate_full'
c_glib/test/test-record-batch.rb:261:in 'block in test_invalid'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1961:in 'block (2 levels) in Test::Unit::Assertions#_assert_raise'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:55:in 'block in Test::Unit::Assertions#assert_block'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1913:in 'Test::Unit::Assertions#_wrap_assertion'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:54:in 'Test::Unit::Assertions#assert_block'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1959:in 'block in Test::Unit::Assertions#_assert_raise'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1918:in 'Test::Unit::Assertions#_wrap_assertion'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:1945:in 'Test::Unit::Assertions#_assert_raise'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/assertions.rb:287:in 'Test::Unit::Assertions#assert_raise'
c_glib/test/test-record-batch.rb:260:in 'test_invalid'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:896:in 'Test::Unit::TestCase#run_test'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:591:in 'block (2 levels) in Test::Unit::TestCase#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in 'block in Test::Unit::Fixture#create_fixtures_runner'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:276:in 'block in Test::Unit::Fixture#create_fixtures_runner'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:257:in 'Test::Unit::Fixture#run_fixture'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/fixture.rb:292:in 'Test::Unit::Fixture#run_setup'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:589:in 'block in Test::Unit::TestCase#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in 'Kernel#catch'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testcase.rb:588:in 'Test::Unit::TestCase#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in 'Test::Unit::TestSuiteRunner#run_test'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in 'block in Test::Unit::TestSuiteRunner#run_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in 'Array#each'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in 'Test::Unit::TestSuiteRunner#run_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in 'Test::Unit::TestSuiteRunner#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in 'Test::Unit::TestSuite#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in 'Test::Unit::TestSuiteRunner#run_test'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in 'block in Test::Unit::TestSuiteRunner#run_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in 'Array#each'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in 'Test::Unit::TestSuiteRunner#run_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in 'Test::Unit::TestSuiteRunner#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in 'Test::Unit::TestSuite#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in 'Test::Unit::TestSuiteRunner#run_test'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in 'block in Test::Unit::TestSuiteRunner#run_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in 'Array#each'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in 'Test::Unit::TestSuiteRunner#run_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in 'Test::Unit::TestSuiteRunner#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in 'Test::Unit::TestSuite#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:94:in 'Test::Unit::TestSuiteRunner#run_test'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:60:in 'block in Test::Unit::TestSuiteRunner#run_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in 'Array#each'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:59:in 'Test::Unit::TestSuiteRunner#run_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:37:in 'Test::Unit::TestSuiteRunner#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/testsuite.rb:52:in 'Test::Unit::TestSuite#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunnermediator.rb:72:in 'Test::Unit::UI::TestRunnerMediator#run_suite'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunnermediator.rb:49:in 'block (3 levels) in Test::Unit::UI::TestRunnerMediator#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunnermediator.rb:44:in 'Kernel#catch'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunnermediator.rb:44:in 'block (2 levels) in Test::Unit::UI::TestRunnerMediator#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/test-suite-runner.rb:17:in 'Test::Unit::TestSuiteRunner.run_all_tests'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunnermediator.rb:43:in 'block in Test::Unit::UI::TestRunnerMediator#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunnermediator.rb:107:in 'Test::Unit::UI::TestRunnerMediator#with_listener'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunnermediator.rb:42:in 'Test::Unit::UI::TestRunnerMediator#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunner.rb:40:in 'Test::Unit::UI::TestRunner#start_mediator'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunner.rb:25:in 'Test::Unit::UI::TestRunner#start'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/ui/testrunnerutilities.rb:24:in 'Test::Unit::UI::TestRunnerUtilities#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/autorunner.rb:492:in 'block in Test::Unit::AutoRunner#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/autorunner.rb:548:in 'Test::Unit::AutoRunner#change_work_directory'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/autorunner.rb:491:in 'Test::Unit::AutoRunner#run'
/tmp/local/lib/ruby/gems/3.5.0+0/gems/test-unit-3.6.7/lib/test/unit/autorunner.rb:67:in 'Test::Unit::AutoRunner.run'
c_glib/test/run-test.rb:112:in '<main>'

Component(s)

GLib

@kou kou added the Type: bug label Mar 14, 2025
kou added a commit to kou/arrow that referenced this issue Mar 14, 2025
Validation error message may include error context when we build
Apache Arrow C++ with `ARROW_EXTRA_ERROR_CONTEXT=ON`.

We can check only the first line to make tests more stable for build
options.
kou added a commit that referenced this issue Mar 19, 2025
### Rationale for this change

Validation error message may include error context when we build Apache Arrow C++ with `ARROW_EXTRA_ERROR_CONTEXT=ON`.

### What changes are included in this PR?

We can check only the first line to make tests more stable for build options.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: #45782

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
@kou kou added this to the 20.0.0 milestone Mar 19, 2025
@kou
Copy link
Member Author

kou commented Mar 19, 2025

Issue resolved by pull request 45783
#45783

@kou kou closed this as completed Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant