Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-78447

Epic: Remove spaghetti patterns and adopt structured job context

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • CNV QE DevOps
    • None
    • Epic: Remove spaghetti patterns and adopt structured job context
    • Quality / Stability / Reliability
    • 77
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • To Do
    • 100% To Do, 0% In Progress, 0% Done

      Goal
      Eliminate ad-hoc env/param propagation and stringly-typed workflows in CNV QE pipelines. Replace with structured, data-driven job execution context and reusable helpers to keep code DRY, maintainable, and easy to extend.

      Scope (initial)

      • Replace JUNIT_PATTERN global env handoff with explicit context passing
      • Replace infraUtils.newStringJobParam bulk propagation with structured context artifacts
      • Replace ad-hoc hidden param injection in Jenkinsfiles with shared helper or context
      • Replace DEPLOY_PARAMS env serialization with structured context storage
      • Replace string-based parameter parsing in infraUtils.getJobParams
      • Refactor stageWrapper long if/else chain to data-driven routing
      • Replace storage class inference heuristics with data-driven mapping from JOB_METADATA

      Acceptance criteria

      • New shared context API available to vars and jobs
      • Pilot refactors merged without regressions
      • Documentation updated with examples
      • Existing jobs migrated or have follow-up tickets linked

              dkeler@redhat.com Daniel Keler
              lbednar@redhat.com Lukas Bednar
              Daniel Keler Daniel Keler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: