Skip to content

Fail or warn on duplicated key during generation #1150

Fail or warn on duplicated key during generation

Fail or warn on duplicated key during generation #1150

Triggered via pull request August 24, 2025 12:42
Status Failure
Total duration 3m 10s
Artifacts

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

27 errors and 10 notices
macos-latest truffleruby-head
Process completed with exit code 1.
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-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 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:0x4f552aa2> /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:0x6124dda2> /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:0x12608986 @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:0x7b29cdea @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'
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 truffleruby-head
Process completed with exit code 1.
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'
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.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.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.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