Skip to content

chore: upgrade dagger - #2737

Merged
turip merged 6 commits into
mainfrom
chore/upgrade-dagger
Apr 28, 2025
Merged

turip merged 6 commits into
mainfrom
chore/upgrade-dagger

Conversation

@turip

@turip turip commented Apr 28, 2025 •

Copy link
Copy Markdown
Member

Overview

Updates to latest dagger and latest modules.

Summary by CodeRabbit

  • Chores
    • Updated Dagger engine and SDK versions across configuration files and workflows.
    • Upgraded Go module and related dependency versions for improved compatibility and performance.
    • Standardized dependency commit hashes in configuration.
    • Updated GitHub Actions workflows to use the latest Dagger version.
    • Simplified Makefile and workflow command arguments for easier usage.
  • Refactor
    • Improved caching and container naming in the linting process.
    • Adjusted release workflow to use updated release configuration.

@coderabbitai

coderabbitai Bot commented Apr 28, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This 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 dagger.json configuration is also modernized, standardizing dependency hashes and restructuring fields.

Changes

Files/Paths Change Summary
.github/workflows/ci.yaml
.github/workflows/ci-exp.yaml
.github/workflows/release.yaml
.github/workflows/sdk-javascript-release.yaml
.github/workflows/sdk-javascript.yaml
.github/workflows/sdk-python.yaml
Updated DAGGER_VERSION from 0.15.3 to 0.18.5 in all workflows; in ci.yaml, removed the --source .:default prefix from a dagger/dagger-for-github action; updated runs-on labels where applicable.
.dagger/go.mod Upgraded Go module dependencies: GraphQL, OpenTelemetry, gRPC, and related libraries to newer versions; updated replace directives for OpenTelemetry logging modules.
.dagger/lint.go Renamed GoContainer to Container in dag.GolangciLint options; added Cache field; removed WithLinterCache chained call.
.dagger/release.go Changed Latest field assignment from boolean true to constant dagger.GhLatestLatestTrue in GitHub release creation.
Makefile Removed --source .:default option from dagger call commands in update-openapi and migrate-check targets.
dagger.json Updated engine version to 0.18.5; changed SDK spec to object format; switched from exclude to include (negated) paths; standardized dependency commit hashes; removed views section.

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
Failed executing command with error: you are using a configuration file for golangci-lint v2 with golangci-lint v1: please use golangci-lint v2

✨ Finishing Touches
  • 📝 Generate Docstrings

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@turip turip added the release-note/ignore Ignore this change when generating release notes label Apr 28, 2025
@turip
turip force-pushed the chore/upgrade-dagger branch from ccb327e to 3b489df Compare April 28, 2025 14:07
@turip
turip marked this pull request as ready for review April 28, 2025 14:12
@turip
turip requested a review from a team as a code owner April 28, 2025 14:12

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🔭 Outside diff range comments (1)
.github/workflows/sdk-javascript.yaml (1)

12-14: ⚠️ Potential issue

Fix path filter mismatch in on.push.

The paths filter references .github/workflows/sdk-node.yaml, but the actual file is sdk-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 replace statements at lines 53–60 map modules to the same versions already declared in the require block, making them redundant. You can simplify go.mod by removing these unnecessary replace directives and running:

go mod tidy

to ensure the file stays consistent.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f30c604 and 3b489df.

⛔ Files ignored due to path filters (2)
  • .dagger/go.sum is excluded by !**/*.sum
  • flake.lock is 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_VERSION is updated from 0.15.3 to 0.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_VERSION has been correctly updated to 0.18.5.

.github/workflows/sdk-javascript-release.yaml (1)

11-13: Approve Dagger version bump.

The DAGGER_VERSION environment variable is correctly updated to 0.18.5.

.github/workflows/ci-exp.yaml (1)

11-13: Approve Dagger version bump.

The DAGGER_VERSION variable update to 0.18.5 is consistent with the other workflows.

.dagger/release.go (1)

38-38: Updated to use the new Dagger constant

Good change - replacing the boolean literal true with the constant dagger.GhLatestLatestTrue properly adapts to the updated Dagger API in version 0.18.5.

.github/workflows/release.yaml (1)

14-14: Version upgrade looks good

Successfully 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 good

Successfully updated Dagger version from 0.15.3 to 0.18.5, keeping it consistent with other workflow files.


245-245: Command simplification looks good

The removal of the --source .:default prefix 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 good

Removing the --source .:default prefix 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 good

Removing the --source .:default prefix 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 appropriate

The changes to the GolangciLintOpts structure reflect the updated Dagger API in version 0.18.5. The previous .WithLinterCache() chained method call has been replaced with a direct Cache field initialization, and GoContainer was renamed to Container, which aligns with the updated Dagger SDK conventions.

dagger.json (4)

3-6: Dagger engine version and SDK configuration updated correctly

The 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 source property instead of a simple string.


7-15: Configuration style updated from exclude to include with negation

The configuration has been changed from using an exclude array to an include array 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 hash

All 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 removed

The source path has been maintained as .dagger, but the views section that was likely present in the previous version has been removed, which is aligned with the updated Dagger configuration schema.

Comment thread .github/workflows/ci-exp.yaml Resolved
@turip
turip enabled auto-merge (squash) April 28, 2025 14:23
@turip
turip merged commit 98fbf62 into main Apr 28, 2025
@turip
turip deleted the chore/upgrade-dagger branch April 28, 2025 14:32
@coderabbitai coderabbitai Bot mentioned this pull request Aug 11, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/ignore Ignore this change when generating release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants