Skip to content

Fix a bug that scan_until behaves differently with Regexp and String patterns #412

Fix a bug that scan_until behaves differently with Regexp and String patterns

Fix a bug that scan_until behaves differently with Regexp and String patterns #412

Triggered via pull request February 15, 2025 06:27
Status Failure
Total duration 6m 36s
Artifacts 2

ci.yml

on: pull_request
ruby-versions  /  Generate Ruby versions
4s
ruby-versions / Generate Ruby versions
Matrix: host
Fit to window
Zoom out
Zoom in

Annotations

28 errors
Error: test/strscan/test_stringscanner.rb#L435
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:435:in `test_matched_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L589
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:589:in `test_post_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L545
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:545:in `test_pre_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L435
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:435:in `test_matched_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L589
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:589:in `test_post_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L545
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:545:in `test_pre_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
macos-latest truffleruby
Process completed with exit code 1.
Error: test/strscan/test_stringscanner.rb#L435
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:435:in `test_matched_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L589
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:589:in `test_post_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L545
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:545:in `test_pre_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L435
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:435:in `test_matched_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L589
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:589:in `test_post_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L545
TypeError: wrong argument type String (expected Regexp) /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /Users/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /Users/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:545:in `test_pre_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
macos-latest truffleruby-head
Process completed with exit code 1.
Error: test/strscan/test_stringscanner.rb#L435
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:435:in `test_matched_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L589
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:589:in `test_post_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L545
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:545:in `test_pre_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L435
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:435:in `test_matched_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L589
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:589:in `test_post_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L545
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-24.1.2/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:545:in `test_pre_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
ubuntu-latest truffleruby
Process completed with exit code 1.
Error: test/strscan/test_stringscanner.rb#L435
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:435:in `test_matched_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L589
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:589:in `test_post_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L545
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:545:in `test_pre_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L435
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:435:in `test_matched_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L589
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:589:in `test_post_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Error: test/strscan/test_stringscanner.rb#L545
TypeError: wrong argument type String (expected Regexp) /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:323:in `scan_check_args' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:335:in `scan_internal' /home/runner/.rubies/truffleruby-head/lib/truffle/strscan.rb:248:in `scan_until' /home/runner/work/strscan/strscan/test/strscan/test_stringscanner.rb:545:in `test_pre_match_string' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
ubuntu-latest truffleruby-head
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size Digest
gem-ubuntu-latest-3.3 Expired
20.4 KB
sha256:2344497dc1a15fb88b7593abad5d365136124d604618b6681adfe2e5e56420bc
gem-ubuntu-latest-jruby Expired
13.8 KB
sha256:05c8fe7e9103a90a3e37dcb551d3193909c0d90002f16ddc5d4f7ef049113db6