Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-9175

Pipeline builder (maybe Quickstart dialog in general?) doesn't update correctly when new data arrives

    • Quality / Stability / Reliability
    • None
    • None
    • None
    • Low
    • None
    • Unspecified
    • None
    • Rejected
    • None
    • None
    • If docs needed, set a value
    • None
    • None
    • None
    • None
    • None

      Description of problem:
      When the user opens the Pipeline Builder and selects 'Add task' the Quickstart dialog opens to show ClusterTasks, Tasks from the current namespace, and installable tasks from Tekton Hub.

      When the user opens this dialog before all data are fetched, the list is not updated correctly until the user updated the search again.

      Noticed two cases here:
      1. The data are not shown
      2. The later fetched data overrides an existing result

      This issue could be reproduced with a slow (or throttled) internet connection but it was also noticed before when the console fetches too much data from tekton hub (this is handled in #2064607).

      Version-Release number of selected component (if applicable):
      4.9+

      How reproducible:
      Sometimes, it is a race condition

      Steps to Reproduce:

      Preconditions:
      1. Install OpenShift Pipelines operator
      2. Switch to the developer perspective
      3. Navigate to Pipelines and press on "Create Pipeline" (to fetch all JS quickly)
      4. Check that you can see "git-cli" ClusterTask. ClusterTasks are installed AFTER the operator is installed asynchronously. So this could take a few minutes!

      Now try the following steps to reproduce this issue:
      1. Go to the Pipeline list, press "Cancel" if Pipeline builder is open
      2. If needed ENABLE THROTTLING (try fast 3G or slow 3G)
      3. Press "Create Pipeline"
      4. Quickly click on "Add task"
      5. Quickly type "git-cli"
      6. If not all entries are shown, try to update your search.

      Actual results:

      • Sometimes only one git-cli was shown.
      • Sometimes it overrides the "Installed" git-cli with labels "Red Hat" and "community" with

      Expected results:

      • Two git-cli should be shown reproducible, aka always.
      • When the data are fully loaded after the modal is already shown the list should update.

      Additional info:

              jakumar jaivardhan Kumar
              cjerolim Christoph Jerolimov
              None
              None
              Sanket Pathak Sanket Pathak
              None
              Red Hat Employee
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: