Skip to content

[DX-4492] Speed up keystone Tests#22943

Open
kalverra wants to merge 7 commits into
developfrom
speedUpKeystone
Open

[DX-4492] Speed up keystone Tests#22943
kalverra wants to merge 7 commits into
developfrom
speedUpKeystone

Conversation

@kalverra

Copy link
Copy Markdown
Collaborator

Speeds up core/capabilities/integration_tests/keystone tests, the 5th slowest test package in core/.

Results

Before After Absolute Delta % Delta
50s 13s 38s 76%

How

  1. Add t.Parallel() calls
  2. Tighten some polling calls

Confirmed tests pass and aren't flaky after changes with 25 iterations.

❯ make test ARGS="diagnose --iterations 25 -- ./core/..."

Also includes various linting fixes and t.Parallel() calls.

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

CORA - Pending Reviewers

Codeowners Entry Overall Num Files Owners
/tools/test/ 2 @smartcontractkit/devex-cicd, @smartcontractkit/devex-tooling, @smartcontractkit/core

Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown

For more details, see the full review summary.

@github-actions

Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@trunk-io

trunk-io Bot commented Jun 24, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@cl-sonarqube-production

Copy link
Copy Markdown


<lessons-learned>
1. Block mining bottleneck. Lower `cltest.Mine` frequency. Simulation resolve faster. Mine faster than `DeltaRound` or hit "cannot access old blocks" error.
2. EVM polling slow. Lower `LogPollInterval` to 100ms. Nodes find events faster.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
2. EVM polling slow. Lower `LogPollInterval` to 100ms. Nodes find events faster.
2. EVM polling slow. Lower `LogPollInterval` to 500ms. Nodes find events faster.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants