Skip to content

redocly/cli lint hangs for a while before exiting #1146

@philipnbbc

Description

@philipnbbc

Describe the bug

Running version >= v1.0.0-beta.127 (latest is v1.0.0-beta.129) of redocly/cli Docker results in the validation completing and then the process sits there for a while before exiting. The wait time can be significant (30 sec) for larger OpenAPI spec files.

To Reproduce
Steps to reproduce the behavior:

A small OpenAPI file, example.yaml:

openapi: 3.0.3
info:
  title: Test
paths:
  /:
    get:
      responses:
        '200':
  1. Given the OpenAPI example file shown above
  2. Run docker run --rm -v $PWD:/spec redocly/cli lint example.yaml
  3. It outputs "run redocly lint --generate-ignore-file to add all problems to the ignore file." and then sits there for a couple seconds
  4. Run docker run --rm -v $PWD:/spec redocly/cli:v1.0.0-beta.126 lint example.yaml and it exits immediately

Using a larger OpenAPI file results in a longer and more significant hang time.

Expected behavior

It shouldn't, or it is unclear why it would hang for a while before exiting.

Redocly Version(s)

Issue is with Docker image redocly/cli version >= v1.0.0-beta.127 (latest == v1.0.0-beta.129)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't workingp3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions