Skip to content

Task/12362 ci changes v1 - #63

Open
Davihan11 wants to merge 2 commits into
CESNET:mainfrom
Davihan11:task/12362-ci-change-v1
Open

Davihan11 wants to merge 2 commits into
CESNET:mainfrom
Davihan11:task/12362-ci-change-v1

Conversation

@Davihan11

@Davihan11 Davihan11 commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

Replace setup-python + full requirements.txt install with the setup-ruff action (pinned to 0.15.19, matching requirements.txt). The lint job needs nothing but ruff, so this drops the lbr_trex_client/scapy/paramiko install chain, making the job faster and less prone to unrelated native build failures. Also emit check results in GitHub's annotation format.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The workflow uses an unsupported enable-cache input for astral-sh/setup-ruff@v3, which will break CI.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the GitHub Actions lint workflow to run Ruff directly via the astral-sh/setup-ruff action, avoiding a full Python dependency install and emitting GitHub-annotated lint output.

Changes:

  • Replace actions/setup-python + pip install -r requirements.txt with astral-sh/setup-ruff@v3 pinned to Ruff 0.15.19.
  • Emit Ruff check output using GitHub’s annotation format (--output-format=github).
  • Rename the job key from lint to ruff (workflow name remains lint).
File summaries
File Description
.github/workflows/lint.yml Switches the lint CI job to install/run Ruff via setup-ruff and emit GitHub-annotated output.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/lint.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The PR description claims caching is enabled, but the workflow does not configure caching (and ruff-action@v4.1.0 has no cache input), so the implementation doesn’t match the stated behavior.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread .github/workflows/lint.yml
@Davihan11
Davihan11 requested a review from matyas7dub September 9, 2026 12:05

@matyas7dub matyas7dub left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM
Feel free to force push the rebase onto this PR

Replace setup-python + full requirements.txt install with the
setup-ruff action (pinned to 0.15.19, matching requirements.txt)
with caching enabled. The lint job needs nothing but ruff, so this
drops the lbr_trex_client/scapy/paramiko install chain, making the
job faster and less prone to unrelated native build failures.
Also emit check results in GitHub's annotation format.
astral-sh/setup-ruff does not exist (runner: repository not found)
and enable-cache is not a valid input for the ruff action. Use the
actual action astral-sh/ruff-action@v4.1.0, resolve the ruff version
from requirements.txt via version-file, and pass args: --version so
the setup step only installs instead of also running a check.
@Davihan11
Davihan11 force-pushed the task/12362-ci-change-v1 branch from a8dad8c to 53d57c9 Compare September 25, 2026 11:28
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