Skip to content

ci: add missing tools for pre-commit checks#273

Open
evacchi wants to merge 2 commits into
llm-d-incubation:mainfrom
evacchi:precommit
Open

ci: add missing tools for pre-commit checks#273
evacchi wants to merge 2 commits into
llm-d-incubation:mainfrom
evacchi:precommit

Conversation

@evacchi

@evacchi evacchi commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

a few checks are not being run on pre-commit because some formatting/linting tools are not installed on CI; there are also 2 separate jobs that partially overlap (pre-commit and ci-pr-check): we should consolidate these.

Why is this change needed?

pre-commit run is incomplete and diverges from a local workflow

How was this tested?

  • Unit tests added/updated
  • Integration/e2e tests added/updated
  • Manual testing performed

Checklist

  • Commits are signed off (git commit -s) per DCO
  • Code follows project contributing guidelines
  • Tests pass locally (make test)
  • Linters pass (make lint)
  • Documentation updated (if applicable)

Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 23, 2026 15:04

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.

Pull request overview

This PR updates the “Pre-commit” GitHub Actions workflow to better match local pre-commit behavior by installing missing tooling in CI, so optional hooks that depend on external binaries can actually run.

Changes:

  • Extend .github/workflows/pre-commit.yml to install Helm and Go-based tooling (goimports/gosec) before running pre-commit.
  • Add a golangci-lint action step and additional post–pre-commit checks (integration tests + Helm lint).
  • Minor import-block whitespace change in cmd/main.go.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
cmd/main.go Import block whitespace tweak (formatting-only change).
.github/workflows/pre-commit.yml Installs additional tools and expands the pre-commit CI workflow scope with extra lint/test steps.

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

Comment thread .github/workflows/pre-commit.yml Outdated
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
Comment thread .github/workflows/pre-commit.yml Outdated
Comment on lines +36 to +40
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.11.4

Comment thread .github/workflows/pre-commit.yml Outdated
Comment on lines +31 to +34
- name: Install Go tools (goimports, gosec)
run: |
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/securego/gosec/v2/cmd/gosec@latest
Comment on lines +44 to +48
- name: Run integration tests
run: make test-integration

- name: Lint Helm chart
run: helm lint charts/async-processor
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
@evacchi

evacchi commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator Author

I think now we have consolidated ci-pr-checks into pre-commit so we only have one tool

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