Skip to content

feat(pipeline): generated cluster pipeline with cleanup, deploy and test stages - #5956

Open
balajikumaran-c-s wants to merge 5 commits into
dell:mainfrom
balajikumaran-c-s:feat/pipeline-cluster-pipeline
Open

balajikumaran-c-s wants to merge 5 commits into
dell:mainfrom
balajikumaran-c-s:feat/pipeline-cluster-pipeline

Conversation

@balajikumaran-c-s

@balajikumaran-c-s balajikumaran-c-s commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

PR Title

feat(pipeline): generated cluster pipeline with cleanup, deploy and test stages

Description of the Solution

Adds the cluster pipeline of the FVT automation, generated by pipeline_render.py (merged earlier) from tables, so it cannot drift from the job logic in pipeline_ci.py (merged earlier). Every job is a one-line call of pipeline_ci.py. Order: initialization, then a cleanup stage and its own cleanup test stage for every domain, the Omnia cleanup (omnia.sh --cleanup --all) and its test, setup_main (install and input copy), test_main_installation, then each domain's deploy stage followed by its test stage (the orchestrator is followed by a pxeboot stage before its test), and summary. The Omnia cleanup, the install and everything after them are blocked when any selected cleanup or cleanup test did not pass. Replaces the 1,000-line hand-written .gitlab-ci-cluster.yml. Split out of #5924.

Related Issue

Issue link to be added by the author. Part of the FVT pipeline redesign in the draft PR #5924, which stays open until the pieces are merged. Builds on the merged library, engine, trigger, renderer and utils PRs. The build stream pipeline follows in the last PR of the series.

Changes

Renderer (pipeline_render.py)

  • Adds the cluster kind: the cleanup, cleanup-test, deploy and test jobs with their rules (mode, DOMAINS, SKIP_STAGES words matched exactly, allow_failure of the cleanups and tests), the pxeboot job between orchestrator and test_orchestrator, the variables: block, the stage order and the header comment.

Cluster pipeline (.gitlab-ci-cluster.yml, generated)

  • Rendered file; pipeline_render.py --check fails when it is not the rendering.

Documentation

  • README.md, CLUSTER_PIPELINE.md (new), PIPELINE_MODES.md, QUICKSTART.md, TROUBLESHOOTING.md, docs/README.md: stages, modes, skip words, the cleanup gate, the report and the mail.

Utils test settings (test/utils)

  • The utils FVT cleanup flags of the pipeline (domain_vars.py, fvt/README.md).

Files Changed

File Change Type Description
test/pipeline/pipeline_render.py Modified Cluster kind of the renderer
test/pipeline/.gitlab-ci-cluster.yml Modified Generated cluster pipeline
test/pipeline/README.md, docs/CLUSTER_PIPELINE.md, docs/PIPELINE_MODES.md, docs/QUICKSTART.md, docs/TROUBLESHOOTING.md, docs/README.md Modified / Added Documentation
test/utils/library/vars/domain_vars.py, test/utils/fvt/README.md Modified Utils cleanup markers

Testing

  • pipeline_render.py --check: up to date; the generated cluster file is byte-identical to the one of the draft Feat/fvt cleanup pipeline redesign #5924.
  • Pylint of pipeline_render.py: 9.34/10, above the repository threshold of 8.
  • PR Effective Lines: 917 of 1000; compliance gate for the pipeline domain: PASS.
  • GitLab CI lint accepted the cluster pipeline file when it was generated for Feat/fvt cleanup pipeline redesign #5924.
  • End to end: the combined change (this PR with the others of the series, as branch Feat/fvt cleanup pipeline redesign #5924) was run on the automation cluster. This PR alone was not run separately; once the split PRs are merged, the pipeline will be run once more from main.

Backward Compatibility

  • Replaces .gitlab-ci-cluster.yml. The variables and modes of the parent pipeline are unchanged. The old cluster file called send_email.py and inline shell; the new one calls pipeline_ci.py (already on main). send_email.py is removed in the last PR of the series, because the build stream pipeline still uses it.

Security Review

  • Input Validation: the generated rules match SKIP_STAGES words exactly; values are validated by the scripts the jobs call.
  • Secret Management: N/A: no secret in the files; the OIM password, host key and OpenBao and mail credentials stay CI/CD variables.
  • Path Security: N/A.
  • Command Injection: N/A: the jobs call fixed pipeline_ci.py commands.
  • Template Injection: N/A.
  • Network / TLS: SSH needs a host key unless explicitly skipped (in pipeline_ci.py).
  • Container / K8s: N/A.
  • Logging: Secrets masked? Job logs shown in the report and the mail are redacted by the library.
  • Crypto / Tokens: N/A.
  • Dependencies: N/A.
  • Permissions / Temp files: N/A.
  • Testing: Not in this PR; see Testing.

Security Notes: None.

Suggested Reviewers

Reviewer Review Focus
Pipeline owners Stage order, rules, cleanup gate, renderer tables
Test automation owners Fit with the build stream PR that follows

…est stages

pipeline_render.py renders .gitlab-ci-cluster.yml: initialization, a cleanup stage and a cleanup test
stage for every domain, the Omnia cleanup and its test, setup_main, test_main_installation, then each
domain's deploy stage followed by its test (orchestrator: deploy, pxeboot, test), and summary. Every
job is a one-line call of pipeline_ci.py. Docs: README, CLUSTER_PIPELINE, PIPELINE_MODES, QUICKSTART,
TROUBLESHOOTING.

Signed-off-by: balajikumaran-c-s <balajikumaran.cs@dell.com>
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Secure Code Review

Advisory only: this check never blocks the PR. It scans the lines added by this PR against secure-coding rules derived from recent security fixes in this repository.

Result: 17 passed, 0 failed (1 file(s) scanned)

Checklist

  • PASS SEC-01 No hardcoded credentials
  • PASS SEC-04 No shell / command injection sinks
  • PASS SEC-05 Ansible shell/command variables are quoted
  • PASS SEC-06 No unsafe Jinja lookups
  • PASS SEC-07 YAML parsed safely
  • PASS SEC-11 Secrets not written to logs or errors
  • PASS SEC-12 Swallowed exceptions are logged
  • PASS SEC-13 Safe permissions on files and directories
  • PASS SEC-14 Secure temporary files
  • PASS SEC-15 Path inputs validated against traversal
  • PASS SEC-16 Input validated before shell/SSH/config use
  • PASS SEC-17 Container base images pinned by digest
  • PASS SEC-18 Python dependencies pinned to exact versions
  • PASS SEC-19 Kubernetes / pod hardening
  • PASS SEC-20 Firewall / network exposure not widened
  • PASS SEC-21 Strong crypto and token handling
  • PASS SEC-22 CSV/injection-safe output

Findings are heuristic; reviewers should confirm each one. Suppress a justified finding with a # nosec comment and a short reason.

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Compliance Gate

Result: 2 passed, 0 not passed (2 domain scope(s) checked; unchanged domains are skipped)

Not checked (no changes in that domain): src/build_stream, src/discovery, src/image_build_manager, src/main, src/orchestrator, src/repo_manager, src/telemetry, src/utils, svt/svt, test/build_stream, test/discovery, test/image_build_manager, test/main, test/orchestrator, test/repo_manager, test/telemetry

pipeline/pipeline: PASSED

  • PASSED score 100.0, baseline 100.0
  • No findings
  • Open findings: 0

test/utils: PASSED

  • PASSED score 87.8, baseline 87.8
  • KNOWN DEBT: Test metadata / Unique IDs: UTILS_FVT_COLLECT_NEG001, UTILS_FVT_COLLECT_NEG002, UTILS_FVT_COLLECT_NEG003
  • OPEN: Test metadata / Canonical ID format: UTILS_FVT_COLLECT_NEG001, UTILS_FVT_COLLECT_NEG002, UTILS_FVT_COLLECT_NEG003, UTILS_FVT_COLLECT_NEG004, UTILS_FVT_INSTALL_OS_NEG001, UTILS_FVT_INSTALL_OS_NEG002
  • KNOWN DEBT: Security/HPC / Blocking security patterns: setup_env.sh accepts a secret-valued password argument; setup_env.sh accepts secret JSON in process arguments; datasets/generator/profiles/defaults.yml:89 embed
  • Open findings: 1

…uploads

Signed-off-by: balajikumaran-c-s <balajikumaran.cs@dell.com>
…ls commands

Signed-off-by: balajikumaran-c-s <balajikumaran.cs@dell.com>
The utils FVT tests call run_on_host from omnia_auto instead of host.run, test_creds.yml is ignored by
the repository .gitignore (its waiver is removed), and nft/README.md has the NFT inventory. The
utils baseline is raised to the new score (79.32 to 87.78). The test IDs named NEG... are not renamed
here: they are duplicated across registry sections and published in reports.

Signed-off-by: balajikumaran-c-s <balajikumaran.cs@dell.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant