Builds and publishes the O3 Frontend

Build: #325 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Job result summary

Completed
Duration
3 minutes
Agent
xiao.openmrs.org
Revision
02ac6b6c8bf048dc5827a56777f42bcb3b03b497 02ac6b6c8bf048dc5827a56777f42bcb3b03b497
Fixed in
#326 (Manual run by Github Actions)
No failed test found. A possible compilation error occurred.

Error summary

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

#8 [linux/amd64 internal] load metadata for docker.io/library/nginx:1.25-alpine
#8 DONE 0.2s

#9 [linux/amd64 internal] load metadata for docker.io/library/node:18-alpine
#9 ...

#10 [linux/arm64 internal] load metadata for docker.io/library/nginx:1.25-alpine
#10 DONE 0.4s

#9 [linux/amd64 internal] load metadata for docker.io/library/node:18-alpine
#9 DONE 0.7s

#11 [internal] load build context
#11 transferring context: 6.58kB done
#11 DONE 0.0s

#12 [linux/amd64 dev 1/8] FROM docker.io/library/node:18-alpine@sha256:c698ffe060d198dcc6647be78ea1683363f12d5d507dc5ec9855f1c55966ffdd
#12 resolve docker.io/library/node:18-alpine@sha256:c698ffe060d198dcc6647be78ea1683363f12d5d507dc5ec9855f1c55966ffdd 0.1s done
#12 DONE 0.1s

#13 [linux/amd64 stage-1 1/8] FROM docker.io/library/nginx:1.25-alpine@sha256:31bad00311cb5eeb8a6648beadcf67277a175da89989f14727420a80e2e76742
#13 resolve docker.io/library/nginx:1.25-alpine@sha256:31bad00311cb5eeb8a6648beadcf67277a175da89989f14727420a80e2e76742
#13 resolve docker.io/library/nginx:1.25-alpine@sha256:31bad00311cb5eeb8a6648beadcf67277a175da89989f14727420a80e2e76742 0.1s done
#13 DONE 0.1s

#14 [linux/arm64 stage-1 1/8] FROM docker.io/library/nginx:1.25-alpine@sha256:31bad00311cb5eeb8a6648beadcf67277a175da89989f14727420a80e2e76742
#14 resolve docker.io/library/nginx:1.25-alpine@sha256:31bad00311cb5eeb8a6648beadcf67277a175da89989f14727420a80e2e76742 0.1s done
#14 DONE 0.1s

#12 [linux/amd64 dev 1/8] FROM docker.io/library/node:18-alpine@sha256:c698ffe060d198dcc6647be78ea1683363f12d5d507dc5ec9855f1c55966ffdd
#12 DONE 0.2s

#12 [linux/amd64 dev 1/8] FROM docker.io/library/node:18-alpine@sha256:c698ffe060d198dcc6647be78ea1683363f12d5d507dc5ec9855f1c55966ffdd
#12 sha256:d3da4a73e4df700cd719baa5e2d175a2cda03f72b893c73a4c7063ae89685543 450B / 450B 0.1s done
#12 sha256:f8ecf2fb4bd9a228128a2638a8bd59e1a2b1348019ff7d4ea6de2431a7617965 2.34MB / 2.34MB 0.1s done
#12 sha256:2694e4502e2414f1f0ecb8d3216bd3dd8fdd19fc9edeef31ac653b250fe11e5b 20.97MB / 39.81MB 0.2s
#12 sha256:2694e4502e2414f1f0ecb8d3216bd3dd8fdd19fc9edeef31ac653b250fe11e5b 39.81MB / 39.81MB 0.3s done
#12 extracting sha256:2694e4502e2414f1f0ecb8d3216bd3dd8fdd19fc9edeef31ac653b250fe11e5b
#12 extracting sha256:2694e4502e2414f1f0ecb8d3216bd3dd8fdd19fc9edeef31ac653b250fe11e5b 1.5s done
#12 extracting sha256:f8ecf2fb4bd9a228128a2638a8bd59e1a2b1348019ff7d4ea6de2431a7617965 0.1s done
#12 DONE 2.1s

#12 [linux/amd64 dev 1/8] FROM docker.io/library/node:18-alpine@sha256:c698ffe060d198dcc6647be78ea1683363f12d5d507dc5ec9855f1c55966ffdd
#12 extracting sha256:d3da4a73e4df700cd719baa5e2d175a2cda03f72b893c73a4c7063ae89685543 0.0s done
#12 DONE 2.2s

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

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

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

#18 [linux/amd64 dev 5/8] COPY spa-build-config.json .
#18 DONE 0.1s

#19 [linux/amd64 dev 6/8] RUN npx --legacy-peer-deps openmrs@next assemble --manifest --mode config --config spa-assemble-config.json --target ./spa
#19 1.253 npm WARN exec The following package was not found and will be installed: openmrs@5.5.1-pre.1659
#19 163.3 npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
#19 163.4 npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
#19 163.6 npm WARN deprecated phin@2.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
#19 163.7 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
#19 164.0 npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
#19 168.6 npm WARN deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0
#19 168.7 npm WARN deprecated workbox-google-analytics@6.6.0: It is not compatible with newer versions of GA starting with v4, as long as you are using GAv3 it should be ok, but the package is not longer being maintained
#19 194.6 [openmrs] Reading configuration /app/spa-assemble-config.json ...
#19 194.6 [openmrs] Assembling dependencies and building import map and routes registry...
#19 201.7 [openmrs] Finished assembling frontend distribution
#19 DONE 202.2s

#20 [linux/amd64 dev 7/8] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa
#20 5.494 npm WARN exec The following package was not found and will be installed: openmrs@5.5.1-pre.1665
#20 6.786 npm ERR! code ETARGET
#20 6.793 npm ERR! notarget No matching version found for openmrs@5.5.1-pre.1665.
#20 6.796 npm ERR! notarget In most cases you or one of your dependencies are requesting
#20 6.799 npm ERR! notarget a package version that doesn't exist.
#20 6.803
#20 6.804 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-28T19_23_06_614Z-debug-0.log
#20 ERROR: process "/bin/sh -c npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa" did not complete successfully: exit code: 1
------
> [linux/amd64 dev 7/8] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa:
#20 5.494 npm WARN exec The following package was not found and will be installed: openmrs@5.5.1-pre.1665
#20 6.786 npm ERR! code ETARGET
#20 6.793 npm ERR! notarget No matching version found for openmrs@5.5.1-pre.1665.
#20 6.796 npm ERR! notarget In most cases you or one of your dependencies are requesting
#20 6.799 npm ERR! notarget a package version that doesn't exist.
#20 6.803
#20 6.804 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-28T19_23_06_614Z-debug-0.log
------
Dockerfile:17
--------------------
  15 |     ARG CACHE_BUST
  16 |     RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-assemble-config.json --target ./spa
  17 | >>> RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa
  18 |     RUN if [ ! -f ./spa/index.html ]; then 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; fi
  19 |     
--------------------
error: failed to solve: process "/bin/sh -c npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa" did not complete successfully: exit code: 1