Uploaded image for project: 'Red Hat OpenShift Control Planes'
  1. Red Hat OpenShift Control Planes
  2. CNTRLPLANE-1673

Add Claude Code command to test tag pipeline changes pre-merge

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • HyperShift
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None

      User Story

      As a HyperShift developer, I want to test tag pipeline changes before merging PRs, so that I can validate fixes (like enterprise contract violations) without needing to delete and recreate tags or wait for merge.

      Background

      When making changes to Konflux tag pipelines (.tekton/*-tag.yaml), there's currently no easy way to test them before merging. Developers have to either:

      • Merge the PR and hope it works
      • Delete and recreate tags (requires force push, not ideal)
      • Manually create complex PipelineRun YAMLs

      Proposed Solution

      Create a Claude Code slash command /test-tag-pipeline that automates manual PipelineRun creation for testing.

      Functionality

      The command should:
      1. Accept a tag name and optional branch name
      2. Get the commit SHA that the tag points to
      3. Fetch the updated pipeline definition from the specified branch
      4. Replace template variables with actual tag values
      5. Create a manual PipelineRun in the Konflux namespace
      6. Output monitoring commands for the user

      Example Usage

      # Test main branch pipeline with existing tag
      /test-tag-pipeline v0.1.69
      
      h1. Test PR branch pipeline with existing tag
      /test-tag-pipeline v0.1.69 my-fix-branch
      

      Value

      • Faster iteration on pipeline fixes
      • Safer validation before merging
      • No need to manipulate git tags
      • Reusable tool for all tag pipeline testing

              Unassigned Unassigned
              asegurap1@redhat.com Antoni Segura Puimedon
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: