Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: stabilize parser tests #4940

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

arendjr
Copy link
Contributor

@arendjr arendjr commented Jan 22, 2025

Summary

Recently I had introduced a guard against too much recursion in our Debug implementations for syntax nodes. Unfortunately it relied on atomics where threads could interfere with one another. This meant if two or more tests were running concurrently and dumping snapshots for the same node kind simultaneously, the guard could be triggered too soon, leading to unstable tests.

So I'm trying again with thread-local statics.

Test Plan

Tests should stay consistently green.

@arendjr arendjr requested review from a team January 22, 2025 13:29
@github-actions github-actions bot added A-Parser Area: parser A-Tooling Area: internal tools L-JavaScript Language: JavaScript and super languages L-CSS Language: CSS L-JSON Language: JSON and super languages L-HTML Language: HTML L-Grit Language: GritQL labels Jan 22, 2025
@arendjr arendjr merged commit 2452edb into biomejs:next Jan 22, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Parser Area: parser A-Tooling Area: internal tools L-CSS Language: CSS L-Grit Language: GritQL L-HTML Language: HTML L-JavaScript Language: JavaScript and super languages L-JSON Language: JSON and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants