-
-
Notifications
You must be signed in to change notification settings - Fork 927
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
Release 11.1.0 #4333
Comments
No release for now. Out of blue 17 failed tests on Windows. I the common theme:
Looks like path that known to stylelint and path which we get from Node.js Maybe one of our dependencies had release in the past 5 hours and it broke something. 5 hours ago we had green CI. |
I wish we had |
@hudochenkov maybe it is time to lock file? I have been proposing to do this for a long time 😄 |
It is dep of one of out dep as I see =) because I can not find any released one |
As I understand current |
Does anyone has local stylelint repository with |
oh sorry it is not master =( but you can compare |
It might be Github Actions fault. Failing are inconsistent. Sometimes they happen, sometimes — not. No restart for master latest commit fix the build. But restarts in #4334 fixed the build once. What I noticed between successful runs and failed, that Github Actions setup environment with different paths! On success it uses Fail
Success
|
you mean Node.js itself returns |
Yeah. Real disk is different between jobs runs. And also Node.js doesn't match disk sometimes. |
I can not find this code in JS https://github.com/nodejs/node/blob/master/lib/fs.js#L1418 , but it possible that C/C++ already returns path with different cases |
I have checked tests, this is very strange behavior. I think exact behavior is that:
|
I did a lot of investigation and the problem lies in two places. First, Github Actions randomly use Second, Node.js butchering file path: console.log(process.cwd());
// 'd:\\a\\stylelint\\stylelint'
console.log(__dirname);
// 'D:\\a\\stylelint\\stylelint\\lib\\__tests__'
console.log({ path.join(__dirname, 'fixtures'));
// 'D:\\a\\stylelint\\stylelint\\lib\\__tests__\\fixtures' What solution I see is to contact Github support and to ask make drive letter always uppercase. It's probably a bug, that it's sometimes lowercased. I'm going to contact them tomorrow. |
As I mentioned above it does not make sense for Windows, because all paths in Windows are case insensitive (so it is our problem, if we check it as case sensitive or one of our dependency returns different path). Anyway it will be great, if github support will clarify this. |
process.cwd making system call each time, so there is no Node.js stuff behind. As process.env and other os functionality |
I contacted Github support. Hoping for the fast resolution. |
Because tests are actually ok, and things are breaking because of inconsistent Github Actions environment. I'm going to release stylelint. |
New version released, but I'm not going to tweet yet. Looks like I messed up a little bit (stylelint/stylelint-demo#177 (comment)). |
Thank you everyone for the release! |
Going to release tomorrow.
The text was updated successfully, but these errors were encountered: