Plan responsible for building Docker images for the 3.x demo and development sites

Build: #1734 failed

Job: Build Frontend failed

Stages & jobs

  1. Build

  2. Deploy

  3. Generate Prefilled Containers

Job result summary

Completed
Duration
2 minutes
Agent
xindi.openmrs.org
Revision
a050b732f6ff988ec28892887b69d5cf9d532a28 a050b732f6ff988ec28892887b69d5cf9d532a28
Fixed in
#1743 (Code changes detected)
Number of retries
3
No failed test found. A possible compilation error occurred.

Error summary

The build generated some errors. See the full build log for more details.

#12 extracting sha256:824de1d006d492e037a03312c272427b62e171607bc6fb0e7db991b2eda190b7 1.5s done
#12 extracting sha256:76c34934b3319c116bffd4685ee2bcb032298ccce64b89b7081ec18ffdbd6175 0.1s done
#12 extracting sha256:fdef87f136ff3e0ba0d622cf3a573aebe6891d240d7dd55799ac0fd30a706db4
#12 extracting sha256:fdef87f136ff3e0ba0d622cf3a573aebe6891d240d7dd55799ac0fd30a706db4 0.0s done
#12 DONE 2.3s

#15 [linux/amd64 dev 2/7] RUN mkdir -p /app
#15 DONE 0.2s

#16 [linux/amd64 dev 3/7] WORKDIR /app
#16 DONE 0.1s

#17 [linux/amd64 dev 4/7] COPY spa-build-config.json .
#17 DONE 0.1s

#18 [linux/amd64 dev 5/7] RUN npx --legacy-peer-deps openmrs@next assemble --manifest --mode config --config spa-build-config.json --target ./spa
#18 1.592 npm WARN exec The following package was not found and will be installed: openmrs@5.1.1-pre.1048
#18 39.69 npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
#18 42.93 npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
#18 50.46 npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
#18 51.60 npm WARN deprecated intl-messageformat-parser@1.4.0: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
#18 51.72 npm WARN deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0
#18 79.34 [openmrs] Reading configuration ...
#18 79.36 [openmrs] Assembling the importmap ...
#18 84.46 npm notice
#18 84.46 npm notice New major version of npm available! 9.8.1 -> 10.2.0
#18 84.46 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.0>
#18 84.46 npm notice Run `npm install -g npm@10.2.0` to update!
#18 84.46 npm notice
#18 DONE 85.0s

#19 [linux/amd64 dev 6/7] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa
#19 2.459 npm WARN exec The following package was not found and will be installed: openmrs@5.1.1-pre.1048
#19 6.197 [openmrs] Running build process ...
#19 42.33 (node:37) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
#19 42.33 BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
#19 42.33         Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
#19 42.33         Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
#19 42.33 (Use `node --trace-deprecation ...` to show where the warning was created)
#19 42.82 assets by info 4.88 MiB [immutable]
#19 42.82   assets by path *.woff 1.35 MiB 90 assets
#19 42.82   assets by path *.woff2 1.04 MiB 90 assets
#19 42.82   assets by path *.js 1.18 MiB 4 assets
#19 42.82   asset openmrs.346c86458192be40.css 1.3 MiB [emitted] [immutable] [big] (name: main) 1 related asset
#19 42.82 assets by path *.png 64.8 KiB
#19 42.82   asset logo-512.png 15.5 KiB [emitted] [from: ../@openmrs/esm-app-shell/src/assets/logo-512.png] [copied]
#19 42.82   asset icon_512x512.7163efb26df832de513bc58d925ea22e.png 13.9 KiB [emitted]
#19 42.82   asset icon_384x384.c8923df6b6bd08eba5c79b78d7fcecc0.png 12.7 KiB [emitted]
#19 42.82   asset icon_256x256.c729f6e7e914b58fcea5ce91d7aa9bad.png 6.87 KiB [emitted]
#19 42.82   + 4 assets
#19 42.82 asset index.html 2.96 KiB [emitted]
#19 42.82 asset logo.svg 1.33 KiB [emitted] [from: ../@openmrs/esm-app-shell/src/assets/logo.svg] [copied]
#19 42.82 asset manifest.c61e464ba60302bdc2442acdd49954f1.json 1.2 KiB [emitted]
#19 42.82 asset favicon.ico 1.12 KiB [emitted] [from: ../@openmrs/esm-app-shell/src/assets/favicon.ico] [copied]
#19 42.82 Entrypoint main [big] 2.43 MiB (1.5 MiB) = openmrs.346c86458192be40.css 1.3 MiB openmrs.2adc611616a86d1b.js 1.13 MiB 2 auxiliary assets
#19 42.82 orphan modules 10.9 MiB (javascript) 39.7 KiB (css/mini-extract) 2.4 MiB (asset) 46.2 KiB (runtime) [orphan] 1487 modules
#19 42.82 runtime modules 19 KiB 14 modules
#19 42.82 built modules 4.39 MiB (javascript) 1.31 MiB (css/mini-extract) 420 bytes (share-init) 420 bytes (consume-shared) [built]
#19 42.82   javascript modules 4.39 MiB 234 modules
#19 42.82   css modules 1.31 MiB
#19 42.82     modules by path ../@react-spectrum/ 582 KiB 11 modules
#19 42.82     modules by path ../@openmrs/ 759 KiB 3 modules
#19 42.82   provide-module modules 420 bytes
#19 42.82     modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
#19 42.82     + 8 modules
#19 42.82   consume-shared-module modules 420 bytes
#19 42.82     modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
#19 42.82     + 8 modules
#19 42.82
#19 42.82 WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
#19 42.82 This can impact web performance.
#19 42.82 Assets:
#19 42.82   openmrs.346c86458192be40.css (1.3 MiB)
#19 42.82   openmrs.2adc611616a86d1b.js (1.13 MiB)
#19 42.82
#19 42.82 WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
#19 42.82 Entrypoints:
#19 42.82   main (2.43 MiB)
#19 42.82       openmrs.346c86458192be40.css
#19 42.82       openmrs.2adc611616a86d1b.js
#19 42.82 
#19 42.82
#19 42.82 webpack 5.88.2 compiled with 2 warnings in 35561 ms
#19 42.82 [openmrs] Build finished.
#19 DONE 43.0s

#20 [linux/amd64 dev 7/7] RUN [ ! -f "./spa/index.html" ] && echo "Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on." && exit 1
#20 ERROR: process "/bin/sh -c [ ! -f \"./spa/index.html\" ] && echo \"Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on.\" && exit 1" did not complete successfully: exit code: 1
------
> [linux/amd64 dev 7/7] RUN [ ! -f "./spa/index.html" ] && echo "Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on." && exit 1:
------
Dockerfile:14
--------------------
  12 |     RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-build-config.json --target ./spa
  13 |     RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa
  14 | >>> RUN [ ! -f "./spa/index.html" ] && echo "Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on." && exit 1
  15 |     
  16 |     FROM nginx:1.23-alpine
--------------------
error: failed to solve: process "/bin/sh -c [ ! -f \"./spa/index.html\" ] && echo \"Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on.\" && exit 1" did not complete successfully: exit code: 1