From 19ee265434a62800d9a7e26b520faaacbdebac37 Mon Sep 17 00:00:00 2001 From: Gaurav Tiwari Date: Tue, 8 Sep 2026 15:29:18 +0100 Subject: [PATCH] Update Dagger and test dependencies --- .github/workflows/main.yml | 2 +- CHANGELOG.md | 4 ++++ Gemfile.lock | 6 +++--- README.md | 4 ++-- lib/dagger_ruby/version.rb | 2 +- test/unit/test_config.rb | 4 ++-- test/unit/test_entrypoint.rb | 8 ++++---- test/unit/test_progress_runner.rb | 5 +++++ 8 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f488f60..757a6e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: - name: Run live Dagger contract tests uses: dagger/dagger-for-github@27b130bf0f79a7f6fbbbe0fbca6760dc9bb40a77 # v8.4.1 with: - version: "0.21.8" + version: "0.21.9" dagger-flags: --silent verb: run args: -- env DAGGER_LIVE_TESTS=1 bundle exec ruby test/integration/test_dagger_engine.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index f4418f8..8381eb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ All notable changes are recorded here. The format follows ## [Unreleased] +### Changed + +- Update the supported Dagger CLI and engine from 0.21.8 to 0.21.9. + ### Fixed - Show an engine startup status in pretty progress mode when Dagger takes more than one second to start. diff --git a/Gemfile.lock b/Gemfile.lock index 505c744..f3aee2f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -72,12 +72,12 @@ GEM rubocop (>= 1.72.1) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) - simplecov (1.1.1) + simplecov (1.2.0) thor (1.5.0) unicode-display_width (3.2.0) unicode-emoji (~> 4.1) unicode-emoji (4.2.0) - webmock (3.26.3) + webmock (3.26.4) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) @@ -103,4 +103,4 @@ RUBY VERSION ruby 4.0.6p0 BUNDLED WITH - 4.0.16 + 4.0.20 diff --git a/README.md b/README.md index af0dda1..c054848 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ covers a practical subset of the API instead of Dagger module code generation. ## Requirements - Ruby 3.2 or newer -- Dagger 0.21.8 +- Dagger 0.21.9 - Docker, Colima, or another container runtime supported by Dagger ## Installation @@ -172,7 +172,7 @@ end ## Compatibility -The current branch is tested against maintained Ruby releases and Dagger 0.21.8. Dagger's +The current branch is tested against maintained Ruby releases and Dagger 0.21.9. Dagger's GraphQL schema can change between releases, so each supported engine update is validated by the live integration suite before release. Earlier Ruby and Dagger versions are not covered by the current compatibility contract. diff --git a/lib/dagger_ruby/version.rb b/lib/dagger_ruby/version.rb index 19b9b75..2ceb3b9 100644 --- a/lib/dagger_ruby/version.rb +++ b/lib/dagger_ruby/version.rb @@ -2,5 +2,5 @@ module DaggerRuby VERSION = "0.11.0" - DAGGER_VERSION = "0.21.8" + DAGGER_VERSION = "0.21.9" end diff --git a/test/unit/test_config.rb b/test/unit/test_config.rb index b2112c6..3bafa18 100644 --- a/test/unit/test_config.rb +++ b/test/unit/test_config.rb @@ -14,7 +14,7 @@ def test_config_default_values assert_nil config.progress assert_equal :auto, config.runtime assert_nil config.runner_host - assert_equal "0.21.8", config.dagger_version + assert_equal "0.21.9", config.dagger_version assert config.verify_version assert_empty config.environment end @@ -113,7 +113,7 @@ def test_config_selects_docker_runner config = DaggerRuby::Config.new(runtime: "docker") assert_equal :docker, config.runtime - assert_equal "image+docker://registry.dagger.io/engine:v0.21.8", + assert_equal "image+docker://registry.dagger.io/engine:v0.21.9", config.environment.fetch("_EXPERIMENTAL_DAGGER_RUNNER_HOST") end diff --git a/test/unit/test_entrypoint.rb b/test/unit/test_entrypoint.rb index 0ad9455..6ac86b1 100644 --- a/test/unit/test_entrypoint.rb +++ b/test/unit/test_entrypoint.rb @@ -28,7 +28,7 @@ def test_connection_rejects_an_incompatible_engine DaggerRuby.connection(config) end - assert_includes error.message, "expected v0.21.8" + assert_includes error.message, "expected v0.21.9" end end @@ -66,7 +66,7 @@ def test_connection_environment_pins_release_and_runtime assert_equal( { "_EXPERIMENTAL_DAGGER_RUNNER_HOST" => - "image+apple://registry.dagger.io/engine:v0.21.8", + "image+apple://registry.dagger.io/engine:v0.21.9", }, config.environment, ) @@ -74,7 +74,7 @@ def test_connection_environment_pins_release_and_runtime def test_cli_version_check_accepts_the_supported_release status = stub(success?: true) - Open3.expects(:capture3).with("dagger", "version").returns(["dagger v0.21.8 darwin/arm64", "", status]) + Open3.expects(:capture3).with("dagger", "version").returns(["dagger v0.21.9 darwin/arm64", "", status]) DaggerRuby.send(:verify_cli_version!, DaggerRuby::Config.new) end @@ -87,7 +87,7 @@ def test_cli_version_check_rejects_an_old_release_before_starting_a_runner DaggerRuby.send(:verify_cli_version!, DaggerRuby::Config.new) end - assert_includes error.message, "install v0.21.8" + assert_includes error.message, "install v0.21.9" end private diff --git a/test/unit/test_progress_runner.rb b/test/unit/test_progress_runner.rb index 9629d75..f3e2665 100644 --- a/test/unit/test_progress_runner.rb +++ b/test/unit/test_progress_runner.rb @@ -4,6 +4,11 @@ require_relative "../test_helper" class TestProgressRunner < Minitest::Test + def setup + super + DaggerRuby::ProgressRunner.any_instance.stubs(:startup_notice_delay).returns(60) + end + def test_streams_progress_events_from_the_dagger_process output = StringIO.new command = [