TEST-INFRA: [ci-pipeline-design] Refactor CI pipeline to reduce redundant setup steps #1612

Closed
opened 2026-04-02 23:10:47 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: task/v3.8.0-ci-refactor-redundant-setup-steps
  • Commit Message: chore(ci): refactor CI pipeline to eliminate redundant setup steps via composite action
  • Milestone: v3.8.0
  • Parent Epic: #397

Background and Context

The ci.yml workflow contains a significant amount of redundant setup steps across multiple jobs. The lint, typecheck, security, quality, unit_tests, integration_tests, e2e_tests, coverage, and build jobs all have identical steps for:

  1. Installing Node.js
  2. Checking out the code
  3. Installing uv and nox

This redundancy makes the pipeline configuration harder to maintain and increases the chance of inconsistencies when setup steps need to be updated (e.g., changing a Node.js or Python version requires editing every job individually).

Area: CI/CD

Expected Behavior

A composite action or reusable workflow encapsulates the common setup steps. All applicable CI jobs call this shared setup instead of duplicating the steps inline, resulting in a significantly shorter and more maintainable ci.yml.

Subtasks

  • Investigate using a composite action or a reusable workflow to encapsulate the common setup steps (Node.js install, repo checkout, uv/nox install).
  • Refactor the ci.yml workflow to use the new composite action or reusable workflow in all applicable jobs (lint, typecheck, security, quality, unit_tests, integration_tests, e2e_tests, coverage, build).
  • Ensure that the refactored pipeline is still readable and maintainable.
  • Verify that the refactored pipeline runs successfully and that all jobs produce the same results as before.
  • Run nox (all default sessions), fix any errors.
  • Verify coverage >= 97% via nox -s coverage_report.

Definition of Done

  • The ci.yml workflow is refactored to remove redundant setup steps.
  • A composite action or reusable workflow encapsulates all common setup steps.
  • The refactored pipeline is verified to be working correctly with all jobs passing.
  • The new pipeline is merged into the master branch.
  • All nox stages pass.
  • Coverage >= 97%.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.

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

## Metadata - **Branch**: `task/v3.8.0-ci-refactor-redundant-setup-steps` - **Commit Message**: `chore(ci): refactor CI pipeline to eliminate redundant setup steps via composite action` - **Milestone**: v3.8.0 - **Parent Epic**: #397 ## Background and Context The `ci.yml` workflow contains a significant amount of redundant setup steps across multiple jobs. The `lint`, `typecheck`, `security`, `quality`, `unit_tests`, `integration_tests`, `e2e_tests`, `coverage`, and `build` jobs all have identical steps for: 1. Installing Node.js 2. Checking out the code 3. Installing `uv` and `nox` This redundancy makes the pipeline configuration harder to maintain and increases the chance of inconsistencies when setup steps need to be updated (e.g., changing a Node.js or Python version requires editing every job individually). **Area**: CI/CD ## Expected Behavior A composite action or reusable workflow encapsulates the common setup steps. All applicable CI jobs call this shared setup instead of duplicating the steps inline, resulting in a significantly shorter and more maintainable `ci.yml`. ## Subtasks - [ ] Investigate using a composite action or a reusable workflow to encapsulate the common setup steps (Node.js install, repo checkout, `uv`/`nox` install). - [ ] Refactor the `ci.yml` workflow to use the new composite action or reusable workflow in all applicable jobs (`lint`, `typecheck`, `security`, `quality`, `unit_tests`, `integration_tests`, `e2e_tests`, `coverage`, `build`). - [ ] Ensure that the refactored pipeline is still readable and maintainable. - [ ] Verify that the refactored pipeline runs successfully and that all jobs produce the same results as before. - [ ] Run `nox` (all default sessions), fix any errors. - [ ] Verify coverage >= 97% via `nox -s coverage_report`. ## Definition of Done - [ ] The `ci.yml` workflow is refactored to remove redundant setup steps. - [ ] A composite action or reusable workflow encapsulates all common setup steps. - [ ] The refactored pipeline is verified to be working correctly with all jobs passing. - [ ] The new pipeline is merged into the `master` branch. - [ ] All nox stages pass. - [ ] Coverage >= 97%. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure | Agent: ca-new-issue-creator
freemo added this to the v3.8.0 milestone 2026-04-02 23:10:55 +00:00
Author
Owner

Closing as duplicate of #1604.

Both issues address the same problem: reducing redundant setup steps in CI jobs. #1604 was filed first and has a more comprehensive scope (evaluating both Docker image and composite action approaches). #1606 is also a duplicate. All work should be consolidated in #1604.

Also note that #1540 (already triaged as Could Have) covers the related "reusable workflows" approach.


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

Closing as duplicate of #1604. Both issues address the same problem: reducing redundant setup steps in CI jobs. #1604 was filed first and has a more comprehensive scope (evaluating both Docker image and composite action approaches). #1606 is also a duplicate. All work should be consolidated in #1604. Also note that #1540 (already triaged as Could Have) covers the related "reusable workflows" approach. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
freemo 2026-04-02 23:18:45 +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.

Blocks
#397 Epic: Server & Autonomy Infrastructure
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#1612
No description provided.