Builds and publishes the O3 Frontend

Build: #405 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Job result summary

Completed
Duration
2 minutes
Agent
xiao.openmrs.org
Revision
78b3848f6083be882a7d2b9cd5ab15346bb3beeb
Fixed in
#406 (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.

#4 CACHED

#5 [internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s

#6 [auth] library/nginx:pull token for registry-1.docker.io
#6 DONE 0.0s

#7 [auth] library/node:pull token for registry-1.docker.io
#7 DONE 0.0s

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

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

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

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

#12 [internal] load build context
#12 transferring context: 6.58kB done
#12 DONE 0.1s

#13 [linux/amd64 dev 1/8] FROM docker.io/library/node:18-alpine@sha256:80338ff3fc4e989c1d5264a23223cec1c6014e812e584e825e78d1a98d893381
#13 resolve docker.io/library/node:18-alpine@sha256:80338ff3fc4e989c1d5264a23223cec1c6014e812e584e825e78d1a98d893381 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

#13 [linux/amd64 dev 1/8] FROM docker.io/library/node:18-alpine@sha256:80338ff3fc4e989c1d5264a23223cec1c6014e812e584e825e78d1a98d893381
#13 DONE 0.1s

#15 [linux/amd64 dev 2/8] RUN mkdir -p /app
#15 CACHED

#16 [linux/amd64 dev 3/8] WORKDIR /app
#16 CACHED

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

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

#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.350 npm WARN exec The following package was not found and will be installed: openmrs@5.5.1-pre.1701
#19 133.4 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 133.5 npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
#19 133.6 npm WARN deprecated phin@2.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
#19 133.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 133.9 npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
#19 136.7 npm WARN deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0
#19 136.9 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 164.5 [openmrs] Reading configuration /app/spa-assemble-config.json ...
#19 164.5 [openmrs] Assembling dependencies and building import map and routes registry...
#19 170.9 [openmrs] Finished assembling frontend distribution
#19 170.9 npm notice
#19 170.9 npm notice New patch version of npm available! 10.5.0 -> 10.5.2
#19 170.9 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.2>
#19 170.9 npm notice Run `npm install -g npm@10.5.2` to update!
#19 170.9 npm notice
#19 DONE 171.3s

#20 [linux/amd64 dev 7/8] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa
#20 2.992 npm WARN exec The following package was not found and will be installed: openmrs@5.5.1-pre.1702
#20 4.023 npm ERR! code ETARGET
#20 4.028 npm ERR! notarget No matching version found for openmrs@5.5.1-pre.1702.
#20 4.028 npm ERR! notarget In most cases you or one of your dependencies are requesting
#20 4.028 npm ERR! notarget a package version that doesn't exist.
#20 4.030
#20 4.030 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-04-14T03_46_59_046Z-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:
WARN exec The following package was not found and will be installed: openmrs@5.5.1-pre.1702
ERR! code ETARGET
#20 4.028 npm ERR! notarget No matching version found for openmrs@5.5.1-pre.1702.
#20 4.028 npm ERR! notarget In most cases you or one of your dependencies are requesting
#20 4.028 npm ERR! notarget a package version that doesn't exist.
#20 4.030
#20 4.030 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-04-14T03_46_59_046Z-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