Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 1, 2026

The Benchmarks workflow was failing with "Unable to resolve action astral-sh/uv-action, repository not found." The action name was incorrect.

Changes

  • Replaced astral-sh/uv-action@v3 with astral-sh/setup-uv@v7 in both rust-benchmark and python-benchmark jobs
  • Updated parameters: removed version: "latest", added enable-cache: true
  • Aligns with the action configuration already used in code_quality.yml
- uses: astral-sh/uv-action@v3
+ uses: astral-sh/setup-uv@v7
  with:
-   version: "latest"
    python-version: "3.13"
+   enable-cache: true
Original prompt

The issue arises in the Benchmarks workflow defined in .github/workflows/benchmarks.yml. The failing job encountered an error due to an incorrect GitHub Action reference:

Unable to resolve action astral-sh/uv-action, repository not found.

Steps to resolve:

  1. Update the action definition:

    • Replace astral-sh/uv-action with the correct repository and version reference like astral-sh/uv@v1.
  2. Verify the workflow functionality with the updated action.

  3. Ensure that other actions and steps in the file are functioning as expected.

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Replace astral-sh/uv-action@v3 with astral-sh/setup-uv@v7 to fix workflow failures. This aligns with the action used in other workflows (code_quality.yml) and resolves the "repository not found" error.

Co-authored-by: jacksonpradolima <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 1, 2026

Copilot AI changed the title [WIP] Fix incorrect GitHub Action reference in benchmarks workflow Fix incorrect GitHub Action reference in benchmarks workflow Jan 1, 2026
Copilot AI requested a review from jacksonpradolima January 1, 2026 15:40
@jacksonpradolima jacksonpradolima marked this pull request as ready for review January 1, 2026 16:12
Copilot AI review requested due to automatic review settings January 1, 2026 16:12
@jacksonpradolima jacksonpradolima merged commit b66b75c into master Jan 1, 2026
10 of 14 checks passed
@jacksonpradolima jacksonpradolima deleted the copilot/fix-benchmarks-workflow-action branch January 1, 2026 16:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a failing Benchmarks workflow by replacing the incorrect GitHub Action reference astral-sh/uv-action@v3 (which doesn't exist) with the correct astral-sh/setup-uv@v7 action that is already used in other workflows.

Key changes:

  • Corrected the action name from astral-sh/uv-action to astral-sh/setup-uv in both benchmark jobs
  • Updated action parameters: removed version: "latest", added enable-cache: true
  • Aligned configuration with the pattern used in code_quality.yml

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

uses: astral-sh/setup-uv@v7
with:
version: "latest"
python-version: "3.13"
Copy link

Copilot AI Jan 1, 2026

Choose a reason for hiding this comment

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

The python-version parameter is redundant here since Python is already set up in the previous step using actions/setup-python@v6. The astral-sh/setup-uv action will automatically detect and use the Python version from the environment. This parameter should be removed to avoid confusion and potential conflicts.

Suggested change
python-version: "3.13"

Copilot uses AI. Check for mistakes.
uses: astral-sh/setup-uv@v7
with:
version: "latest"
python-version: "3.13"
Copy link

Copilot AI Jan 1, 2026

Choose a reason for hiding this comment

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

The python-version parameter is redundant here since Python is already set up in the previous step using actions/setup-python@v6. The astral-sh/setup-uv action will automatically detect and use the Python version from the environment. This parameter should be removed to avoid confusion and potential conflicts.

Suggested change
python-version: "3.13"

Copilot uses AI. Check for mistakes.
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.

2 participants