Skip to content

Improve CI reliability and drop Node 18 support - #182

Merged
radubahmata merged 10 commits into
masterfrom
ci/fix-json-error
Oct 1, 2025
Merged

Improve CI reliability and drop Node 18 support#182
radubahmata merged 10 commits into
masterfrom
ci/fix-json-error

Conversation

@radubahmata

@radubahmata radubahmata commented Sep 25, 2025

Copy link
Copy Markdown
Contributor

This PR improves CI stability and modernizes the test setup. It removes Node.js 18 support, adds Node.js 23, and ensures tests run reliably in isolated environments.

More specifically, this PR:

  • updates CI matrix, README, and docs to support Node.js 20, 22, 23 (drop 18)
  • introduces createIsolatedTestEnvironment utility to prevent race conditions in tests requiring simnet sessions
  • adds jest.setup.js which ensures that the example Clarinet project cache and deployment plan are initialized before all the tests run
  • updates Jest config for timeouts, worker limits, and coverage
  • simplifies test scripts in package.json

Addresses #172.

@radubahmata
radubahmata requested a review from a team as a code owner September 25, 2025 13:25
@radubahmata radubahmata changed the title Remove test race conditions using isolated Clarinet environments [DRAFT] Remove test race conditions using isolated Clarinet environments Sep 25, 2025

@moodmosaic moodmosaic left a comment

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.

This looks good. The only reason I can see for the draft status is the incomplete teardown in some tests.

@radubahmata

radubahmata commented Oct 1, 2025

Copy link
Copy Markdown
Contributor Author

This looks good. The only reason I can see for the draft status is the incomplete teardown in some tests.

@moodmosaic That was not actually the case. The teardown was already in place on master, so it doesn’t show up in the diff. The real issue was CI failing even after the changes, which should now be fixed. That said, GitHub reported some workflow issues causing macOS jobs to stay pending: https://www.githubstatus.com/incidents/071h21gptcp0

Once CI is green, this PR can come out of draft.

@radubahmata radubahmata changed the title [DRAFT] Remove test race conditions using isolated Clarinet environments [DRAFT] Improve CI reliability and drop Node 18 support Oct 1, 2025
@radubahmata

Copy link
Copy Markdown
Contributor Author

This PR seems to successfully solve the flakiness in the tests as a CI step. Taking it out of draft.

@radubahmata
radubahmata requested a review from moodmosaic October 1, 2025 18:13
@radubahmata radubahmata changed the title [DRAFT] Improve CI reliability and drop Node 18 support Improve CI reliability and drop Node 18 support Oct 1, 2025
@radubahmata
radubahmata requested a review from wileyj October 1, 2025 18:14

@wileyj wileyj left a comment

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.

lgtm

@radubahmata
radubahmata merged commit b9fb8da into master Oct 1, 2025
31 of 33 checks passed
@radubahmata
radubahmata deleted the ci/fix-json-error branch October 1, 2025 18:35
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.

3 participants