chore: remove redundant main.yaml CI workflow#94
Conversation
main.yaml duplicated the go-lint/go-test jobs already covered by ci.yaml, just triggered on push to main instead of pull_request. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
main.yaml previously ran go-lint/go-test on push to main; now that it's removed, ci.yaml picks up that trigger directly. test-cloud-version stays PR-only since it hits the real GitLab API and wasn't part of main.yaml's scope. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
| name: Test Baton Gitlab Integration | ||
|
|
||
| on: pull_request | ||
| on: |
There was a problem hiding this comment.
i think you can also remove the go-test and go-lint jobs in this file those should be covered in the verfiy.yaml from baton-admin
Connector PR Review: chore: remove redundant main.yaml CI workflowBlocking Issues: 1 | Suggestions: 1 | Threads Resolved: 0 Review SummaryReviewed the full PR diff (workflow-only changes; no Go source, Security IssuesNone found. Correctness Issues
Suggestions
Prompt for AI agents |
Per gontzess review: these duplicate the managed verify.yaml (baton-admin), which already runs lint + test on PRs and push to main. Drop them from ci.yaml so it keeps only the connector-specific integration test (test-cloud-version); generic lint/test coverage is unchanged via verify.yaml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| branches: | ||
| - main | ||
|
|
||
| jobs: |
There was a problem hiding this comment.
🟠 Bug: This PR removes the go-lint and go-test jobs from ci.yaml and also deletes main.yaml, which was the only other place those jobs ran. After this change no workflow in the repo runs golangci-lint or go test on pull requests or on push to main — capabilities_and_config.yaml only does go build, and update-dependencies.yaml is a scheduled maintenance job. The PR description says these jobs are "already covered by ci.yaml," but this same diff removes them. Unless a centralized reusable workflow (not present in this repo) runs lint/test, please keep a go-lint/go-test job on pull_request. (confidence: medium-high)
| push: | ||
| branches: | ||
| - main |
There was a problem hiding this comment.
🟡 Suggestion: This adds a push: branches: [main] trigger, but the only remaining job (test-cloud-version) is now guarded by if: github.event_name == 'pull_request', so it is skipped on push. The push-to-main trigger therefore runs zero jobs and is effectively a no-op. If the intent was to run lint/test on push to main (as main.yaml previously did), that coverage is now missing. (confidence: high)
Summary
.github/workflows/main.yaml, which duplicated thego-lint/go-testjobs already covered byci.yaml, just triggered on push tomaininstead ofpull_request.Test plan
🤖 Generated with Claude Code