Skip to content

Conversation

cryptodev-2s
Copy link
Contributor

Fix Build, Lint, and Test workflow by replacing yarn --immutable --immutable-cache with yarn --immutable

@cryptodev-2s cryptodev-2s requested a review from a team as a code owner July 18, 2024 17:19
@cryptodev-2s cryptodev-2s changed the title fix: lint workflow dependencies installation fix: build-lint-test workflow dependencies installation Jul 18, 2024
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --immutable --immutable-cache
- run: yarn --immutable

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build is failing only for the node version 22.x and works fine for 18.x and 20.x. But this change will remove the --immutable-cache for the other two versions which are working fine.
Do we want that way?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks more like the build is not working for any version. The v18 and v20 build jobs were aborted because v22 failed.

Copy link

@kanthesha kanthesha Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. yeah, maybe because of v22 aborted. I tried to re-run now; 18.x build successfully. And also checked the eip 1193 PR in the same repo, v18 and v20 build were fine and failed for v22.

18.x & 20.x
Run yarn --immutable --immutable-cache
➤ YN0000: ┌ Resolution step
Resolution step
➤ YN0000: └ Completed in 0s 22[4](https://github.com/MetaMask/eth-json-rpc-middleware/actions/runs/9993141696/job/27619852600?pr=317#step:4:5)ms
➤ YN0000: ┌ Fetch step
Fetch step
➤ YN0000: └ Completed in 0s 2[5](https://github.com/MetaMask/eth-json-rpc-middleware/actions/runs/9993141696/job/27619852600?pr=317#step:4:6)5ms
➤ YN0000: ┌ Link step
Link step
➤ YN0000: └ Completed in 4s 55ms
no allowed lifecycle scripts found in configuration
running lifecycle scripts for top level package
➤ YN0000: Done with warnings in 5s 5[8](https://github.com/MetaMask/eth-json-rpc-middleware/actions/runs/9993141696/job/27619852600?pr=317#step:4:10)3ms

In case of v22, the link step is failing!
22.x

Run yarn --immutable --immutable-cache
➤ YN0000: ┌ Resolution step
Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
Link step

@mcmire
Copy link
Contributor

mcmire commented Jul 19, 2024

I pushed up a PR to upgrade Node and fix CI here: #321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants