Builds and publishes the O3 Frontend

Build: #92 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Job result summary

Completed
Duration
1 minute
Agent
xindi.openmrs.org
Revision
10bbb0c4e2c9ab17015e7cdcd72065e4759b7565 10bbb0c4e2c9ab17015e7cdcd72065e4759b7565
Failing since
#91 (Manual run by Github Actions)
Fixed in
#94 (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.

#15 [linux/amd64 stage-1 2/7] RUN apk update &&     apk upgrade &&     apk add --no-cache moreutils
#15 1.004 OK: 45 MiB in 64 packages
#15 1.040 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
#15 1.189 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
#15 1.728 (1/5) Installing perl (5.36.2-r0)
#15 2.437 (2/5) Installing perl-timedate (2.33-r2)
#15 2.452 (3/5) Installing perl-io-tty (1.17-r1)
#15 2.463 (4/5) Installing perl-ipc-run (20220807.0-r1)
#15 2.476 (5/5) Installing moreutils (0.67-r0)
#15 2.495 Executing busybox-1.36.1-r5.trigger
#15 2.515 OK: 84 MiB in 69 packages
#15 DONE 2.7s

#20 [linux/amd64 stage-1 3/7] RUN rm -rf /usr/share/nginx/html/*
#20 DONE 0.2s

#21 [linux/arm64 stage-1 2/7] RUN apk update &&     apk upgrade &&     apk add --no-cache moreutils
#0 0.292 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz
#0 1.153 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz
#21 ...

#22 [linux/amd64 stage-1 4/7] COPY startup.sh /usr/local/bin/startup.sh
#22 DONE 0.1s

#21 [linux/arm64 stage-1 2/7] RUN apk update &&     apk upgrade &&     apk add --no-cache moreutils
#21 3.135 v3.18.6-34-gd89a095aa61 [https://dl-cdn.alpinelinux.org/alpine/v3.18/main]
#21 3.135 v3.18.6-33-gc1e3cf9371f [https://dl-cdn.alpinelinux.org/alpine/v3.18/community]
#21 3.136 OK: 19950 distinct packages available
#21 ...

#23 [linux/amd64 stage-1 5/7] RUN chmod +x /usr/local/bin/startup.sh
#23 DONE 0.3s

#24 [linux/amd64 stage-1 6/7] COPY nginx.conf /etc/nginx/nginx.conf
#24 DONE 0.1s

#25 [linux/amd64 dev 6/8] RUN npx --legacy-peer-deps openmrs@next assemble --manifest --mode config --config spa-assemble-config.json --target ./spa
#25 2.918 npm WARN exec The following package was not found and will be installed: openmrs@5.4.1-pre.1532
#25 ...

#21 [linux/arm64 stage-1 2/7] RUN apk update &&     apk upgrade &&     apk add --no-cache moreutils
#21 5.249 OK: 46 MiB in 64 packages
#21 5.596 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz
#21 6.820 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz
#21 8.567 (1/5) Installing perl (5.36.2-r0)
#21 10.53 (2/5) Installing perl-timedate (2.33-r2)
#21 10.56 (3/5) Installing perl-io-tty (1.17-r1)
#21 10.57 (4/5) Installing perl-ipc-run (20220807.0-r1)
#21 10.59 (5/5) Installing moreutils (0.67-r0)
#21 10.63 Executing busybox-1.36.1-r5.trigger
#21 10.71 OK: 87 MiB in 69 packages
#21 DONE 10.9s

#26 [linux/arm64 stage-1 3/7] RUN rm -rf /usr/share/nginx/html/*
#26 DONE 0.2s

#27 [linux/arm64 stage-1 4/7] COPY startup.sh /usr/local/bin/startup.sh
#27 DONE 0.1s

#28 [linux/arm64 stage-1 5/7] RUN chmod +x /usr/local/bin/startup.sh
#28 DONE 0.1s

#29 [linux/arm64 stage-1 6/7] COPY nginx.conf /etc/nginx/nginx.conf
#29 DONE 0.1s

#25 [linux/amd64 dev 6/8] RUN npx --legacy-peer-deps openmrs@next assemble --manifest --mode config --config spa-assemble-config.json --target ./spa
#25 43.05 npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
#25 43.72 npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
#25 45.07 npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
#25 45.84 npm WARN deprecated workbox-cacheable-response@6.6.0: workbox-background-sync@6.6.0
#25 45.92 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
#25 48.19 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
#25 69.69 [openmrs] Reading configuration /app/spa-assemble-config.json ...
#25 69.69 [openmrs] Assembling dependencies and building import map and routes registry...
#25 77.03 [openmrs] Finished assembling frontend distribution
#25 77.08 npm notice
#25 77.08 npm notice New minor version of npm available! 10.2.3 -> 10.4.0
#25 77.08 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
#25 77.08 npm notice Run `npm install -g npm@10.4.0` to update!
#25 77.08 npm notice
#25 DONE 77.4s

#30 [linux/amd64 dev 7/8] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa
#30 5.084 [openmrs] Running build process ...
#30 7.213 [openmrs] ModuleNotFoundError: Module not found: Error: Can't resolve 'swc-loader' in '/app',ModuleNotFoundError: Module not found: Error: Can't resolve 'swc-loader' in '/app',Error: Can't find self.__WB_MANIFEST in your SW source.
#30 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:
#30 5.084 [openmrs] Running build process ...
#30 7.213 [openmrs] ModuleNotFoundError: Module not found: Error: Can't resolve 'swc-loader' in '/app',ModuleNotFoundError: Module not found: Error: Can't resolve 'swc-loader' in '/app',Error: Can't find self.__WB_MANIFEST in your SW source.
------
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