-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Gitlab CI timeout in "next lint" with Next.js 11.1.0 #28194
Comments
Same problem here where |
@ateufel @rtritto Would it be possible for you to share your
The only significant change that I noticed on v11.0.2-canary.22 was when I changed |
@housseindjirdeh thanks for answer. After some checks, in my case, the problem of unclosed process of Steps to reproduce
require('next-pwa')
module.exports = {}
extends:
next
edit # 1:
Yes, the problem should be generated adding
edit # 2: ...
runLintCheck(
baseDir,
lintDirs,
false,
eslintOptions(args),
reportErrorsOnly,
maxWarnings,
formatter
)
.then(async (lintResults) => {
...
if (lintOutput) {
console.log(lintOutput)
} else {
console.log(chalk.green('✔ No ESLint warnings or errors'))
}
+ process.exit(0)
})
.catch((err) => {
printAndExit(err.message)
})
... OR ...
runLintCheck(
baseDir,
lintDirs,
false,
eslintOptions(args),
reportErrorsOnly,
maxWarnings,
formatter
)
.then(async (lintResults) => {
...
if (lintOutput) {
- console.log(lintOutput)
+ printAndExit(lintOutput, 0)
} else {
- console.log(chalk.green('✔ No ESLint warnings or errors'))
+ printAndExit(chalk.green('✔ No ESLint warnings or errors'), 0)
}
})
.catch((err) => {
printAndExit(err.message)
})
... |
@rtritto Thank you so much for the detailed reproduction steps and your thoughts :). I was able to reproduce it!
Yep I was thinking it had to be that, and actually didn't even realize the |
This PR ensures that `next lint` always exits after the process is complete. This fixes #28194.
Thanks for logging this folks, fixed in v11.1.1-canary.13 🚀 |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
11.1.0
What version of Node.js are you using?
14.x
What browser are you using?
Chrome
What operating system are you using?
Linux
How are you deploying your application?
Gitlab CI
Describe the Bug
I am using Gitlab CI to test and deploy a Next.js App, there is a Pipeline Stage for linting:
It is pretty simple, the "prepare" Stage is bascially "yarn install" and works perfectly fine. Since Next.js 11.1.0, i get a timeout after 1h in the Gitlab Pipeline right after yarn lint:
The docker image is just a simple node 14 alpine image, and it does work perfectly fine with Next.js 11.0.1 (tried several times, it is always reproducable for me)
Expected Behavior
The Gitlab CI Pipeline works perfectly fine with Next.js 11.1.0+
To Reproduce
The text was updated successfully, but these errors were encountered: