Builds and publishes the O3 Frontend

Build: #896 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Job result summary

Completed
Duration
4 minutes
Agent
yu.openmrs.org
Revision
137906050a7325d26c531db066aea4f4e6bf7c7c 137906050a7325d26c531db066aea4f4e6bf7c7c
Fixed in
#899 (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/node:18-alpine
#8 ...

#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.2s

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

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

#12 [internal] load build context
#12 transferring context: 6.74kB done
#12 DONE 0.2s

#13 [linux/arm64 stage-1 1/8] FROM docker.io/library/nginx:1.25-alpine@sha256:516475cc129da42866742567714ddc681e5eed7b9ee0b9e9c015e464b4221a00
#13 resolve docker.io/library/nginx:1.25-alpine@sha256:516475cc129da42866742567714ddc681e5eed7b9ee0b9e9c015e464b4221a00 0.2s done
#13 DONE 0.2s

#14 [linux/amd64 dev 1/8] FROM docker.io/library/node:18-alpine@sha256:17514b20acef0e79691285e7a59f3ae561f7a1702a9adc72a515aef23f326729
#14 resolve docker.io/library/node:18-alpine@sha256:17514b20acef0e79691285e7a59f3ae561f7a1702a9adc72a515aef23f326729 0.2s done
#14 sha256:62c7e5ec2b01a374e0ad0f2299c63d7940a5bdb466c580b243b9977dc12b8ecb 444B / 444B 0.1s done
#14 sha256:bc6e437c6fa911e43ef82fe79ec3cf94625557d8426639ee7758448b8a4fb464 1.38MB / 1.38MB 0.1s done
#14 sha256:c6a83fedfae6ed8a4f5f7cbb6a7b6f1c1ec3d86fea8cb9e5ba2e5e6673fde9f6 3.62MB / 3.62MB 0.1s done
#14 extracting sha256:c6a83fedfae6ed8a4f5f7cbb6a7b6f1c1ec3d86fea8cb9e5ba2e5e6673fde9f6
#14 sha256:1475bb19bdb76a034cba9b274ea9e4298897d6e108dbc81268740d70639f2b69 7.20MB / 39.84MB 0.2s
#14 sha256:1475bb19bdb76a034cba9b274ea9e4298897d6e108dbc81268740d70639f2b69 39.84MB / 39.84MB 0.4s done
#14 extracting sha256:c6a83fedfae6ed8a4f5f7cbb6a7b6f1c1ec3d86fea8cb9e5ba2e5e6673fde9f6 0.3s done
#14 extracting sha256:1475bb19bdb76a034cba9b274ea9e4298897d6e108dbc81268740d70639f2b69
#14 extracting sha256:1475bb19bdb76a034cba9b274ea9e4298897d6e108dbc81268740d70639f2b69 1.3s done
#14 extracting sha256:bc6e437c6fa911e43ef82fe79ec3cf94625557d8426639ee7758448b8a4fb464
#14 extracting sha256:bc6e437c6fa911e43ef82fe79ec3cf94625557d8426639ee7758448b8a4fb464 0.1s done
#14 extracting sha256:62c7e5ec2b01a374e0ad0f2299c63d7940a5bdb466c580b243b9977dc12b8ecb 0.0s done
#14 DONE 2.2s

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

#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.624 npm warn exec The following package was not found and will be installed: openmrs@5.7.3-pre.2139
#19 142.1 npm warn deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
#19 143.0 npm warn deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
#19 144.9 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 145.5 npm warn deprecated phin@2.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
#19 145.9 npm warn deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0
#19 146.1 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 147.2 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 149.8 npm warn deprecated npmlog@6.0.2: This package is no longer supported.
#19 149.8 npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
#19 149.9 npm warn deprecated read-package-json@6.0.4: This package is no longer supported. Please use @npmcli/package-json instead.
#19 151.5 npm warn deprecated gauge@4.0.4: This package is no longer supported.
#19 151.8 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#19 156.9 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#19 157.0 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#19 159.4 npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
#19 159.6 npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
#19 182.6 [openmrs] Reading configuration /app/spa-assemble-config.json ...
#19 182.7 [openmrs] Assembling dependencies and building import map and routes registry...
#19 188.9 [openmrs] Finished assembling frontend distribution
#19 189.0 npm notice
#19 189.0 npm notice New minor version of npm available! 10.7.0 -> 10.8.2
#19 189.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
#19 189.0 npm notice To update run: npm install -g npm@10.8.2
#19 189.0 npm notice
#19 DONE 189.6s

#20 [linux/amd64 dev 7/8] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa
#20 5.686 [openmrs] Running build process ...
#20 67.00 [openmrs] ModuleNotFoundError: Module not found: Error: Can't resolve '@formatjs/intl-durationformat' in '/root/.npm/_npx/9145365975c7e340/node_modules/@openmrs/esm-utils/src'
#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.686 [openmrs] Running build process ...
#20 67.00 [openmrs] ModuleNotFoundError: Module not found: Error: Can't resolve '@formatjs/intl-durationformat' in '/root/.npm/_npx/9145365975c7e340/node_modules/@openmrs/esm-utils/src'
------
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