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

chore: Bump download-artifact to v4 #3104

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

CryptoFewka
Copy link
Contributor

@CryptoFewka CryptoFewka commented Nov 6, 2024

Description

This PR bumps the download-artifacts action to v4, ahead of its deprecation on November 30, 2024.

How Has This Been Tested?

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

Summary by CodeRabbit

  • Chores
    • Updated the GitHub Actions workflow to use the latest version of the download-artifact action, ensuring future compatibility.

@CryptoFewka CryptoFewka added the no-changelog Skip changelog CI check label Nov 6, 2024
@CryptoFewka CryptoFewka self-assigned this Nov 6, 2024
Copy link
Contributor

coderabbitai bot commented Nov 6, 2024

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request modifies the GitHub Actions workflow in .github/actions/upgrade-testing/action.yml. The primary change involves updating the actions/download-artifact step from version 3 to version 4 in response to the deprecation of version 3, effective November 30, 2024. The action's name, description, and input parameters remain unchanged, and the overall structure and logic of the workflow, including steps for repository checkout and Python setup, are retained.

Changes

File Path Change Summary
.github/actions/upgrade-testing/action.yml Updated actions/download-artifact from version 3 to version 4.

Possibly related PRs

Suggested reviewers

  • fbac
  • swift1337
  • ws4charlie
  • brewmaster012
  • lumtis
  • kingpinXD
  • skosito
  • CharlieMc0

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.

@github-actions github-actions bot added the ci Changes to CI pipeline or github actions label Nov 6, 2024
@CryptoFewka CryptoFewka changed the title Chore: Bump download-artifact to v4 chore: Bump download-artifact to v4 Nov 6, 2024
@CryptoFewka CryptoFewka marked this pull request as ready for review November 6, 2024 04:57
@CryptoFewka CryptoFewka requested a review from a team as a code owner November 6, 2024 04:57
Copy link
Contributor

@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 (1)
.github/actions/upgrade-testing/action.yml (1)

Line range hint 1-89: Verify environment variable configuration

The extensive environment configuration remains unchanged, which is good for maintaining stability. However, there are some commented-out variables that might need attention:

  • BINARY_DOWNLOAD_LIST
  • TAG_LIST
  • END_VERSION

Consider documenting why these are commented out or remove them if they're no longer needed.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 234dd87 and dd5ac93.

📒 Files selected for processing (1)
  • .github/actions/upgrade-testing/action.yml (1 hunks)
🔇 Additional comments (1)
.github/actions/upgrade-testing/action.yml (1)

17-20: LGTM: Proactive update to download-artifact@v4

The update is well-timed considering the upcoming deprecation of v3 on November 30, 2024. The inline comment provides clear context for the change.

Let's verify the compatibility of v4 with the current workflow:

✅ Verification successful

✓ Verified: Single instance of download-artifact, update is safe

The codebase scan reveals this is the only instance of actions/download-artifact usage, making this a straightforward and isolated update. The change from v3 to v4 in this composite action poses minimal risk as:

  • No other workflows depend on this action
  • The update is contained within a single composite action
  • The change maintains the same input parameters (name and path)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify if there are any breaking changes in download-artifact@v4
# that might affect our workflow

# Check if the workflow has been tested with v4
gh run list --workflow="upgrade-testing" --json conclusion,headSha \
  --jq '.[] | select(.headSha=="'$GITHUB_SHA'") | .conclusion'

# Look for any issues related to download-artifact in recent runs
gh run list --workflow="upgrade-testing" --json conclusion,headSha,url \
  --jq '.[] | select(.conclusion=="failure") | .url' | \
  xargs -I {} gh api {} | jq -r '.jobs[].steps[] | select(.name | contains("download-artifact")) | .conclusion'

Length of output: 454


Script:

#!/bin/bash
# Let's verify the changes by checking:
# 1. Other workflows using download-artifact to ensure consistency
# 2. Any related configuration or setup files
# 3. Documentation updates if any

# Find all workflow files using download-artifact
rg -l "actions/download-artifact" .github/

# Check the specific versions being used
rg "actions/download-artifact@v\d" .github/

# Look for any related documentation or configuration
fd -t f "README|CONTRIBUTING|CHANGELOG" -E "*.md"

Length of output: 339

@kingpinXD kingpinXD self-requested a review November 6, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Changes to CI pipeline or github actions no-changelog Skip changelog CI check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants