Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-8538

[plugin-catalog] prevent syncing workspaces if sources.json is unchanged

      Currently, when sync-midstream.sh runs in the rhdh-plugin-catalog repo, it will git clone 51 times for all the various workspaces defined in the repo.

      We can speed this up by checking the value of https://github.com/redhat-developer/rhdh-plugin-export-overlays/blob/main/workspaces/azure-devops/source.json against the local file https://gitlab.cee.redhat.com/rhidp/rhdh-plugin-catalog/-/blob/rhdh-1-rhel-9/overlay-repo/workspaces/azure-devops/source.json?ref_type=heads

      If the file is identical, we would default to skipping the git clone and update for that folder; we will also need a --force flag to allow updating specific workspaces (and a --always-clone for all workspaces), should we want to override this new faster behaviour.

      This will also make it easier to debug problems like RHDHBUGS-1950

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              RHIDP - Cope
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: