Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update devcontainer image: v1.0.0-rc.0 #2584

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Update devcontainer image: v1.0.0-rc.0 #2584

merged 1 commit into from
Oct 31, 2024

Conversation

tarrencev
Copy link
Contributor

@tarrencev tarrencev commented Oct 26, 2024

Automated changes by create-pull-request GitHub action

Summary by CodeRabbit

  • New Features
    • Introduced a new job test-hurl in the CI workflow to enhance testing capabilities.
  • Improvements
    • Updated Docker image version across multiple workflows for improved stability and performance.
    • Enhanced the ensure-docker job with a check for the katana process.
    • Added a step in the test job to download the dojo-bins artifact for subsequent commands.

Copy link

coderabbitai bot commented Oct 26, 2024

Walkthrough

Ohayo, sensei! This pull request includes updates across several configuration files to change the Docker image version from v1.0.0-alpha.17 to v1.0.0-rc.0. The files affected include the Rust development environment configuration in .devcontainer/devcontainer.json, various GitHub Actions workflows (bench.yml, ci.yml, and release-dispatch.yml). The modifications primarily focus on updating the image version, with additional enhancements in the CI workflow for testing capabilities.

Changes

File Change Summary
.devcontainer/devcontainer.json Updated Docker image version from v1.0.0-alpha.17 to v1.0.0-rc.0.
.github/workflows/bench.yml Updated Docker image version from v1.0.0-alpha.17 to v1.0.0-rc.0 for bench-katana and bench-sozo jobs.
.github/workflows/ci.yml Updated Docker image version for jobs: test, ensure-wasm, dojo-core-test, dojo-spawn-and-move-example-test, clippy, fmt, docs. Added new test-hurl job and updated test job to download dojo-bins artifact.
.github/workflows/release-dispatch.yml Updated Docker image version from v1.0.0-alpha.17 to v1.0.0-rc.0 in propose-release job.

Possibly related PRs

Suggested reviewers

  • glihm

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between b6e33a2 and f23f29a.

📒 Files selected for processing (4)
  • .devcontainer/devcontainer.json (1 hunks)
  • .github/workflows/bench.yml (2 hunks)
  • .github/workflows/ci.yml (7 hunks)
  • .github/workflows/release-dispatch.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
  • .devcontainer/devcontainer.json
  • .github/workflows/bench.yml
  • .github/workflows/ci.yml
  • .github/workflows/release-dispatch.yml

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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 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.

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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (3)
.devcontainer/devcontainer.json (1)

Line range hint 1-2: Ohayo sensei! Minor documentation update suggestion.

The referenced version in the header comment (v0.245.2) appears to be outdated. Consider updating this documentation link in a future PR to reflect the current version of vscode-dev-containers.

.github/workflows/ci.yml (2)

Line range hint 95-103: Consider increasing the wait time for Katana startup, sensei!

The 2-second sleep might be too short for some CI environments. Consider increasing it to 5-10 seconds to ensure Katana has fully initialized before checking its status.

-          sleep 2
+          sleep 5
🧰 Tools
🪛 actionlint

32-32: label "ubuntu-latest-32-cores" 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-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "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)


Line range hint 189-205: Consider using version variables for better maintainability, sensei!

The hurl version (3.0.0) is hardcoded. Consider moving it to the env section at the top of the workflow file, similar to how RUST_VERSION is managed.

 env:
   CARGO_TERM_COLOR: always
   RUST_VERSION: 1.79.0
+  HURL_VERSION: 3.0.0

Then update the installation command:

-          curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl_3.0.0_amd64.deb
+          curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/${HURL_VERSION}/hurl_${HURL_VERSION}_amd64.deb
🧰 Tools
🪛 actionlint

32-32: label "ubuntu-latest-32-cores" 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-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "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)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between ef696ea and b6e33a2.

📒 Files selected for processing (4)
  • .devcontainer/devcontainer.json (1 hunks)
  • .github/workflows/bench.yml (2 hunks)
  • .github/workflows/ci.yml (8 hunks)
  • .github/workflows/release-dispatch.yml (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • .github/workflows/bench.yml
  • .github/workflows/release-dispatch.yml
🔇 Additional comments (3)
.devcontainer/devcontainer.json (1)

5-5: Ohayo sensei! Let's verify the new image version.

The bump from v1.0.0-alpha.17 to v1.0.0-alpha.19 looks good, but let's ensure the image is available.

✅ Verification successful

Ohayo sensei! The image version is valid and ready to use!

The Docker image ghcr.io/dojoengine/dojo-dev:v1.0.0-alpha.19 exists in the registry and is also tagged as latest, confirming it's the most recent version. The version bump is safe to proceed with.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the new Docker image exists and is accessible
# Expected: The image should be found and its details should be displayed

# Test: Check if the image exists in the container registry
gh api \
  -H "Accept: application/vnd.oci.image.index.v1+json" \
  /orgs/dojoengine/packages/container/dojo-dev/versions \
  | jq -r '.[] | select(.metadata.container.tags[] | contains("v1.0.0-alpha.19"))'

Length of output: 384


Script:

#!/bin/bash
# Let's try a different approach using the GitHub API to check package versions
gh api \
  -H "Accept: application/vnd.github+json" \
  /orgs/dojoengine/packages/container/dojo-dev/versions \
  | jq -r '.[] | select(.metadata.container.tags[] | contains("v1.0.0-alpha.19")) | .metadata.container.tags[]'

# Also let's check if we can find any references to this version in the repository
rg -i "v1.0.0-alpha.19" --type json --type yaml

Length of output: 284

.github/workflows/ci.yml (2)

34-34: Ohayo! Docker image version updates look consistent, sensei!

The Docker image version has been consistently updated to v1.0.0-alpha.19 across all jobs in the workflow.

Also applies to: 59-59, 124-124, 139-139, 153-153, 162-162, 171-171, 180-180


Line range hint 38-52: Excellent test configuration, sensei!

The test job is well structured with proper artifact handling, binary setup, and coverage reporting. The use of llvm-cov with codecov integration is a great practice for maintaining code quality.

🧰 Tools
🪛 actionlint

32-32: label "ubuntu-latest-32-cores" 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-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "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)

@tarrencev tarrencev changed the title Update devcontainer image: v1.0.0-alpha.19 Update devcontainer image: v1.0.0-rc.0 Oct 31, 2024
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.14%. Comparing base (f4199ae) to head (f23f29a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2584      +/-   ##
==========================================
+ Coverage   55.13%   55.14%   +0.01%     
==========================================
  Files         385      385              
  Lines       47748    47748              
==========================================
+ Hits        26325    26330       +5     
+ Misses      21423    21418       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants