Skip to content

Gitlab CI timeout in "next lint" with Next.js 11.1.0 #28194

@ateufel

Description

@ateufel

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:

test:lint:
    stage: test
    dependencies:
        - prepare
    script:
        - yarn lint

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:

$ yarn lint
info  - Loaded env from /builds/vetdoc/webapp/.env
✔ No ESLint warnings or errors
ERROR: Job failed: execution took longer than 1h0m0s seconds

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

  • Use Gitlab CI with a Node.js 14 Alpine Image
  • Add a stage with "yarn lint" (which basically uses next lint)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions