Builds and publishes the O3 Frontend

Build: #93 failed Manual run by Github Actions

Build result summary

Details

Completed
Queue duration
1 second
Duration
1 minute
Labels
None
Agent
yu.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.

Responsible

This build has been failing since #91
No one has taken responsibility

Error summary for Default Job

The job generated some errors, drill down into the full build log for more details.


#21 [linux/amd64 dev 6/8] RUN npx --legacy-peer-deps openmrs@next assemble --manifest --mode config --config spa-assemble-config.json --target ./spa
#21 ...

#17 [linux/amd64 stage-1 2/7] RUN apk update &&     apk upgrade &&     apk add --no-cache moreutils
#17 1.386 OK: 45 MiB in 64 packages
#17 1.504 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
#17 1.688 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
#17 2.230 (1/5) Installing perl (5.36.2-r0)
#17 2.961 (2/5) Installing perl-timedate (2.33-r2)
#17 2.975 (3/5) Installing perl-io-tty (1.17-r1)
#17 2.985 (4/5) Installing perl-ipc-run (20220807.0-r1)
#17 2.998 (5/5) Installing moreutils (0.67-r0)
#17 3.011 Executing busybox-1.36.1-r5.trigger
#17 3.032 OK: 84 MiB in 69 packages
#17 DONE 3.2s

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

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

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

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

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

#15 [linux/arm64 stage-1 2/7] RUN apk update &&     apk upgrade &&     apk add --no-cache moreutils
#15 4.003 v3.18.6-34-gd89a095aa61 [https://dl-cdn.alpinelinux.org/alpine/v3.18/main]
#15 4.004 v3.18.6-33-gc1e3cf9371f [https://dl-cdn.alpinelinux.org/alpine/v3.18/community]
#15 4.004 OK: 19950 distinct packages available
#15 5.958 OK: 46 MiB in 64 packages
#15 6.158 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz
#15 6.709 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz
#15 7.581 (1/5) Installing perl (5.36.2-r0)
#15 8.777 (2/5) Installing perl-timedate (2.33-r2)
#15 8.809 (3/5) Installing perl-io-tty (1.17-r1)
#15 8.822 (4/5) Installing perl-ipc-run (20220807.0-r1)
#15 8.842 (5/5) Installing moreutils (0.67-r0)
#15 8.868 Executing busybox-1.36.1-r5.trigger
#15 8.937 OK: 87 MiB in 69 packages
#15 DONE 9.2s

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

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

#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

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

#30 [linux/amd64 dev 7/8] RUN npx --legacy-peer-deps openmrs@next build --build-config spa-build-config.json --target ./spa
#30 4.159 [openmrs] Running build process ...
#30 6.041 [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 4.159 [openmrs] Running build process ...
#30 6.041 [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