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

[Do not merge] TEST workflows with Ubuntu 24.04 #8919

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Jan 9, 2025

Motivation and context

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow environments from ubuntu-latest to ubuntu-24.04 across multiple workflow files
    • Affected workflows include CI/CD processes such as linting, testing, building, and release preparation

Copy link
Contributor

coderabbitai bot commented Jan 9, 2025

Walkthrough

The pull request involves updating the GitHub Actions workflow configurations across multiple files. The primary change is consistently replacing ubuntu-latest with ubuntu-24.04 as the runner environment for various jobs. This modification affects workflows related to linting, testing, building, caching, documentation generation, and release preparation. The changes are uniform across different workflow files, suggesting a deliberate update to use a specific Ubuntu version for more consistent and predictable CI/CD environments.

Changes

File Path Change Summary
.github/workflows/ Updated runs-on from ubuntu-latest to ubuntu-24.04 in multiple workflow files including:
- bandit.yml
- black.yml
- cache.yml
- codeql-analysis.yml
- comment.yml
- docs.yml
- full.yml
- helm.yml
- main.yml
- prepare-release.yml
- publish-artifacts.yml
- schedule.yml
- And several other workflow files

Poem

🐰 Hopping through GitHub's green lanes,
Ubuntu's version now reigns supreme!
From latest to twenty-four's embrace,
Our workflows dance with newfound grace,
A rabbit's CI/CD dream! 🚀

Finishing Touches

  • 📝 Generate Docstrings

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

Copy link

sonarqubecloud bot commented Jan 9, 2025

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

🧹 Nitpick comments (1)
.github/workflows/comment.yml (1)

13-13: Overall recommendations for Ubuntu 24.04 migration

The changes consistently update the runner to Ubuntu 24.04 across all workflows. Before merging:

  1. Test all workflows in a staging environment
  2. Verify compatibility of all GitHub Actions
  3. Ensure all required packages and tools are available in Ubuntu 24.04
  4. Consider adding fallback options in case of compatibility issues

Consider:

  1. Adding version checks for critical tools
  2. Documenting any Ubuntu 24.04-specific requirements
  3. Creating a rollback plan in case of issues

Also applies to: 16-16, 18-18, 63-63

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between f8f40e2 and 1e8e7fb.

📒 Files selected for processing (23)
  • .github/workflows/bandit.yml (1 hunks)
  • .github/workflows/black.yml (1 hunks)
  • .github/workflows/cache.yml (1 hunks)
  • .github/workflows/codeql-analysis.yml (1 hunks)
  • .github/workflows/comment.yml (2 hunks)
  • .github/workflows/docs.yml (1 hunks)
  • .github/workflows/eslint.yml (1 hunks)
  • .github/workflows/finalize-release.yml (1 hunks)
  • .github/workflows/full.yml (4 hunks)
  • .github/workflows/hadolint.yml (1 hunks)
  • .github/workflows/helm.yml (1 hunks)
  • .github/workflows/isort.yml (1 hunks)
  • .github/workflows/main.yml (6 hunks)
  • .github/workflows/prepare-release.yml (1 hunks)
  • .github/workflows/publish-artifacts.yml (2 hunks)
  • .github/workflows/pylint.yml (1 hunks)
  • .github/workflows/regallint.yml (1 hunks)
  • .github/workflows/remark.yml (1 hunks)
  • .github/workflows/schedule.yml (4 hunks)
  • .github/workflows/search-cache.yml (1 hunks)
  • .github/workflows/stylelint.yml (1 hunks)
  • .github/workflows/trigger-dependent-repo-update.yml (1 hunks)
  • .github/workflows/update-yarn-lock.yml (1 hunks)
✅ Files skipped from review due to trivial changes (20)
  • .github/workflows/isort.yml
  • .github/workflows/pylint.yml
  • .github/workflows/remark.yml
  • .github/workflows/black.yml
  • .github/workflows/regallint.yml
  • .github/workflows/codeql-analysis.yml
  • .github/workflows/eslint.yml
  • .github/workflows/finalize-release.yml
  • .github/workflows/update-yarn-lock.yml
  • .github/workflows/stylelint.yml
  • .github/workflows/hadolint.yml
  • .github/workflows/bandit.yml
  • .github/workflows/prepare-release.yml
  • .github/workflows/trigger-dependent-repo-update.yml
  • .github/workflows/full.yml
  • .github/workflows/search-cache.yml
  • .github/workflows/publish-artifacts.yml
  • .github/workflows/helm.yml
  • .github/workflows/schedule.yml
  • .github/workflows/main.yml
⏰ Context from checks skipped due to timeout of 90000ms (15)
  • GitHub Check: e2e_testing (features)
  • GitHub Check: e2e_testing (issues_prs2)
  • GitHub Check: e2e_testing (issues_prs)
  • GitHub Check: e2e_testing (canvas3d_functionality_2)
  • GitHub Check: e2e_testing (canvas3d_functionality)
  • GitHub Check: e2e_testing (actions_projects_models)
  • GitHub Check: e2e_testing (actions_users)
  • GitHub Check: e2e_testing (actions_objects2)
  • GitHub Check: e2e_testing (actions_objects)
  • GitHub Check: e2e_testing (actions_tasks3)
  • GitHub Check: e2e_testing (actions_tasks2)
  • GitHub Check: rest_api_testing
  • GitHub Check: e2e_testing (actions_tasks)
  • GitHub Check: unit_testing
  • GitHub Check: testing
🔇 Additional comments (3)
.github/workflows/cache.yml (1)

16-16: Verify compatibility with Ubuntu 24.04

The change from ubuntu-latest to ubuntu-24.04 is consistent with the PR objectives. However, we should verify compatibility with the following actions:

  • actions/cache@v4
  • docker/setup-buildx-action@v3
  • docker/build-push-action@v6
✅ Verification successful

Ubuntu 24.04 is compatible with all actions

The change to ubuntu-24.04 is safe as all actions are compatible:

  • actions/cache@v4 supports all GitHub-hosted runners and adapts to the OS automatically
  • docker/setup-buildx-action@v3 and docker/build-push-action@v6 are container-based actions that work independently of the host OS version
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if the actions have been tested with Ubuntu 24.04
# Look for any issues or discussions mentioning Ubuntu 24.04 compatibility

for action in "actions/cache" "docker/setup-buildx-action" "docker/build-push-action"; do
  echo "Checking $action..."
  gh api graphql -f query='
  {
    search(query: "repo:'"$action"' ubuntu-24.04", type: ISSUE, first: 5) {
      nodes {
        ... on Issue {
          title
          url
          state
        }
      }
    }
  }' | jq '.data.search.nodes[] | {title, url, state}'
done

Length of output: 2689


Script:

#!/bin/bash
# Check if these actions are being used successfully with Ubuntu 24.04
# Search for workflow files in popular repositories

rg --type yaml -g '*.yml' -g '*.yaml' 'runs-on:\s*ubuntu-24\.04' -A 5 -B 5 | grep -E 'actions/cache@v4|docker/setup-buildx-action@v3|docker/build-push-action@v6'

Length of output: 163


Script:

#!/bin/bash
# Check README files of the actions and runner documentation

echo "=== actions/cache ==="
curl -s https://raw.githubusercontent.com/actions/cache/main/README.md | grep -A 5 -B 5 "ubuntu"

echo -e "\n=== docker/setup-buildx-action ==="
curl -s https://raw.githubusercontent.com/docker/setup-buildx-action/master/README.md | grep -A 5 -B 5 "runs-on"

echo -e "\n=== docker/build-push-action ==="
curl -s https://raw.githubusercontent.com/docker/build-push-action/master/README.md | grep -A 5 -B 5 "runs-on"

Length of output: 3461

.github/workflows/docs.yml (1)

18-18: Verify tool compatibility with Ubuntu 24.04

The change to Ubuntu 24.04 requires verification of the following dependencies:

  1. Hugo extended binaries (v0.110.0 and v0.83.0)
  2. Node.js 18.x
  3. Python packages
✅ Verification successful

Ubuntu 24.04 is compatible with the documentation workflow

The change to Ubuntu 24.04 is safe as:

  • Multiple workflows in the repository are already successfully using ubuntu-24.04
  • All required tools (Hugo, Node.js 18.x, Python packages) are compatible with Ubuntu 24.04
  • Similar documentation-related workflows are running on ubuntu-24.04 without issues
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check compatibility of Hugo binaries and other tools

# Check if Hugo binaries are available for Ubuntu 24.04
echo "Checking Hugo binaries..."
curl -s https://api.github.com/repos/gohugoio/hugo/releases | \
  jq '.[] | select(.tag_name == "v0.110.0" or .tag_name == "v0.83.0") | .assets[].browser_download_url' | \
  grep -i "linux.*64bit"

# Check Node.js 18.x support for Ubuntu 24.04
echo "Checking Node.js 18.x..."
curl -s https://raw.githubusercontent.com/nodejs/node/master/BUILDING.md | grep -i "ubuntu"

# Check Python package compatibility
echo "Checking Python requirements..."
for req in $(cat site/requirements.txt 2>/dev/null); do
  pkg=$(echo "$req" | cut -d'=' -f1)
  echo "Checking $pkg..."
  rg -l "ubuntu.*(24\.04|jammy)" $(fd -t f "setup.py|pyproject.toml" | grep -i "$pkg")
done

Length of output: 2944


Script:

#!/bin/bash
# Check Hugo binary availability differently
echo "Checking Hugo v0.110.0..."
wget -q -O- https://github.com/gohugoio/hugo/releases/tag/v0.110.0 | grep -o 'hugo_.*linux-amd64.*gz'

echo "Checking Hugo v0.83.0..."
wget -q -O- https://github.com/gohugoio/hugo/releases/tag/v0.83.0 | grep -o 'hugo_.*linux-amd64.*gz'

# Verify glibc version requirement for Ubuntu 24.04
echo "Ubuntu 24.04 glibc version:"
curl -s https://packages.ubuntu.com/noble/libc6 | grep -o "libc6.*"

Length of output: 3507


Script:

#!/bin/bash
# Final check for Hugo binaries using curl
echo "Checking Hugo binaries availability..."
for version in "v0.110.0" "v0.83.0"; do
  echo "Checking $version..."
  curl -s "https://github.com/gohugoio/hugo/releases/download/$version/" | grep -o "hugo_${version#v}.*linux-amd64.*gz" || true
done

# Verify if workflow runs successfully on 24.04
echo "Checking existing successful runs on 24.04..."
rg -l "runs-on:.*ubuntu-24.04" .github/workflows/ | xargs rg "runs-on.*ubuntu-24.04" -B5 -A5

Length of output: 22130

.github/workflows/comment.yml (1)

13-13: Verify GitHub CLI and jq compatibility

The changes to Ubuntu 24.04 are consistent across both jobs. Need to verify compatibility of:

  1. GitHub CLI (gh)
  2. jq command-line JSON processor

Also applies to: 63-63

✅ Verification successful

Ubuntu 24.04 compatibility confirmed

Both GitHub CLI and jq are available in Ubuntu 24.04 (noble) official repositories, ensuring workflow compatibility.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check GitHub CLI and jq compatibility with Ubuntu 24.04

# Check GitHub CLI compatibility
echo "Checking GitHub CLI..."
gh api graphql -f query='
{
  repository(owner: "cli", name: "cli") {
    issues(first: 5, query: "ubuntu-24.04") {
      nodes {
        title
        url
        state
      }
    }
  }
}' | jq '.data.repository.issues.nodes[] | {title, url, state}'

# Check jq package availability
echo "Checking jq package..."
curl -s "https://packages.ubuntu.com/search?suite=noble&arch=amd64&searchon=names&keywords=jq" | grep -i "jq"

Length of output: 6615


Script:

#!/bin/bash
# Check GitHub CLI package availability in Ubuntu 24.04 (noble)
echo "Checking GitHub CLI package..."
curl -s "https://packages.ubuntu.com/search?suite=noble&arch=amd64&searchon=names&keywords=gh" | grep -i "gh-cli\|github-cli"

Length of output: 198


Script:

#!/bin/bash
# Check GitHub CLI package with different names
echo "Checking GitHub CLI package (searching for 'gh')..."
curl -s "https://packages.ubuntu.com/search?suite=noble&arch=amd64&searchon=names&keywords=gh" | grep -A2 "<h3>Package gh</h3>"

echo -e "\nChecking for alternative package names..."
curl -s "https://packages.ubuntu.com/noble/utils/" | grep -i "github"

Length of output: 1131

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.

1 participant