Build runner test#5
Conversation
…r quay.io/opencv-ci/opencv-ubuntu-24.04:20251127
zozo123
left a comment
There was a problem hiding this comment.
islo.dev — Score: 2.85/5.0 — Changes requested.
| uses: ./checkout-and-merge | ||
| with: | ||
| target_branch: "4.x" | ||
| author: "${{ github.event.pull_request.user.login }}" |
There was a problem hiding this comment.
🔴 Critical — Null context on schedule/workflow_dispatch runs: github.event.pull_request.user.login and github.head_ref both expand to empty string when the trigger is not pull_request. The checkout-and-merge action will receive empty author and source_branch inputs, causing it to silently check out the wrong ref or fail. Fix: wrap these steps with if: github.event_name == 'pull_request' or provide fallback expressions like ${{ github.event.pull_request.user.login || github.actor }}.
| - if: ${{ always() && env.WARNINGS == '1' }} | ||
| name: Warnings check | ||
| run: | | ||
| echo "::error Warnings have been found!" |
There was a problem hiding this comment.
🔴 Critical — ::error annotation syntax is wrong: echo "::error Warnings have been found!" will print plain text — it will not create a GitHub Actions error annotation. The correct syntax requires a second :: separator before the message. Fix: echo "::error::Warnings have been found!"
| image: "quay.io/opencv-ci/opencv-ubuntu-24.04:20251127" | ||
|
|
||
| env: | ||
| CCACHE_MAXSIZE: "8G" |
There was a problem hiding this comment.
🟠 Warning — Dead CCACHE_MAXSIZE env var: ccache was removed in a prior commit (fix: remove ccache) but CCACHE_MAXSIZE: "8G" remains. This is misleading — it suggests ccache is active when it isn't. Remove the env var.
| Linux-RISC-V-Clang: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-RISCV.yaml@main | ||
| jobs: | ||
| Ubuntu: |
There was a problem hiding this comment.
🟠 Warning — All 14 original CI jobs removed: Linux, Windows, ARM64, macOS, iOS, Android, TIM-VX, CUDA, OpenVINO, docs, and RISC-V jobs have all been deleted. If this is a permanent change to 4.x, OpenCV loses all cross-platform PR gating. If it's a temporary test branch, the PR description should state that explicitly and the target branch should be changed accordingly. The checklist item 'The PR is proposed to the proper branch' is currently unchecked.
| run: | ||
| shell: bash | ||
| container: | ||
| image: "quay.io/opencv-ci/opencv-ubuntu-24.04:20251127" |
There was a problem hiding this comment.
🟡 Suggestion — Pin container image by digest, not tag: The tag 20251127 is mutable and could be overwritten, silently changing the build environment. For reproducible and tamper-resistant builds use a SHA256 digest: quay.io/opencv-ci/opencv-ubuntu-24.04@sha256:<digest>.
| python3 ./scripts/warnings-handling.py \ | ||
| "$GITHUB_WORKSPACE/build-contrib/log.txt" | ||
| if [ $? -ne 0 ]; then | ||
| echo "WARNINGS=1" >> $GITHUB_ENV |
There was a problem hiding this comment.
🟡 Suggestion — WARNINGS=1 collision loses source info: Both the opencv-only and opencv-contrib warning checks write WARNINGS=1 to $GITHUB_ENV. The final step fires on either, but you lose which build triggered it. Consider OPENCV_WARNINGS=1 and CONTRIB_WARNINGS=1 so logs and downstream steps can distinguish between the two.
islo.dev Review: #5
Grade: D | Verdict: REQUEST_CHANGES SummaryThe CodeQL permissions fix in Key Findings
7 inline comments posted on specific lines above. Changes Since Last Review
Risk
islo.dev PR Code Reviewer • sandbox: pr-opencv-5-claude-1774956948 |
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.