Skip to content

Revert lib/puppet/resource_api.rb to tag 1.9.0 #211

Revert lib/puppet/resource_api.rb to tag 1.9.0

Revert lib/puppet/resource_api.rb to tag 1.9.0 #211

Triggered via pull request June 5, 2025 11:43
Status Failure
Total duration 15m 13s
Artifacts

ci.yml

on: pull_request
Matrix: linux_tests
Matrix: windows_tests
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 7 warnings
Linux, Puppet 8, Ruby 3.2: spec/acceptance/get_calls_spec.rb#L19
minimizing provider get calls using `puppet apply` with a basic type calls get 2 times Failure/Error: expect(stdout_str).not_to match(/Notice: test_get_calls_basic: Provider get called 2 times/) expected "\e[mNotice: Compiled catalog for fv-az1787-433.s3rmtgfhenmejnzv25jgg3ndea.dx.internal.cloudapp.net i...t_calls_basic: Provider get called 2 times\e[0m\n\e[mNotice: Applied catalog in 0.01 seconds\e[0m\n" not to match /Notice: test_get_calls_basic: Provider get called 2 times/ Diff: @@ -1 +1,6 @@ -/Notice: test_get_calls_basic: Provider get called 2 times/ +�[mNotice: Compiled catalog for fv-az1787-433.s3rmtgfhenmejnzv25jgg3ndea.dx.internal.cloudapp.net in environment production in 0.02 seconds +Info: Using environment 'production' +Info: Applying configuration version '1749123852' +�[mNotice: test_get_calls_basic: Provider get called 1 times +�[mNotice: test_get_calls_basic: Provider get called 2 times +�[mNotice: Applied catalog in 0.01 seconds
Linux, Puppet 8, Ruby 3.2: spec/acceptance/get_calls_spec.rb#L26
minimizing provider get calls using `puppet apply` with a basic type calls get 1 time with resource purging Failure/Error: expect(stdout_str).not_to match(/Notice: test_get_calls_basic: Provider get called 2 times/) expected "\e[mNotice: Compiled catalog for fv-az1787-433.s3rmtgfhenmejnzv25jgg3ndea.dx.internal.cloudapp.net i...t_calls_basic: Provider get called 3 times\e[0m\n\e[mNotice: Applied catalog in 0.01 seconds\e[0m\n" not to match /Notice: test_get_calls_basic: Provider get called 2 times/ Diff: @@ -1 +1,7 @@ -/Notice: test_get_calls_basic: Provider get called 2 times/ +�[mNotice: Compiled catalog for fv-az1787-433.s3rmtgfhenmejnzv25jgg3ndea.dx.internal.cloudapp.net in environment production in 0.03 seconds +Info: Using environment 'production' +�[mNotice: test_get_calls_basic: Provider get called 1 times +Info: Applying configuration version '1749123853' +�[mNotice: test_get_calls_basic: Provider get called 2 times +�[mNotice: test_get_calls_basic: Provider get called 3 times +�[mNotice: Applied catalog in 0.01 seconds
Linux, Puppet 8, Ruby 3.2: spec/acceptance/get_calls_spec.rb#L52
minimizing provider get calls using `puppet apply` with a type using simple_get_filter calls get 1 time when resource purging Failure/Error: expect(stdout_str).not_to match(/Notice: test_get_calls_sgf: Provider get called 2 times/) expected "\e[mNotice: Compiled catalog for fv-az1787-433.s3rmtgfhenmejnzv25jgg3ndea.dx.internal.cloudapp.net i...er get called 3 times with names=[\"bar\"]\e[0m\n\e[mNotice: Applied catalog in 0.01 seconds\e[0m\n" not to match /Notice: test_get_calls_sgf: Provider get called 2 times/ Diff: @@ -1 +1,7 @@ -/Notice: test_get_calls_sgf: Provider get called 2 times/ +�[mNotice: Compiled catalog for fv-az1787-433.s3rmtgfhenmejnzv25jgg3ndea.dx.internal.cloudapp.net in environment production in 0.03 seconds +Info: Using environment 'production' +�[mNotice: test_get_calls_sgf: Provider get called 1 times with names=[] +Info: Applying configuration version '1749123855' +�[mNotice: test_get_calls_sgf: Provider get called 2 times with names=["foo"] +�[mNotice: test_get_calls_sgf: Provider get called 3 times with names=["bar"] +�[mNotice: Applied catalog in 0.01 seconds
Linux, Puppet 8, Ruby 3.2: spec/acceptance/simple_get_filter_spec.rb#L13
exercising simple_get_filter using `puppet resource` when using `get` to access the initial data set does not receive names array Failure/Error: expect(stdout_str.strip).to match(/^test_simple_get_filter \{ 'wibble'/) expected "\e[0;36mDebug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openss... entry for environment :production\e[0m\n\e[0;36mDebug: Deleted text domain :production: false\e[0m" to match /^test_simple_get_filter \{ 'wibble'/ Diff: @@ -1 +1,6 @@ -/^test_simple_get_filter \{ 'wibble'/ +Debug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openssl_version='OpenSSL 3.0.2 15 Mar 2022', openssl_fips=false, default_encoding=UTF-8 +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +Debug: Caching environment :production (ttl = 0 sec) +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false
Linux, Puppet 8, Ruby 3.2: spec/acceptance/simple_get_filter_spec.rb#L23
exercising simple_get_filter using `puppet resource` when using `get` to access a specific resource `puppet resource` uses `instances` and does the filtering Failure/Error: expect(stdout_str.strip).to match(/test_string\s*=>\s*'wibble default'/) expected "\e[0;36mDebug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openss...m\ntest_simple_get_filter { 'wibble': \n ensure => 'present',\n test_string => 'wibble found',\n}" to match /test_string\s*=>\s*'wibble default'/ Diff: @@ -1 +1,11 @@ -/test_string\s*=>\s*'wibble default'/ +Debug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openssl_version='OpenSSL 3.0.2 15 Mar 2022', openssl_fips=false, default_encoding=UTF-8 +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +Debug: Caching environment :production (ttl = 0 sec) +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +Debug: Current State: {:name=>"wibble", :ensure=>"present", :test_string=>"wibble found"} +test_simple_get_filter { 'wibble': + ensure => 'present', + test_string => 'wibble found', +}
Linux, Puppet 8, Ruby 3.2: spec/acceptance/composite_namevar_spec.rb#L35
a type with composite namevars using `puppet resource` returns the match if alternative title_pattern matches Failure/Error: expect(stdout_str.strip).to match(/Looking for nil/) expected "\e[0;36mDebug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openss...{ 'php/gem': \n package => 'php',\n manager => 'gem',\n ensure => 'present',\n value => 'b',\n}" to match /Looking for nil/ Diff: @@ -1 +1,15 @@ -/Looking for nil/ +Debug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openssl_version='OpenSSL 3.0.2 15 Mar 2022', openssl_fips=false, default_encoding=UTF-8 +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +Debug: Caching environment :production (ttl = 0 sec) +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +�[mNotice: composite_namevar: Looking for [] +�[mNotice: composite_namevar: Looking for [{:package=>"php", :manager=>"gem"}] +Debug: Current State: {:title=>"php-gem", :package=>"php", :manager=>"gem", :ensure=>"present", :value=>"b"} +composite_namevar { 'php/gem': + package => 'php', + manager => 'gem', + ensure => 'present', + value => 'b', +}
Linux, Puppet 8, Ruby 3.2: spec/acceptance/composite_namevar_spec.rb#L18
a type with composite namevars using `puppet resource` returns the required resource correctly Failure/Error: expect(stdout_str.strip).to match(/Looking for nil/) expected "\e[0;36mDebug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openss...{ 'php-yum': \n package => 'php',\n manager => 'yum',\n ensure => 'present',\n value => 'a',\n}" to match /Looking for nil/ Diff: @@ -1 +1,14 @@ -/Looking for nil/ +Debug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openssl_version='OpenSSL 3.0.2 15 Mar 2022', openssl_fips=false, default_encoding=UTF-8 +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +Debug: Caching environment :production (ttl = 0 sec) +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +�[mNotice: composite_namevar: Looking for [] +Debug: Current State: {:title=>"php-yum", :package=>"php", :manager=>"yum", :ensure=>"present", :value=>"a"} +composite_namevar { 'php-yum': + package => 'php', + manager => 'yum', + ensure => 'present', + value => 'a', +}
Linux, Puppet 8, Ruby 3.2: spec/acceptance/composite_namevar_spec.rb#L11
a type with composite namevars using `puppet resource` is returns the values correctly Failure/Error: expect(stdout_str.strip).to match(/Looking for nil/) expected "\e[0;36mDebug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openss...{ 'php-yum': \n package => 'php',\n manager => 'yum',\n ensure => 'present',\n value => 'a',\n}" to match /Looking for nil/ Diff: @@ -1 +1,49 @@ -/Looking for nil/ +Debug: Runtime environment: puppet_version=8.10.0, ruby_version=3.2.8, run_mode=user, openssl_version='OpenSSL 3.0.2 15 Mar 2022', openssl_fips=false, default_encoding=UTF-8 +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +Debug: Caching environment :production (ttl = 0 sec) +Debug: Evicting cache entry for environment :production +Debug: Deleted text domain :production: false +�[mNotice: composite_namevar: Looking for [] +Debug: Current State: {:title=>"php-yum", :package=>"php", :manager=>"yum", :ensure=>"present", :value=>"a"} +Debug: Current State: {:title=>"php-gem", :package=>"php", :manager=>"gem", :ensure=>"present", :value=>"b"} +Debug: Current State: {:title=>"mysql-yum", :package=>"mysql", :manager=>"yum", :ensure=>"present", :value=>"c"} +Debug: Current State: {:title=>"mysql-gem", :package=>"mysql", :manager=>"gem", :ensure=>"present", :value=>"d"} +Debug: Current State: {:title=>"foo-bar", :package=>"foo", :manager=>"bar", :ensure=>"present", :value=>"e"} +Debug: Current State: {:title=>"bar-foo", :package=>"bar", :manager=>"foo", :ensure=>"present", :value=>"f"} +composite_namevar { 'bar-foo': + package => 'bar', + manager => 'foo', + ensure => 'present', + value => 'f', +} +composite_namevar { 'foo-bar': + package => 'foo', + manager => 'bar', + ensure => 'present', + value => 'e', +} +composite_namevar { 'mysql-gem': + package => 'mysql', + manager => 'gem', + ensure => 'present', + value => 'd', +} +composite_namevar { 'mysql-yum': + package => 'mysql', + manager => 'yum', + ensure => 'present', + value => 'c', +} +composite_namevar { 'php-gem': + package => 'php', + manager => 'gem', + ensure => 'present', + value => 'b', +} +composite_namevar { 'php-yum': + package => 'php', + manager => 'yum', + ensure => 'present', + value => 'a', +}
Linux, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1662
Puppet::ResourceApi with a provider that does canonicalization the registered type Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x00007f5587ddcfa0>
Linux, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1790
Puppet::ResourceApi with a provider that does canonicalization the registered type when retrieving an instance through `retrieve` an existing instance its name is set correctly Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x00007f5587ddcfa0>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L2237
Puppet::ResourceApi with a `simple_get_filter` provider with the type registered passes through the resource title to `get` Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f625fb7c8>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L2226
Puppet::ResourceApi with a `simple_get_filter` provider with the type registered is seen as a supported feature Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f625fb7c8>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L2231
Puppet::ResourceApi with a `simple_get_filter` provider with the type registered passes through the an empty array to `get` Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f625fb7c8>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1848
Puppet::ResourceApi with a provider that does not need canonicalization the registered type Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f6187df38>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1894
Puppet::ResourceApi with a provider that does not need canonicalization the registered type when retrieving instances returns an array of Type instances Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f6187df38>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1895
Puppet::ResourceApi with a provider that does not need canonicalization the registered type when retrieving instances its name is set correctly Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f6187df38>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1893
Puppet::ResourceApi with a provider that does not need canonicalization the registered type when retrieving instances returns an Array Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f6187df38>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1854
Puppet::ResourceApi with a provider that does not need canonicalization the registered type when manually creating an instance its provider class Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f6187df38>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1868
Puppet::ResourceApi with a provider that does not need canonicalization the registered type when manually creating an instance when flushing with no changes set will not be called Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f6187df38>
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api_spec.rb#L1877
Puppet::ResourceApi with a provider that does not need canonicalization the registered type when manually creating an instance when flushing with a change set will be called with the correct structure Failure/Error: type.rsapi_provider_get_cache.clear NoMethodError: undefined method `rsapi_provider_get_cache' for #<Class:0x0000022f6187df38>
Linux, Puppet 8, Ruby jruby-9.4.2.0: spec/puppet/resource_api/type_definition_spec.rb#L93
Puppet::ResourceApi::TypeDefinition#create_attribute_in when creating an invalid attribute errors cleanly Skipped: Not yet implemented
Linux, Puppet 8, Ruby 3.2: spec/acceptance/multi_device_spec.rb#L39
exercising a type with device-specific providers using `puppet device` applies a catalog successfully Failure/Error: expect(stdout_str).to match(/Compiled catalog for some_node/) expected "\e[mNotice: Compiled catalog for other_node in environment production in 0.04 seconds\e[0m\n\e[0;32m.../cache/devices/other_node/state/state.yaml\e[0m\n\e[mNotice: Applied catalog in 0.01 seconds\e[0m\n" to match /Compiled catalog for some_node/ Diff: @@ -1 +1,9 @@ -/Compiled catalog for some_node/ +�[mNotice: Compiled catalog for other_node in environment production in 0.04 seconds +Info: Using environment 'production' +Info: Applying configuration version '1749123849' +�[mNotice: /Stage[main]/Main/Multi_device[foo]/ensure: defined 'ensure' as 'present' +�[mNotice: multi_device[foo]: Creating: Creating 'foo' with {:name=>"foo", :ensure=>"present"} +�[mNotice: multi_device[foo]: Creating: Finished in 0.000084 seconds +Info: Class[Main]: Unscheduling all events on Class[Main] +Info: Creating state file /home/runner/.puppetlabs/opt/puppet/cache/devices/other_node/state/state.yaml +�[mNotice: Applied catalog in 0.01 seconds
Linux, Puppet 8, Ruby 3.2: spec/puppet/resource_api/type_definition_spec.rb#L93
Puppet::ResourceApi::TypeDefinition#create_attribute_in when creating an invalid attribute errors cleanly Skipped: Not yet implemented
Linux, Puppet 8, Ruby 3.2: spec/acceptance/noop_spec.rb#L24
exercising noop using `puppet resource` respects --noop Failure/Error: expect(stdout_str.strip).to match(/noop: true/) expected "\e[mNotice: /Test_noop_support[foo]/ensure: undefined 'ensure' from 'present' (noop)\e[0m\ntest_noop_support { 'foo': \n ensure => 'present',\n}" to match /noop: true/ Diff: @@ -1 +1,4 @@ -/noop: true/ +�[mNotice: /Test_noop_support[foo]/ensure: undefined 'ensure' from 'present' (noop) +test_noop_support { 'foo': + ensure => 'present', +}
Windows, Puppet 8, Ruby 3.2: spec/puppet/resource_api/type_definition_spec.rb#L93
Puppet::ResourceApi::TypeDefinition#create_attribute_in when creating an invalid attribute errors cleanly Skipped: Not yet implemented
Windows, Puppet 8, Ruby 3.2: spec/acceptance/noop_spec.rb#L24
exercising noop using `puppet resource` respects --noop Failure/Error: expect(stdout_str.strip).to match(/noop: true/) expected "\e[mNotice: /Test_noop_support[foo]/ensure: undefined 'ensure' from 'present' (noop)\e[0m\ntest_noop_support { 'foo': \n ensure => 'present',\n}" to match /noop: true/ Diff: @@ -1 +1,4 @@ -/noop: true/ +�[mNotice: /Test_noop_support[foo]/ensure: undefined 'ensure' from 'present' (noop) +test_noop_support { 'foo': + ensure => 'present', +}
Windows, Puppet 8, Ruby 3.2: spec/acceptance/multi_device_spec.rb#L39
exercising a type with device-specific providers using `puppet device` applies a catalog successfully Failure/Error: expect(stdout_str).to match(/Compiled catalog for some_node/) expected "\e[mNotice: Compiled catalog for other_node in environment production in 0.09 seconds\e[0m\n\e[0;32m.../cache/devices/other_node/state/state.yaml\e[0m\n\e[mNotice: Applied catalog in 0.03 seconds\e[0m\n" to match /Compiled catalog for some_node/ Diff: @@ -1 +1,9 @@ -/Compiled catalog for some_node/ +�[mNotice: Compiled catalog for other_node in environment production in 0.09 seconds +Info: Using environment 'production' +Info: Applying configuration version '1749124604' +�[mNotice: /Stage[main]/Main/Multi_device[foo]/ensure: defined 'ensure' as 'present' +�[mNotice: multi_device[foo]: Creating: Creating 'foo' with {:name=>"foo", :ensure=>"present"} +�[mNotice: multi_device[foo]: Creating: Finished in 0.000176 seconds +Info: Class[Main]: Unscheduling all events on Class[Main] +Info: Creating state file C:/ProgramData/PuppetLabs/puppet/cache/devices/other_node/state/state.yaml +�[mNotice: Applied catalog in 0.03 seconds