TEST-INFRA: [ci-pipeline-design] Consolidate static analysis jobs into a single parallelized job #2757

Open
opened 2026-04-04 19:12:35 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: task/ci-consolidate-static-analysis-jobs
  • Commit Message: refactor(ci): consolidate lint, typecheck, security, and quality into a single parallelized static-analysis job
  • Milestone: v3.8.0
  • Parent Epic: #1678

Problem

The current CI pipeline in .forgejo/workflows/ci.yml defines separate jobs for lint, typecheck, security, and quality. Each of these jobs repeats the same setup steps:

  • Install Node.js
  • Checkout code
  • Install uv and nox
  • Cache uv packages

This redundancy adds unnecessary overhead and increases the total pipeline execution time.

Proposed Solution

Consolidate these four jobs into a single job named static-analysis. This new job should perform the setup steps only once. The individual checks (lint, typecheck, security, quality) should then be run as parallel steps within this single job.

Subtasks

  • Modify .forgejo/workflows/ci.yml to replace the lint, typecheck, security, and quality jobs with a single static-analysis job.
  • Configure the static-analysis job to run the four checks as parallel steps.
  • Update the needs configuration for the coverage job to depend on the new static-analysis job.
  • Update features/ci_workflow_validation.feature to assert the new static-analysis job structure is present.
  • Verify all nox stages pass after changes.
  • Confirm coverage ≥ 97%.

Definition of Done

  • The lint, typecheck, security, and quality jobs are removed from ci.yml.
  • A new static-analysis job is implemented that runs all four checks as parallel steps.
  • The coverage job's needs list is updated to reference static-analysis.
  • features/ci_workflow_validation.feature is updated to cover the new job structure.
  • The total execution time for static analysis is reduced (setup steps run only once).
  • The CI pipeline remains stable and all checks are still enforced.
  • All nox stages pass.
  • Coverage >= 97%

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

## Metadata - **Branch**: `task/ci-consolidate-static-analysis-jobs` - **Commit Message**: `refactor(ci): consolidate lint, typecheck, security, and quality into a single parallelized static-analysis job` - **Milestone**: v3.8.0 - **Parent Epic**: #1678 ## Problem The current CI pipeline in `.forgejo/workflows/ci.yml` defines separate jobs for `lint`, `typecheck`, `security`, and `quality`. Each of these jobs repeats the same setup steps: - Install Node.js - Checkout code - Install uv and nox - Cache uv packages This redundancy adds unnecessary overhead and increases the total pipeline execution time. ## Proposed Solution Consolidate these four jobs into a single job named `static-analysis`. This new job should perform the setup steps only once. The individual checks (lint, typecheck, security, quality) should then be run as parallel steps within this single job. ## Subtasks - [ ] Modify `.forgejo/workflows/ci.yml` to replace the `lint`, `typecheck`, `security`, and `quality` jobs with a single `static-analysis` job. - [ ] Configure the `static-analysis` job to run the four checks as parallel steps. - [ ] Update the `needs` configuration for the `coverage` job to depend on the new `static-analysis` job. - [ ] Update `features/ci_workflow_validation.feature` to assert the new `static-analysis` job structure is present. - [ ] Verify all nox stages pass after changes. - [ ] Confirm coverage ≥ 97%. ## Definition of Done - [ ] The `lint`, `typecheck`, `security`, and `quality` jobs are removed from `ci.yml`. - [ ] A new `static-analysis` job is implemented that runs all four checks as parallel steps. - [ ] The `coverage` job's `needs` list is updated to reference `static-analysis`. - [ ] `features/ci_workflow_validation.feature` is updated to cover the new job structure. - [ ] The total execution time for static analysis is reduced (setup steps run only once). - [ ] The CI pipeline remains stable and all checks are still enforced. - [ ] All nox stages pass. - [ ] Coverage >= 97% --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure | Agent: ca-new-issue-creator
freemo added this to the v3.8.0 milestone 2026-04-04 19:12:42 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Medium
  • MoSCoW: Could Have — Consolidating static analysis jobs is a CI optimization. Reduces pipeline complexity but is not blocking feature work.
  • Parent Epic: #1678 (CI Execution Time Optimization)

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Medium - **MoSCoW**: Could Have — Consolidating static analysis jobs is a CI optimization. Reduces pipeline complexity but is not blocking feature work. - **Parent Epic**: #1678 (CI Execution Time Optimization) --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
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#2757
No description provided.