Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

feat(e2e): adds test for initial-block-height-limit argument#89

Merged
alber70g merged 4 commits intomainfrom
ag/initial-block-height-limit-test
Oct 10, 2025
Merged

feat(e2e): adds test for initial-block-height-limit argument#89
alber70g merged 4 commits intomainfrom
ag/initial-block-height-limit-test

Conversation

@alber70g
Copy link
Member

@alber70g alber70g commented Oct 8, 2025

No description provided.

sstraatemans
sstraatemans previously approved these changes Oct 8, 2025
sstraatemans
sstraatemans previously approved these changes Oct 9, 2025
Comment on lines -294 to +314
- [/chainweb/0.0/evm-development/cut](http://localhost:{port}/chainweb/0.0/evm-development/cut)
- [/chainweb/0.0/evm-development/chain/0/pact/api/v1](http://localhost:{port}/chainweb/0.0/evm-development/chain/0/pact/api/v1)
- [/chainweb/0.0/evm-development/chain/20/evm/rpc](http://localhost:{port}/chainweb/0.0/evm-development/chain/20/evm/rpc)
- [/chainweb/0.0/evm-development/cut](http://localhost:{
port
}/chainweb/0.0/evm-development/cut)
- [/chainweb/0.0/evm-development/chain/0/pact/api/v1](http://localhost:{
port
}/chainweb/0.0/evm-development/chain/0/pact/api/v1)
- [/chainweb/0.0/evm-development/chain/20/evm/rpc](http://localhost:{
port
}/chainweb/0.0/evm-development/chain/20/evm/rpc)
Copy link
Contributor

Choose a reason for hiding this comment

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

Whoa, this is kind of nasty formatting.

export async function createDockerComposeFile(project: ProjectType) {
console.log(`Generating ${createDockerFileName(project)}...`);
await $devnet`uv run python ./compose.py > ${createDockerFileName(project)} --project ${project}`;
await $devnet`uv run python ./compose.py --project ${project} > ${createDockerFileName(project)}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch


test(`e2e: start mining, set initial block height limit arg, restart and continue`, async () => {
const WAIT_FOR_HEIGHT = 3;
const INITIAL_BLOCK_HEIGHT_LIMIT_ARG = 2; // is also set in docker-compose.override-initial-height.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

Do I understand correctly that this is not being generated programmatically by the tests? The tests should really be generating their own node configuration for extensibility.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes good call. We'll make compose.py more extensible to not rely on the override compose.yaml

@alber70g alber70g merged commit 5e64e73 into main Oct 10, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants