Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1991

Intermittent build failures when pushing tags and doing nightly builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 1.7.0, 1.8.0
    • Build, Upstream
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • not required; internal process problem which has resolved itself and was never customer-facing
    • Release Note Not Required
    • RHDH COPE 3280

      Description of problem:

      As noted in RHIDP-8648, GH action https://github.com/redhat-developer/rhdh/blob/main/.github/workflows/next-build-image.yaml fails fairly consistently when pushing tags, sometimes for the release-1.7 branch, and every few days for the nightlies from main.

      The last failure managed to complete the builder stage

      RUN echo "=== EXPORT DYNAMIC PLUGINS ==="; FAILED=0; \
        "$YARN" export-dynamic || true; \
        for d in $(find . -name yarn-install.log); do \
        (( FAILED = FAILED + 1 )); echo; echo $d; echo "======"; cat ${d}; \
        done; \
        if [[ $FAILED -gt 0 ]]; then exit $FAILED; fi
      
      RUN echo "=== YARN COPY DYNAMIC PLUGINS in $(pwd) ==="; "$YARN" copy-dynamic-plugins dist
      
      WORKDIR $CONTAINER_SOURCE
      

      and crapped out before starting the cleanup stage:

      # Stage 4 - Build the actual backend image and install production dependencies
      # Upstream only
      FROM skeleton AS cleanup
      

      Failure log shows:

      #[build 10/10] WORKDIR /opt/app-root/src
      #DONE 1.6s
      
       [33mwarnings found (use docker --debug to expand):
      [0m NoEmptyContinuationEmpty continuation line (line 50)
       SecretsUsedInArgOrEnvDo nouse ARG or ENV instructions for sensitive data (ENV "SEGMENT_WRITE_KEY") (line 273)
      ERRORfailed to buildfailed to receive statusrpc errorcode = Unavailable desc = error reading from serverEOF
      ##[group]Reference
      builder-53b3869b-bcc2-4eac-aace-3ab73521f467/builder-53b3869b-bcc2-4eac-aace-3ab73521f4670/luj3cpdmrh2hpsqi11x9xd1aw
      ##[endgroup]
      ##[group]Check build summary support
      Build summary supported!
      ##[endgroup]
      ##[error]buildx failed withERRORfailed to buildfailed to receive statusrpc errorcode = Unavailable desc = error reading from serverEOF
      Posjob cleanup.
      Posjob cleanup.
      ##[group]Generating build summary
      exporting build record to /home/runner/work/_temp/docker-actions-toolkit-Ys3e5e/export
      ##[warning]ERRORno record found for ref "luj3cpdmrh2hpsqi11x9xd1aw"
      ##[endgroup]
      ##[group]Removing temp folder /home/runner/work/_temp/docker-actions-toolkit-SGTCyY
      

      Steps to Reproduce

      Expected results:

      consistently passing builds, of course

      Reproducibility: Intermittent

              rh-ee-frkong Frank Kong
              nickboldt Nick Boldt
              RHIDP - Cope
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: