Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -103,4 +103,4 @@ RUBY VERSION
ruby 4.0.6p0

BUNDLED WITH
4.0.16
4.0.20
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/dagger_ruby/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

module DaggerRuby
VERSION = "0.11.0"
DAGGER_VERSION = "0.21.8"
DAGGER_VERSION = "0.21.9"
end
4 changes: 2 additions & 2 deletions test/unit/test_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions test/unit/test_entrypoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -66,15 +66,15 @@ 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,
)
end

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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions test/unit/test_progress_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down