Repository navigation
CI: Fail the Jenkins static checks job on analyzer errors - #12167
Alexey-Rivkin wants to merge 3 commits into
Conversation
|
🤖 Starting review — findings will be posted here when done. |
|
Pre-existing, outside the diff (not blocking): Test expectation per |
Agreed it's pre-existing, I'll keep it out of this PR.
It is: ucx-static-checks-oss #40 (internal NVIDIA link) ran on this PR's merge commit with no findings. |
static_checks.sh reports analyzer findings only through Azure logging commands, which Jenkins ignores, so the Jenkins job passed with errors. Exit non-zero on findings. Build with NPROC, which common.sh caps on Kubernetes nodes where nproc reports the whole host. Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
test_init_mt sized its thread count with nproc, which reports all host CPUs inside a Kubernetes pod, so the test started far more threads than the pod's CPU limit allows. NPROC, set by common.sh, follows the container limit. Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
fdece3a to
4ef3dbd
Compare
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 CI Triage Agent — TL;DR: The gtest run failed on a single flaky test, Full analysisSummary: Root cause: From the Azure log: Implicated commit: unknown — no datapath commit implicated; the tested commit [REDACTED:Hex High Entropy String] is CI-only. File: test/gtest/ucp/test_ucp_sockaddr.cc:2402 ( Suggested fix:
Related: none found — searches for
|
The static checks pod is limited to 4 CPUs, but the analyzer build ran with as many make jobs as the node has cores, 256 in a recent run, and the pod was CPU-throttled in 61% of its scheduler periods over the last week. With NPROC from common.sh it would still be 8, one per GiB of the memory limit. Set NPROC to 4 for this job. Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>
|
🤖 CI Triage Agent — TL;DR: The Blossom-CI run never got to the Jenkins static-checks pipeline — the only error in the run's logs is Full analysisSummary: Root cause: From the fetched run log, both jobs that produced output completed successfully: Implicated commit: unknown — CI plumbing/credential issue, not a source commit. (Note the running workflow came from File: .github/workflows/blossom-ci.yml:33-38 (Authorization step env, missing Suggested fix:
|
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 CI Triage Agent — TL;DR: The ASAN gtest shard failed on two tests; the significant one is Full analysisSummary: Root cause:
Implicated commit: File: test/gtest/ucp/test_ucp_fault_tolerance.cc:738 (wait that consumes the 200 s deadline) and :931-938 ( Suggested fix:
Related: #12371 (token failover for AM short/single-bcopy), #11994 (UCX_FAILOVER_MODE), PR under test: #12167 |
|
🤖 CI Triage Agent — TL;DR: The build didn't fail on code — both coverity branches could never get a Jenkins agent because the Full analysisSummary: Root cause: Agent pod creation was repeatedly rejected by the API server: Implicated commit: No product-code commit. Contributing CI change: File: CI pod template resource requests for the coverity job ( Suggested fix:
Related: #12420 (pod requests from measured use), #12167 (this PR), prior CPU-request reduction
|
|
🤖 CI Triage Agent — TL;DR: The coverity build never started any work — both matrix pods were rejected by Kubernetes because the Full analysisSummary: Root cause: At 14:26:40 the Kubernetes plugin got a 403 from the API server: Implicated commit: unknown (no code commit implicated; the namespace quota was already saturated by other concurrently running jobs). Last functional changes to the job config are [REDACTED:Hex High Entropy String] "CI: reduce CPU requests in all CI pipelines (#11494)" by NirWolfer and a346463 by Alexey Rivkin — neither caused this. File: Suggested fix:
Related: none directly (searches for the quota error returned only unrelated open CI PRs: #12418, #12168, #12094)
|
What?
Make the Jenkins static checks job fail when the analyzers report errors, and size its CI builds and test threads by
NPROC.Why?
static_checks.shreports findings only through the Azuretask.completemarker and exits 0, which Jenkins ignores, so the Jenkins job stays green whatever the analyzers find. In a Kubernetes podnprocreports every host CPU, not the pod's limit.How?
buildlib/tools/static_checks.sh:exit 1after reporting findings; Azure already fails on the marker.buildlib/tools/static_checks.shandcontrib/test_jenkins.sh(test_init_mt): use${NPROC}, whichcommon.shcaps on Kubernetes nodes, instead ofnproc..ci/pipeline/static_checks_matrix.yaml:NPROC: "4", so the make jobs match the 4 CPU limit of the pod.Tested: ucx-static-checks-oss #45, ucx-test-oss #79 (internal NVIDIA links)
HPCINFRA-5037 (Internal link)