Repository navigation
CNTRLPLANE-3049: split verify checks into individual GitHub Actions workflows - #8049
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Skipping CI for Draft Pull Request. |
📝 WalkthroughWalkthroughThis pull request upgrades Sequence Diagram(s)mermaid mermaid ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
475f6aa to
e1a298e
Compare
|
@bryan-cox: This pull request references CNTRLPLANE-3049 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
e1a298e to
87254b9
Compare
19237bc to
57f08a3
Compare
48bd6ef to
9dd1272
Compare
|
@bryan-cox: This pull request references CNTRLPLANE-3049 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@bryan-cox: This pull request references CNTRLPLANE-3049 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@bryan-cox: This pull request references CNTRLPLANE-3049 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/fmt.yaml (1)
15-15: Harden post-format cleanliness check to include untracked files.Line 15 only fails on tracked diffs. If
make fmtever emits untracked artifacts, this workflow would still pass.Suggested update
- - run: git diff --exit-code + - run: | + git diff --exit-code + STATUS=$(git status --porcelain) + if [ -n "$STATUS" ]; then + echo "working tree is dirty after make fmt:" + echo "$STATUS" + exit 1 + fi🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/fmt.yaml at line 15, The workflow currently uses the step "run: git diff --exit-code" which only detects changes to tracked files; change this check to detect any workspace changes including untracked files by replacing that step with a command that checks git status --porcelain (or equivalent) and fails when its output is non-empty so untracked artifacts produced by make fmt will cause the job to fail.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/fmt.yaml:
- Line 15: The workflow currently uses the step "run: git diff --exit-code"
which only detects changes to tracked files; change this check to detect any
workspace changes including untracked files by replacing that step with a
command that checks git status --porcelain (or equivalent) and fails when its
output is non-empty so untracked artifacts produced by make fmt will cause the
job to fail.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: ce6903c9-336a-448a-a27a-785b386b95c7
📒 Files selected for processing (8)
.github/workflows/codespell.yaml.github/workflows/cpo-container-sync.yaml.github/workflows/fmt.yaml.github/workflows/gitlint.yaml.github/workflows/lint.yaml.github/workflows/sync-community-fork.yaml.github/workflows/test.yaml.github/workflows/verify.yaml
✅ Files skipped from review due to trivial changes (5)
- .github/workflows/gitlint.yaml
- .github/workflows/codespell.yaml
- .github/workflows/lint.yaml
- .github/workflows/cpo-container-sync.yaml
- .github/workflows/sync-community-fork.yaml
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - run: make fmt |
There was a problem hiding this comment.
fmt should be prety quick, does it really need it's own step?
There was a problem hiding this comment.
Right, gitlint and codespell are similar examples. There was a consensus decision to split everything into its own job as much as possible.
There was a problem hiding this comment.
I have no issues bolting fmt back on verify if that's what others want.
There was a problem hiding this comment.
I can see codespell being a separate step, but fmt doesn't makes sense to me.
Anyway, this is not a blocker. Feel free to proceed if you disagree
3404ade to
c7c6ebc
Compare
|
@bryan-cox: This pull request references CNTRLPLANE-3049 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@bryan-cox: This pull request references CNTRLPLANE-3049 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Add separate GitHub Actions workflows for verify (generate, update, staticcheck, vet), format, and unit tests so they run in parallel on PRs. Remove the verify-ci Makefile target since all its checks are now covered by individual workflows. Update all existing workflows from actions/checkout@v4 to @v6. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
c7c6ebc to
6cbba63
Compare
|
@bryan-cox: This pull request references CNTRLPLANE-3049 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/verify.yaml:
- Around line 8-28: The current single "verify" job serializes
generate/update/staticcheck/fmt/vet; split this into separate jobs (e.g.,
"generate", "staticcheck", "fmt", "vet") instead of one "verify" job so they can
run in parallel and be used as independent required contexts. For each new job
copy the common setup (runs-on, timeout, actions/checkout@v6 and the git diff
check if needed) and then run only the specific command (make generate update
for the generate job, make staticcheck, make fmt, make vet) and set appropriate
needs dependencies only if one job truly depends on another; ensure naming of
steps matches current commands so you can find them (the existing "verify" job
and its steps: actions/checkout@v6, the git diff/status block, make generate
update, make staticcheck, make fmt, make vet) and remove or repurpose the
original "verify" job to avoid duplicate contexts.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 77d13316-50a9-498f-9953-f76b4836c588
📒 Files selected for processing (7)
.github/workflows/codespell.yaml.github/workflows/cpo-container-sync.yaml.github/workflows/gitlint.yaml.github/workflows/lint.yaml.github/workflows/sync-community-fork.yaml.github/workflows/test.yaml.github/workflows/verify.yaml
✅ Files skipped from review due to trivial changes (5)
- .github/workflows/codespell.yaml
- .github/workflows/gitlint.yaml
- .github/workflows/cpo-container-sync.yaml
- .github/workflows/sync-community-fork.yaml
- .github/workflows/lint.yaml
| verify: | ||
| name: Verify | ||
| runs-on: arc-runner-set | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - run: make generate update | ||
| - run: | | ||
| git update-index --refresh | ||
| git diff-index --cached --quiet --ignore-submodules HEAD -- | ||
| git diff-files --quiet --ignore-submodules | ||
| git diff --exit-code HEAD -- | ||
| STATUS=$(git status -s) | ||
| if [ -n "$STATUS" ]; then | ||
| echo "untracked files detected:" | ||
| echo "$STATUS" | ||
| exit 1 | ||
| fi | ||
| - run: make staticcheck | ||
| - run: make fmt | ||
| - run: make vet |
There was a problem hiding this comment.
Split checks are still serialized in one workflow/job.
Line 8 defines one verify job that runs generate/update/staticcheck/fmt/vet sequentially, so these checks cannot run in parallel as described in the PR objective. Please split these into dedicated workflows (or separate jobs) so required contexts can execute independently.
🧰 Tools
🪛 actionlint (1.7.11)
[error] 10-10: label "arc-runner-set" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/workflows/verify.yaml around lines 8 - 28, The current single
"verify" job serializes generate/update/staticcheck/fmt/vet; split this into
separate jobs (e.g., "generate", "staticcheck", "fmt", "vet") instead of one
"verify" job so they can run in parallel and be used as independent required
contexts. For each new job copy the common setup (runs-on, timeout,
actions/checkout@v6 and the git diff check if needed) and then run only the
specific command (make generate update for the generate job, make staticcheck,
make fmt, make vet) and set appropriate needs dependencies only if one job truly
depends on another; ensure naming of steps matches current commands so you can
find them (the existing "verify" job and its steps: actions/checkout@v6, the git
diff/status block, make generate update, make staticcheck, make fmt, make vet)
and remove or repurpose the original "verify" job to avoid duplicate contexts.
|
/lgtm |
|
Pipeline controller notification No second-stage tests were triggered for this PR. This can happen when:
Use |
|
/verified by gh actions |
|
@bryan-cox: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
These jobs are now handled by GitHub Actions workflows in the hypershift repository (PR openshift/hypershift#8049). Remove the Prow verify (make verify-ci) and unit (make test) jobs, along with their resource blocks and the custom-verify-src image that was only used by the verify job. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: remove hypershift Prow verify and unit test jobs These jobs are now handled by GitHub Actions workflows in the hypershift repository (PR openshift/hypershift#8049). Remove the Prow verify (make verify-ci) and unit (make test) jobs, along with their resource blocks and the custom-verify-src image that was only used by the verify job. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: regenerate prow jobs after removing unit and verify Run `make jobs` to regenerate the prow job files after removing the unit and verify test definitions from the config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Add comprehensive CI/CD workflows based on openshift/hypershift#8049: - lint: golangci-lint on PRs - test: unit tests with coverage on push/PR - verify: formatting and vet checks - build: cross-platform builds (Linux/macOS/Windows) Also add .golangci.yml config and enhance Makefile with fmt/vet/lint targets plus coverage support in tests.
* ci: remove hypershift Prow verify and unit test jobs These jobs are now handled by GitHub Actions workflows in the hypershift repository (PR openshift/hypershift#8049). Remove the Prow verify (make verify-ci) and unit (make test) jobs, along with their resource blocks and the custom-verify-src image that was only used by the verify job. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: regenerate prow jobs after removing unit and verify Run `make jobs` to regenerate the prow job files after removing the unit and verify test definitions from the config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* ci: remove hypershift Prow verify and unit test jobs These jobs are now handled by GitHub Actions workflows in the hypershift repository (PR openshift/hypershift#8049). Remove the Prow verify (make verify-ci) and unit (make test) jobs, along with their resource blocks and the custom-verify-src image that was only used by the verify job. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: regenerate prow jobs after removing unit and verify Run `make jobs` to regenerate the prow job files after removing the unit and verify test definitions from the config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
generate,update,staticcheck,fmt,vet) and unit tests so they run in parallel on PRsactions/checkout@v4to@v6git update-index --refreshbefore diff checks to prevent false positives from stale stat cache on CI runnersThis continues the work of splitting the monolithic
verifytarget into independent CI jobs for faster, parallel feedback.Previously split
codespell.yaml→verify-codespellcpo-container-sync.yaml→cpo-container-syncgitlint.yaml→run-gitlintlint.yaml→lintNew in this PR
verify.yaml→generate+update+ diff check +staticcheck+fmt+vettest.yaml→ unit tests🤖 Generated with Claude Code
Summary by CodeRabbit