Skip to content

test: fix bolt-modules tests #1037

test: fix bolt-modules tests

test: fix bolt-modules tests #1037

Triggered via pull request April 14, 2026 16:17
Status Failure
Total duration 5m 30s
Artifacts

tests.yaml

on: pull_request
rubocop_and_matrix
54s
rubocop_and_matrix
Linux: Generate module cache
27s
Linux: Generate module cache
Windows: Generate module cache
5m 18s
Windows: Generate module cache
Matrix: modules_ci
Check mod deps
21s
Check mod deps
Matrix: Docker Transport
Matrix: Linux Integration
Matrix: SSH Transport
Matrix: bolt apply
Matrix: local_transports
Matrix: unit
Matrix: BoltSpec
Matrix: Windows Agentless
Matrix: Windows Integration
Matrix: WinRM Transport
Test suite
3s
Test suite
Fit to window
Zoom out
Zoom in

Annotations

23 errors
Test vendored Modules - ubuntu-24.04: bolt-modules/boltlib/spec/functions/apply_prep_spec.rb#L97
apply_prep with targets ignores unsupported metaparameters Failure/Error: executor.stubs(:noop).returns(false) Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
Test vendored Modules - ubuntu-24.04: bolt-modules/boltlib/spec/functions/apply_prep_spec.rb#L79
apply_prep with targets escalates if provided _run_as Failure/Error: executor.stubs(:noop).returns(false) Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
Test vendored Modules - ubuntu-24.04: bolt-modules/boltlib/spec/functions/apply_prep_spec.rb#L61
apply_prep with targets sets puppet-agent feature and gathers facts Failure/Error: executor.stubs(:noop).returns(false) Mocha::NotInitializedError: Mocha methods cannot be used outside the context of a test
Test vendored Modules - ubuntu-24.04: bolt-modules/prompt/spec/functions/prompt_spec.rb#L22
prompt returns a Sensitive value Failure/Error: response = executor.prompt(prompt, options) Mocha::ExpectationError: unexpected invocation: #<Bolt::Executor:0x5730>.prompt("prompt", {sensitive: true}) unsatisfied expectations: - expected exactly once, invoked never: #<Bolt::Executor:0x5730>.prompt("prompt", sensitive: true) satisfied expectations: - allowed any number of times, invoked never: #<Puppet::Util::Feature:0x5140>.root?(any_parameters)
Test vendored Modules - ubuntu-24.04: bolt-modules/out/spec/functions/out/verbose_spec.rb#L35
out::verbose without tasks enabled fails and reports that out::verbose is not available Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) } NoMethodError: undefined method `last' for nil:NilClass
Test vendored Modules - ubuntu-24.04: bolt-modules/out/spec/functions/out/verbose_spec.rb#L27
out::verbose reports function call to analytics Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) } NoMethodError: undefined method `last' for nil:NilClass
Test vendored Modules - ubuntu-24.04: bolt-modules/out/spec/functions/out/verbose_spec.rb#L17
out::verbose sends a verbose event to the executor Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) } NoMethodError: undefined method `last' for nil:NilClass
Test vendored Modules - ubuntu-24.04: bolt-modules/out/spec/functions/out/message_spec.rb#L35
out::message without tasks enabled fails and reports that out::message is not available Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) } NoMethodError: undefined method `last' for nil:NilClass
Test vendored Modules - ubuntu-24.04: bolt-modules/out/spec/functions/out/message_spec.rb#L27
out::message reports function call to analytics Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) } NoMethodError: undefined method `last' for nil:NilClass
Test vendored Modules - ubuntu-24.04: bolt-modules/out/spec/functions/out/message_spec.rb#L17
out::message sends a message event to the executor Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) } NoMethodError: undefined method `last' for nil:NilClass
rubocop_and_matrix: spec/unit/transport/choria/shell_spec.rb#L301
Style/PartitionInsteadOfDoubleSelect: Use `partition` instead of consecutive `select` and `reject` calls.
rubocop_and_matrix: spec/unit/transport/choria/shell_spec.rb#L100
Style/PartitionInsteadOfDoubleSelect: Use `partition` instead of consecutive `select` and `reject` calls.
rubocop_and_matrix: spec/unit/transport/choria/bolt_tasks_spec.rb#L336
Style/PartitionInsteadOfDoubleSelect: Use `partition` instead of consecutive `select` and `reject` calls.
rubocop_and_matrix: rakelib/tests.rake#L147
Layout/SpaceInsideBlockBraces: Space missing inside }.
rubocop_and_matrix: rakelib/tests.rake#L147
Layout/SpaceInsideBlockBraces: Space between { and | missing.
rubocop_and_matrix: rakelib/tests.rake#L145
Lint/UselessAssignment: Useless assignment to variable - `success`. (https://rubystyle.guide#underscore-unused-vars)
rubocop_and_matrix: lib/bolt/transport/choria/client.rb#L205
Style/ReduceToHash: Use `to_h { ... }` instead of `each_with_object`.
rubocop_and_matrix: lib/bolt/transport/choria/bolt_tasks.rb#L151
Style/ReduceToHash: Use `to_h { ... }` instead of `each_with_object`.
rubocop_and_matrix: bolt-modules/shared_spec_helper.rb#L17
Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
rubocop_and_matrix: bolt-modules/boltlib/spec/spec_helper.rb#L5
Layout/TrailingEmptyLines: Final newline missing. (https://rubystyle.guide#newline-eof)
Test vendored Modules - windows-2025
The strategy configuration was canceled because "modules_ci.ubuntu-24_04" failed
Test vendored Modules - windows-2025
The operation was canceled.
Test suite
Process completed with exit code 1.