hyperledger-cacti / cacti

Hyperledger Cacti is a new approach to the blockchain interoperability problem
https://wiki.hyperledger.org/display/cactus
Apache License 2.0
344 stars 286 forks source link

test(ghcr-example-supply-chain-app): fix missing patch @ionic-native #3601

Open petermetz opened 4 weeks ago

petermetz commented 4 weeks ago

Description

The container image build of the supply chain app example is broken on the CI. This is most likely due to the outdated and hardcoded npm install versions within the image.

Logs

#13 9.610 ➤ YN0001: │ Error: @ionic-native/splash-screen@patch:@ionic-native/splash-screen@npm%3A5.36.0#~/.yarn/patches/@ionic-native-splash-screen-npm-5.36.0-531cbbe0f8.patch: ENOENT: no such file or directory, open '/usr/src/app/.yarn/patches/@ionic-native-splash-screen-npm-5.36.0-531cbbe0f8.patch'
#13 9.610 ➤ YN0000: └ Completed in 4s 81ms
#13 9.610 ➤ YN0000: · Failed with errors in 4s 98ms
ERROR: failed to solve: process "/bin/bash --login -i -c source ~/.bashrc &&     nvm install 18.18.2 &&     npm i -g corepack && corepack enable && corepack prepare yarn@4.3.1 --activate &&     yarn init --yes --private &&     yarn config set nodeLinker node-modules &&     yarn add @hyperledger/cactus-example-supply-chain-backend@${NPM_PKG_VERSION} --exact &&     yarn add ethers@6.8.1 --exact &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-test-tooling\": \"\\($NPM_PKG_VERSION)\" }' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-api-client\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-cmd-api-server\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-common\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-core\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-core-api\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-example-supply-chain-business-logic-plugin\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-example-supply-chain-frontend\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-plugin-consortium-manual\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-plugin-keychain-memory\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-plugin-ledger-connector-besu\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-plugin-ledger-connector-fabric\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     cat /usr/src/app/package.json | jq --arg NPM_PKG_VERSION ${NPM_PKG_VERSION} '.resolutions += { \"@hyperledger/cactus-plugin-ledger-connector-xdai\": \"\\($NPM_PKG_VERSION)\" } ' | sponge /usr/src/app/package.json &&     yarn install" did not complete successfully: exit code: 1

2024-10-24T20-01-00-cacti-ghcr-supply-chain-app-crash.log

Reproduction steps:

DOCKER_BUILDKIT=1 docker build . -f ./examples/cactus-example-supply-chain-backend/Dockerfile -t cactus-example-supply-chain-app

Acceptance Criteria

  1. The container image build is passing again.