TEST-INFRA: [ci-pipeline-design] Combine static analysis jobs #2847

Open
opened 2026-04-04 20:52:22 +00:00 by freemo · 0 comments
Owner

Metadata

  • Branch: chore/ci-pipeline-design/combine-static-analysis-jobs
  • Commit Message: chore(ci): combine lint, typecheck, security, and quality into single static-analysis job
  • Milestone: v3.7.0
  • Parent Epic: #2810

Background and Context

The CI pipeline currently has separate jobs for lint, typecheck, security, and quality. These jobs are all relatively fast and have identical setup steps (checkout, Python environment setup, dependency installation). Running them as four independent jobs means the environment setup overhead is paid four times, increasing total CI wall-clock time unnecessarily.

Combining them into a single static-analysis job with parallel steps for each tool would reduce the number of jobs and eliminate redundant environment setup, improving CI efficiency without sacrificing any quality gate coverage.

Expected Behavior

A single static-analysis job in ci.yml runs all four static analysis tools (lint, typecheck, security, quality) as parallel steps within the same job, with a single shared environment setup. The old individual jobs are removed. Total CI run time is reduced.

Subtasks

  • Create a new static-analysis job in ci.yml
  • Move the steps from the lint, typecheck, security, and quality jobs into the new static-analysis job
  • Run the steps in parallel within the static-analysis job
  • Remove the old lint, typecheck, security, and quality jobs
  • Update any status-check consolidation gate references to use static-analysis instead of the four individual job names
  • Verify the static-analysis job passes on a test branch before merging

Definition of Done

  • The static-analysis job is implemented in ci.yml and passes on master
  • The old lint, typecheck, security, and quality jobs are removed from ci.yml
  • The status-check consolidation gate is updated to reference static-analysis
  • Total CI run time is measurably reduced compared to the four-job baseline
  • All nox stages pass
  • Coverage >= 97%

Automated by CleverAgents Bot
Supervisor: Test Infrastructure | Agent: ca-new-issue-creator

## Metadata - **Branch**: `chore/ci-pipeline-design/combine-static-analysis-jobs` - **Commit Message**: `chore(ci): combine lint, typecheck, security, and quality into single static-analysis job` - **Milestone**: v3.7.0 - **Parent Epic**: #2810 ## Background and Context The CI pipeline currently has separate jobs for `lint`, `typecheck`, `security`, and `quality`. These jobs are all relatively fast and have identical setup steps (checkout, Python environment setup, dependency installation). Running them as four independent jobs means the environment setup overhead is paid four times, increasing total CI wall-clock time unnecessarily. Combining them into a single `static-analysis` job with parallel steps for each tool would reduce the number of jobs and eliminate redundant environment setup, improving CI efficiency without sacrificing any quality gate coverage. ## Expected Behavior A single `static-analysis` job in `ci.yml` runs all four static analysis tools (`lint`, `typecheck`, `security`, `quality`) as parallel steps within the same job, with a single shared environment setup. The old individual jobs are removed. Total CI run time is reduced. ## Subtasks - [ ] Create a new `static-analysis` job in `ci.yml` - [ ] Move the steps from the `lint`, `typecheck`, `security`, and `quality` jobs into the new `static-analysis` job - [ ] Run the steps in parallel within the `static-analysis` job - [ ] Remove the old `lint`, `typecheck`, `security`, and `quality` jobs - [ ] Update any `status-check` consolidation gate references to use `static-analysis` instead of the four individual job names - [ ] Verify the `static-analysis` job passes on a test branch before merging ## Definition of Done - [ ] The `static-analysis` job is implemented in `ci.yml` and passes on master - [ ] The old `lint`, `typecheck`, `security`, and `quality` jobs are removed from `ci.yml` - [ ] The `status-check` consolidation gate is updated to reference `static-analysis` - [ ] Total CI run time is measurably reduced compared to the four-job baseline - [ ] All nox stages pass - [ ] Coverage >= 97% --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure | Agent: ca-new-issue-creator
freemo added this to the v3.7.0 milestone 2026-04-04 20:52:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#2847
No description provided.