Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-8876

QE - [1.20.x] Pipeline builder UI fails to save buildah task with default BUILD_ARGS parameter

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • Pipelines 1.20.0
    • None
    • UI
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      There was a validation being fired for all the task param where default was [''], this is because of a required check that was being done in yup on arrays which does not allow empty string in array if a field is marked as required.
      The required is now removed, as there is already a .test method to check the required field validation
      Show
      There was a validation being fired for all the task param where default was [''], this is because of a required check that was being done in yup on arrays which does not allow empty string in array if a field is marked as required. The required is now removed, as there is already a .test method to check the required field validation
    • Bug Fix

      Description of problem:

      Pipeline builder UI fails to save buildah task with default BUILD_ARGS parameter

      Workaround:

      This issue can be worked around via removing the element, making the value an empty array - but the UI does not indicate that this needs to be done.

      Prerequisites (if any, like setup, operators/versions):

      OpenShift Pipelines operator

      Steps to Reproduce

      1. Navigate to the OpenShift Pipelines Operator pipeline builder in the OpenShift console.
      2. Add the buildah task to a new pipeline.
      3. Observe the BUILD_ARGS parameter in the side panel. Note that its default value is [""] (a single element with an empty string).
      4. Do not modify this parameter.
      5. Attempt to save the pipeline by clicking the "Create" button.

       

      Actual Results:

      The UI displays a validation error and prevents the pipeline from being saved.

      Expected results:

      The pipeline should be created successfully, as the buildah task can run without issue with the default [""] value for the BUILD_ARGS parameter.

      Reproducibility (Always/Intermittent/Only Once):

      Always

              rh-ee-apalit Anwesha Palit
              rhn-support-disharma Diksha Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Time Spent - 1 hour Remaining Estimate - 2 days, 7 hours
                  2d 7h
                  Logged:
                  Time Spent - 1 hour Remaining Estimate - 2 days, 7 hours
                  1h