gitpod-io / gitpod-io/leeway

Leeway vet doesn't return a non-zero exit code on failures

Open
#129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
183
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Currently leeway vet doesn't return a non-zero exit code when it fails.

From a gitpod-io/gitpod workspace running 0.5.2-d3ff827:

$ leeway vet
ERRO[0008] components/ide/jetbrains/image: EOF          
$ echo $?
0

Here's a screenshot of one of our builds where you see the same behaviour in Werft:

Screenshot 2022-11-21 at 14 55 23

Keep in mind that this specific error will go away with this PR

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the leeway vet command and checking how its reported errors are converted into a process exit status. The fix is complete when a vet failure returns a non-zero status, while successful vet runs continue to return zero; add or update a regression test if the command's existing test coverage provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.