Fail or warn on duplicated key during generation #1151
ci.yml
on: pull_request
ruby-versions
/
Generate Ruby versions
3s
Ruby memcheck
1m 55s
Matrix: host
Annotations
29 errors and 10 notices
|
macos-14 jruby
Process completed with exit code 1.
|
|
Error:
test/json/json_generator_test.rb#L222
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/Users/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/Users/runner/work/json/json/test/json/json_generator_test.rb:222:in 'test_state_defaults'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L404
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/Users/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/Users/runner/work/json/json/test/json/json_generator_test.rb:404:in 'test_json_state_to_h_roundtrip'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L385
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/Users/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/Users/runner/work/json/json/test/json/json_generator_test.rb:385:in 'test_hash_likeness_set_symbol'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L397
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/Users/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/Users/runner/work/json/json/test/json/json_generator_test.rb:397:in 'test_hash_likeness_set_string'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
macos-latest truffleruby-head
Process completed with exit code 1.
|
|
Failure:
test/json/json_generator_test.rb#L404
<{:allow_nan=>false,
:array_nl=>"",
:as_json=>false,
:ascii_only=>false,
:buffer_initial_length=>1024,
:depth=>0,
:indent=>"",
:max_nesting=>100,
:object_nl=>"",
:script_safe=>false,
:space=>"",
:space_before=>"",
:strict=>false}> expected but was
<{:allow_duplicate_key=>nil,
:allow_nan=>false,
:array_nl=>"",
:as_json=>false,
:ascii_only=>false,
:buffer_initial_length=>1024,
:depth=>0,
:indent=>"",
:max_nesting=>100,
:object_nl=>"",
:script_safe=>false,
:space=>"",
:space_before=>"",
:strict=>false}>.
diff:
+ {:allow_duplicate_key=>nil,
- {:allow_nan=>false,
? ^
+ :allow_nan=>false,
? ^
:array_nl=>"",
:as_json=>false,
:ascii_only=>false,
:buffer_initial_length=>1024,
:depth=>0,
:indent=>"",
:max_nesting=>100,
:object_nl=>"",
:script_safe=>false,
:space=>"",
:space_before=>"",
:strict=>false}
|
|
macos-14 jruby-head
Process completed with exit code 1.
|
|
Error:
test/json/json_generator_test.rb#L222
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/Users/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/Users/runner/work/json/json/test/json/json_generator_test.rb:222:in 'test_state_defaults'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L404
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/Users/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/Users/runner/work/json/json/test/json/json_generator_test.rb:404:in 'test_json_state_to_h_roundtrip'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L385
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/Users/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/Users/runner/work/json/json/test/json/json_generator_test.rb:385:in 'test_hash_likeness_set_symbol'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L397
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/Users/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/Users/runner/work/json/json/test/json/json_generator_test.rb:397:in 'test_hash_likeness_set_string'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
ubuntu-latest truffleruby-head
Process completed with exit code 1.
|
|
Failure:
test/json/json_generator_test.rb#L404
<{:allow_nan=>false,
:array_nl=>"",
:as_json=>false,
:ascii_only=>false,
:buffer_initial_length=>1024,
:depth=>0,
:indent=>"",
:max_nesting=>100,
:object_nl=>"",
:script_safe=>false,
:space=>"",
:space_before=>"",
:strict=>false}> expected but was
<{:allow_duplicate_key=>nil,
:allow_nan=>false,
:array_nl=>"",
:as_json=>false,
:ascii_only=>false,
:buffer_initial_length=>1024,
:depth=>0,
:indent=>"",
:max_nesting=>100,
:object_nl=>"",
:script_safe=>false,
:space=>"",
:space_before=>"",
:strict=>false}>.
diff:
+ {:allow_duplicate_key=>nil,
- {:allow_nan=>false,
? ^
+ :allow_nan=>false,
? ^
:array_nl=>"",
:as_json=>false,
:ascii_only=>false,
:buffer_initial_length=>1024,
:depth=>0,
:indent=>"",
:max_nesting=>100,
:object_nl=>"",
:script_safe=>false,
:space=>"",
:space_before=>"",
:strict=>false}
|
|
ubuntu-latest jruby-head
Process completed with exit code 1.
|
|
Error:
test/json/json_generator_test.rb#L222
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:222:in 'test_state_defaults'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L404
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:404:in 'test_json_state_to_h_roundtrip'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L385
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:385:in 'test_hash_likeness_set_symbol'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L397
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:397:in 'test_hash_likeness_set_string'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
ubuntu-latest jruby
Process completed with exit code 1.
|
|
Error:
test/json/json_generator_test.rb#L222
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:222:in 'test_state_defaults'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L404
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:404:in 'test_json_state_to_h_roundtrip'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L385
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:385:in 'test_hash_likeness_set_symbol'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
Error:
test/json/json_generator_test.rb#L397
NoMethodError: undefined method 'allow_duplicate_key?' for an instance of JSON::Ext::Generator::State
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in 'to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:397:in 'test_hash_likeness_set_string'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyArray.java:2088:in 'each'
org/jruby/RubyKernel.java:1397:in 'catch'
org/jruby/RubyKernel.java:1392:in 'catch'
|
|
ubuntu-latest jruby-9.4
Process completed with exit code 1.
|
|
Error:
test/json/json_generator_test.rb#L222
NoMethodError: undefined method `allow_duplicate_key?' for #<JSON::Ext::Generator::State:0x38cf4497>
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in `to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:222:in `test_state_defaults'
org/jruby/RubyKernel.java:1426:in `catch'
org/jruby/RubyKernel.java:1421:in `catch'
org/jruby/RubyArray.java:2009:in `each'
org/jruby/RubyArray.java:2009:in `each'
org/jruby/RubyKernel.java:1426:in `catch'
org/jruby/RubyKernel.java:1421:in `catch'
|
|
Error:
test/json/json_generator_test.rb#L404
NoMethodError: undefined method `allow_duplicate_key?' for #<JSON::Ext::Generator::State:0x3d59933>
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in `to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:404:in `test_json_state_to_h_roundtrip'
org/jruby/RubyKernel.java:1426:in `catch'
org/jruby/RubyKernel.java:1421:in `catch'
org/jruby/RubyArray.java:2009:in `each'
org/jruby/RubyArray.java:2009:in `each'
org/jruby/RubyKernel.java:1426:in `catch'
org/jruby/RubyKernel.java:1421:in `catch'
|
|
Error:
test/json/json_generator_test.rb#L385
NoMethodError: undefined method `allow_duplicate_key?' for #<JSON::Ext::Generator::State:0x30e2016a @foo=:bar>
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in `to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:385:in `test_hash_likeness_set_symbol'
org/jruby/RubyKernel.java:1426:in `catch'
org/jruby/RubyKernel.java:1421:in `catch'
org/jruby/RubyArray.java:2009:in `each'
org/jruby/RubyArray.java:2009:in `each'
org/jruby/RubyKernel.java:1426:in `catch'
org/jruby/RubyKernel.java:1421:in `catch'
|
|
Error:
test/json/json_generator_test.rb#L397
NoMethodError: undefined method `allow_duplicate_key?' for #<JSON::Ext::Generator::State:0x478089b6 @foo=:bar>
/home/runner/work/json/json/lib/json/ext/generator/state.rb:71:in `to_h'
/home/runner/work/json/json/test/json/json_generator_test.rb:397:in `test_hash_likeness_set_string'
org/jruby/RubyKernel.java:1426:in `catch'
org/jruby/RubyKernel.java:1421:in `catch'
org/jruby/RubyArray.java:2009:in `each'
org/jruby/RubyArray.java:2009:in `each'
org/jruby/RubyKernel.java:1426:in `catch'
org/jruby/RubyKernel.java:1421:in `catch'
|
|
macos-latest truffleruby-head
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
|
macos-latest truffleruby-head
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
|
windows-latest mswin
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
|
windows-latest head
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
|
windows-latest 3.2
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
|
windows-latest 3.4
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
|
windows-latest 3.0
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
|
windows-latest 3.3
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
|
windows-latest 3.1
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|
|
windows-latest 2.7
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
|