Repository navigation
chore: upgrade dagger - #2737
Conversation
📝 WalkthroughWalkthroughThis update primarily focuses on upgrading the Dagger toolchain and related dependencies across the repository. The Dagger engine and SDK versions are increased from 0.15.3 to 0.18.5 in multiple configuration files and CI workflows. Go module dependencies are updated, including major and minor version bumps for GraphQL, OpenTelemetry, gRPC, and other libraries. Several workflow and Makefile commands are simplified by removing explicit source options. Minor code changes align with updated APIs and naming conventions. The Changes
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (1.64.8)Error: you are using a configuration file for golangci-lint v2 with golangci-lint v1: please use golangci-lint v2 ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ccb327e to
3b489df
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
.github/workflows/sdk-javascript.yaml (1)
12-14:⚠️ Potential issueFix path filter mismatch in
on.push.The
pathsfilter references.github/workflows/sdk-node.yaml, but the actual file issdk-javascript.yaml. As a result, pushes to this workflow won’t trigger. Update the path filter as follows:- on: - push: - branches: - - main - paths: - - api/openapi.cloud.yaml - - .github/workflows/sdk-node.yaml + on: + push: + branches: + - main + paths: + - api/openapi.cloud.yaml + - .github/workflows/sdk-javascript.yaml
🧹 Nitpick comments (1)
.dagger/go.mod (1)
53-60: Consider cleaning up redundant replace directives.The
replacestatements at lines 53–60 map modules to the same versions already declared in therequireblock, making them redundant. You can simplifygo.modby removing these unnecessaryreplacedirectives and running:go mod tidyto ensure the file stays consistent.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
.dagger/go.sumis excluded by!**/*.sumflake.lockis excluded by!**/*.lock
📒 Files selected for processing (11)
.dagger/go.mod(2 hunks).dagger/lint.go(1 hunks).dagger/release.go(1 hunks).github/workflows/ci-exp.yaml(2 hunks).github/workflows/ci.yaml(2 hunks).github/workflows/release.yaml(1 hunks).github/workflows/sdk-javascript-release.yaml(1 hunks).github/workflows/sdk-javascript.yaml(1 hunks).github/workflows/sdk-python.yaml(1 hunks)Makefile(2 hunks)dagger.json(1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/ci-exp.yaml
17-17: label "depot-ubuntu-latest-16,dagger=0.18.5" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
29-29: label "depot-ubuntu-latest-16,dagger=0.18.5" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: CI
- GitHub Check: Developer environment
- GitHub Check: Analyze (go)
🔇 Additional comments (15)
.github/workflows/sdk-python.yaml (1)
17-19: Approve Dagger version bump.The environment variable
DAGGER_VERSIONis updated from0.15.3to0.18.5, aligning this workflow with the rest of the CI/CD pipelines..github/workflows/sdk-javascript.yaml (1)
15-17: Approve Dagger version bump.The
DAGGER_VERSIONhas been correctly updated to0.18.5..github/workflows/sdk-javascript-release.yaml (1)
11-13: Approve Dagger version bump.The
DAGGER_VERSIONenvironment variable is correctly updated to0.18.5..github/workflows/ci-exp.yaml (1)
11-13: Approve Dagger version bump.The
DAGGER_VERSIONvariable update to0.18.5is consistent with the other workflows..dagger/release.go (1)
38-38: Updated to use the new Dagger constantGood change - replacing the boolean literal
truewith the constantdagger.GhLatestLatestTrueproperly adapts to the updated Dagger API in version 0.18.5..github/workflows/release.yaml (1)
14-14: Version upgrade looks goodSuccessfully updated Dagger version from 0.15.3 to 0.18.5, which aligns with the PR objectives to upgrade Dagger across the repository.
.github/workflows/ci.yaml (2)
12-12: Version upgrade looks goodSuccessfully updated Dagger version from 0.15.3 to 0.18.5, keeping it consistent with other workflow files.
245-245: Command simplification looks goodThe removal of the
--source .:defaultprefix simplifies the command, which is consistent with other changes in this PR. This adaptation matches how newer Dagger versions handle source specifications.Makefile (2)
16-17: Command simplification looks goodRemoving the
--source .:defaultprefix from the Dagger commands simplifies the invocations. This matches the changes in the CI workflow and is appropriate for the upgraded Dagger version.
29-29: Command simplification looks goodRemoving the
--source .:defaultprefix from the migrate-check command follows the same pattern as other command simplifications in this PR..dagger/lint.go (1)
35-37: API update for GolangciLintOpts structure looks appropriateThe changes to the
GolangciLintOptsstructure reflect the updated Dagger API in version 0.18.5. The previous.WithLinterCache()chained method call has been replaced with a directCachefield initialization, andGoContainerwas renamed toContainer, which aligns with the updated Dagger SDK conventions.dagger.json (4)
3-6: Dagger engine version and SDK configuration updated correctlyThe engine version has been properly updated from v0.15.3 to v0.18.5, and the SDK configuration has been modernized to use the object format with a
sourceproperty instead of a simple string.
7-15: Configuration style updated from exclude to include with negationThe configuration has been changed from using an
excludearray to anincludearray with negated paths (using!prefix). This maintains the same functionality while following the newer Dagger configuration style.
20-21: Dependencies standardized to a single commit hashAll dependencies have been updated to use the same commit hash (
ceffda4aebd349a24fc00e591b4ed9b801535b65), which ensures consistent behavior across all Dagger modules. This is a good practice for maintaining dependency stability.Also applies to: 25-26, 30-31, 35-36, 40-41, 45-46, 50-51, 55-56, 60-61, 65-66, 70-71, 75-76, 80-81, 85-86
89-89: Source path maintained but views section removedThe source path has been maintained as
.dagger, but theviewssection that was likely present in the previous version has been removed, which is aligned with the updated Dagger configuration schema.
Overview
Updates to latest dagger and latest modules.
Summary by CodeRabbit