Skip to content

Conversation

@kanej
Copy link
Member

@kanej kanej commented Jun 20, 2025

There is a failing test in the Ignition core integration tests against the local network. EDR has altered the error message returned when there is a badly encoded error message.

This PR:

  • includes Ignition core's integration tests in main's CI
  • filters out the test waiting for an EDR fix

I chose to filter rather than remove the Solidity function as I didn't want to alter bytecode across the tests as well.

Note the CI failures are because the toolbox version updates have not been released yet.

Resolves #6908

@changeset-bot
Copy link

changeset-bot bot commented Jun 20, 2025

⚠️ No Changeset found

Latest commit: abda191

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

kanej added 2 commits June 20, 2025 15:13
In the CI use `pnpm test:ci` to run both the unit tests on Ignition core
and the integration tests against a local Hardhat network.

We force the building of everything before testing Ignition core as the
integration tests use Hardhat for the network (but not within the
production code).
@kanej kanej force-pushed the test/fix-failing-ignition-core-integration-test branch from 2a9b953 to f7196cd Compare June 20, 2025 14:14
@kanej kanej added the no changeset needed This PR doesn't require a changeset label Jun 20, 2025
We want to re-enable this test once the error message has been updated.
@kanej kanej force-pushed the test/fix-failing-ignition-core-integration-test branch from 631579c to abda191 Compare June 20, 2025 16:19
for (const abiItem of artifact.abi.filter(
// TODO: bring this test back once EDR has updated the invalid
// error message error message - I said what I said
(abi) => abi.name !== "revertWithInvalidErrorMessage"
Copy link
Member Author

Choose a reason for hiding this comment

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

I initially removed the method from the Solidity contract - but that implied fixing up bytecode assertions across the test suite.

"react-dom": "^18.2.0",
"react-router-dom": "6.11.0",
"react-tooltip": "^5.21.4",
"rimraf": "^3.0.2",
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a fix for npm clean in the ignition ui package.

"test:build": "tsc --project ./test/",
"test:coverage": "nyc mocha --recursive \"test/**/*.ts\" \"test-integrations/**/*.ts\"",
"test:integrations": "mocha --recursive \"test-integrations/**/*.ts\"",
"pretest:ci": "cd ../.. && pnpm build",
Copy link
Member Author

Choose a reason for hiding this comment

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

I can live with this for v2

@kanej kanej requested review from alcuadrado and zoeyTM June 20, 2025 16:24
@kanej kanej changed the title fix and re-enable Ignition core integration tests fix and disable Ignition core integration tests Jun 23, 2025
@kanej kanej changed the title fix and disable Ignition core integration tests Ignore test but re-enable Ignition core integration tests Jun 23, 2025
@kanej kanej merged commit c8563f7 into main Jun 23, 2025
120 of 122 checks passed
@kanej kanej deleted the test/fix-failing-ignition-core-integration-test branch June 23, 2025 10:47
@github-project-automation github-project-automation bot moved this from Backlog to Done in Hardhat Jun 23, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no changeset needed This PR doesn't require a changeset

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Ignition integration tests are failing on changed error response

3 participants