-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
🐛 Different formatting results in GitHub action #2109
Comments
Probably a duplicate of #2080. Can you confirm? |
Yes, it seems to be related to that issue! Drilling down a couple of levels, for example |
Is there any chance you can provide a minimal repro on this issue? You can try only keeping the files with the unstable code blocks and keeping their paths/folder structure untouched. |
@Sec-ant I'll see if I can put one together |
@Sec-ant Here's a minimal repro which mimics the layout of our setup. The Repro: https://github.com/believer/biome-2109 I noticed something that might be a clue. If I remove |
@believer Thank you! I'm able to reproduce it on my laptop now (Ubuntu WSL). I'll take a look into this one. Update, there're some race conditions in this issue: |
This and #2080 should be the same problem. But I'll leave this open because we also have some info here. I did some debug yesterday and I think the reason of this issue is that we'are caching the As we are traversing all the files simultaneously, which variant will be cached is not deterministic, so we can find some race conditions on this issue. This also explains why using a nested path or adding/removing standard js files in the traversal tree will alter the results. cc @ematipico |
This is the PR that introduced some level of caching: #1944 The creation of a data structure for re using the same file source among files that have the same extension. It's possible that this caching needs to be smarter. Alternatively, if a solution can't be found quickly, we could decide to remove it for now. |
@ematipico If you don't mind, I want to take a further look into it in these two days. Is that ok? |
Of course! Thank you for the help |
Environment information
What happened?
When running
biome
in a GitHub action that usesubuntu-latest
we see errors in formatting that we don't see locally on macOS. If we change the runner tomacos-latest
everything works.We're seeing the same behavior in GitHub and when running the actions locally using
act
. We've also tried things like changing Node versions and removing caches.This just started happening without any configuration changes on our part, so unsure what caused it.
Using
ubuntu-latest
we are seeing errors like the ones below.Expected result
Formatting result should be the same on both runners
Code of Conduct
The text was updated successfully, but these errors were encountered: