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

Spike: Dynamic export commands need to be updated to Yarn 3

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • 1.4
    • 1.4
    • Build, Dynamic plugins
    • None
    • RHDH Core Platform 3265
    • Critical

      Description of problem:

      The following files use deprecated/non-working --production flags:

      When you run this with Yarn 3.8.6, the new default in janus showcase for 1.4, you get:

      $➔ yarn install --production
      ➤ YN0050: The --production option is deprecated on 'install'; use 'yarn workspaces focus' instead
      

      And nothing happens.

      The --cwd flag is also no longer working, throwing this error:

      $➔ yarn --cwd dist-dynamic install 
      Ambiguous Syntax Error: Cannot find which to pick amongst the following alternatives:
      
        0. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0]
        1. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0]
      
      While running --cwd dist-dynamic install
      

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

      Use latest plugins repo code from main, and yarn 3.8.6

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Downstream builds are broken with this error:

      [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: Ambiguous Syntax Error: Cannot find which to pick amongst the following alternatives:
      [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: 
      [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic:   0. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0]
      [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic:   1. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0]
      [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: 
      [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: While running --cwd dist-dynamic install --production --network-timeout 600000
      [build] backstage-plugin-scaffolder-backend-module-gerrit:export-dynamic: ERROR: command finished with error: command (/opt/app-root/src/dynamic-plugins/wrappers/backstage-plugin-scaffolder-backend-module-gerrit-dynamic) /tmp/xfs-83e0e93f/yarn run export-dynamic exited (1)
      

      ...

      [build] backstage-plugin-scaffolder-backend-module-gerrit#export-dynamic: command (/opt/app-root/src/dynamic-plugins/wrappers/backstage-plugin-scaffolder-backend-module-gerrit-dynamic) /tmp/xfs-83e0e93f/yarn run export-dynamic exited (1)
      [build] 
      [build]  Tasks:    67 successful, 134 total
      [build] Cached:    0 cached, 134 total
      [build]   Time:    1m55.883s 
      [build] Failed:    backstage-plugin-scaffolder-backend-module-gerrit#export-dynamic
      [build] 
      [build]  ERROR  run failed: command  exited (1)
      [build] subprocess exited with status 1
      [build] subprocess exited with status 1
      [build] Error: building at STEP "RUN "$YARN" export-dynamic --filter=./dynamic-plugins/wrappers/*": exit status 1
      

      https://konflux.apps.stone-prod-p02.hjvn.p1.openshiftapps.com/application-pipeline/workspaces/rhdh/applications/rhdh-1/pipelineruns/rhdh-hub-1-on-pull-request-pwslw/logs

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

                Created:
                Updated:
                Resolved: