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

[performance] support skipping re-export steps when no changes to a workspace

    • RHDH COPE 3287

      Found a new problem that happens if you only run against a PARTIAL set of updates (eg., one workspace, not all 24)
      if no change to the workspace folder why are we re-exporting?

      update only bulk-import workspace
      ./build/ci/sync-midstream.sh -b rhdh-1.9-rhel-9 --debug --nopush --force-clone "bulk-import" --skip-clone workspaces/  --nosyncpatches
      
      ...
      
      [INFO] [3/22] [analytics] Re-export
      Scanning for analytics package.json files... found 1
       * /home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog/workspaces/analytics
      
      [1/1] Export workspace: /home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog/workspaces/analytics
      [1/1] Command: time /home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog/build/scripts/export-dynamic.sh
      
      
      [DEBUG] [export 1/1] [yarn step 1/2] [analytics] yarn install --immutable
      
      real	1m35.022s
      user	0m38.661s
      sys	0m50.807s
      
      [DEBUG] [export 1/1] [yarn step 2/2] [analytics] yarn tsc
      
      real	0m4.876s
      user	0m5.382s
      sys	0m1.352s
      [1/1] Run export-dynamic.sh in /home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog/workspaces/analytics ===================>
      /home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog/build/scripts/export-dynamic.sh: line 109: pushd: plugins/analytics-module-ga4: No such file or directory
      
      real	0m0.034s
      user	0m0.019s
      sys	0m0.009s
      ✗ Failed to export unknown
      
      [1/1] <=================== export-dynamic.sh failed! Must exit!
      
      [ERROR] Failed exports (2)! Must exit!
        ✗ unknown
      [ERROR] [3/22] [analytics] Re-export failed
      [INFO] [4/22] [backstage] Re-export

      then later...

      [ERROR] Loop 3 had 5 failure(s):
        - analytics:export-failed
        - backstage:export-failed
        - global-floating-action-button:export-failed
        - global-header:export-failed
        - roadie-backstage-plugins:export-failed
      

      So we need to inject some "if workspace not changed, skip this step" logic into sync-midstream.sh

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

                Created:
                Updated:
                Resolved: