helm / chart-testing-action

A GitHub Action to lint and test Helm charts
https://github.com/helm/chart-testing
Apache License 2.0
251 stars 71 forks source link

Error: Error running process: exit status 128 #25

Closed estahn closed 4 years ago

estahn commented 4 years ago

I've tried with command: lint and command: ct lint but it returns the same error message. When downloading the container quay.io/helmpack/chart-testing:v3.0.0-beta.2 and running that locally it works fine.

2020-03-24T04:07:43.8989222Z ##[group]Run helm/chart-testing-action@v1.0.0-rc.1
2020-03-24T04:07:43.8989363Z with:
2020-03-24T04:07:43.8989638Z   command: ct lint
2020-03-24T04:07:43.8989740Z ##[endgroup]
2020-03-24T04:07:44.8614936Z Unable to find image 'quay.io/helmpack/chart-testing:v3.0.0-beta.2' locally
2020-03-24T04:07:44.8615427Z v3.0.0-beta.2: Pulling from helmpack/chart-testing
2020-03-24T04:07:44.8615555Z 4167d3e14976: Already exists
2020-03-24T04:07:44.8615682Z 1ef3c023a7f3: Pulling fs layer
2020-03-24T04:07:44.8615802Z aa9784039bf9: Pulling fs layer
2020-03-24T04:07:44.8615975Z 9fb091bb96bc: Pulling fs layer
2020-03-24T04:07:44.8616094Z 92dd9035358e: Pulling fs layer
2020-03-24T04:07:44.8616211Z b510c65bb643: Pulling fs layer
2020-03-24T04:07:44.8616329Z e38e83ea3725: Pulling fs layer
2020-03-24T04:07:44.8616446Z e28434c59fed: Pulling fs layer
2020-03-24T04:07:44.8616562Z 669220e465b9: Pulling fs layer
2020-03-24T04:07:44.8616681Z 92dd9035358e: Waiting
2020-03-24T04:07:44.8616820Z b510c65bb643: Waiting
2020-03-24T04:07:44.8616942Z e38e83ea3725: Waiting
2020-03-24T04:07:44.8617215Z e28434c59fed: Waiting
2020-03-24T04:07:44.8617325Z 669220e465b9: Waiting
2020-03-24T04:07:44.8617424Z Running ct container...
2020-03-24T04:07:44.9761611Z 9fb091bb96bc: Verifying Checksum
2020-03-24T04:07:44.9790200Z 9fb091bb96bc: Download complete
2020-03-24T04:07:45.0106708Z aa9784039bf9: Download complete
2020-03-24T04:07:45.2347267Z 92dd9035358e: Verifying Checksum
2020-03-24T04:07:45.2347604Z 92dd9035358e: Download complete
2020-03-24T04:07:45.5748744Z b510c65bb643: Verifying Checksum
2020-03-24T04:07:45.5749420Z b510c65bb643: Download complete
2020-03-24T04:07:45.6627402Z e28434c59fed: Verifying Checksum
2020-03-24T04:07:45.6627884Z e28434c59fed: Download complete
2020-03-24T04:07:46.0014892Z 669220e465b9: Verifying Checksum
2020-03-24T04:07:46.5213361Z 669220e465b9: Download complete
2020-03-24T04:07:46.5213566Z 1ef3c023a7f3: Verifying Checksum
2020-03-24T04:07:46.5213676Z 1ef3c023a7f3: Download complete
2020-03-24T04:07:46.5485427Z e38e83ea3725: Verifying Checksum
2020-03-24T04:07:46.5485748Z e38e83ea3725: Download complete
2020-03-24T04:07:47.5370394Z 1ef3c023a7f3: Pull complete
2020-03-24T04:07:47.6070731Z aa9784039bf9: Pull complete
2020-03-24T04:07:47.6772049Z 9fb091bb96bc: Pull complete
2020-03-24T04:07:48.1416652Z 92dd9035358e: Pull complete
2020-03-24T04:07:48.4836225Z b510c65bb643: Pull complete
2020-03-24T04:07:48.5206614Z e38e83ea3725: Pull complete
2020-03-24T04:07:48.5549347Z e28434c59fed: Pull complete
2020-03-24T04:07:48.6950898Z 669220e465b9: Pull complete
2020-03-24T04:07:48.6999781Z Digest: sha256:332de299264f509cd44b8707a9805baa98dcaf7289ba63a846c91345d06fbb4d
2020-03-24T04:07:48.7033479Z Status: Downloaded newer image for quay.io/helmpack/chart-testing:v3.0.0-beta.2
2020-03-24T04:07:51.2919570Z 6e0d06200face22ef3251c0da6e15285463cbc4b426ad492d18883422c6428e6
2020-03-24T04:07:51.5665945Z 
2020-03-24T04:07:51.7676671Z Error: Error running process: exit status 128
2020-03-24T04:07:51.7685013Z Usage:
2020-03-24T04:07:51.7686084Z   ct list-changed [flags]
2020-03-24T04:07:51.7686315Z 
2020-03-24T04:07:51.7686748Z Aliases:
2020-03-24T04:07:51.7687089Z   list-changed, ls-changed, lsc
2020-03-24T04:07:51.7687190Z 
2020-03-24T04:07:51.7687262Z Flags:
2020-03-24T04:07:51.7687542Z       --chart-dirs strings        Directories containing Helm charts. May be specified multiple times
2020-03-24T04:07:51.7687665Z                                   or separate values with commas (default [charts])
2020-03-24T04:07:51.7688067Z       --config string             Config file
2020-03-24T04:07:51.7688523Z       --excluded-charts strings   Charts that should be skipped. May be specified multiple times
2020-03-24T04:07:51.7689001Z                                   or separate values with commas
2020-03-24T04:07:51.7689250Z   -h, --help                      help for list-changed
2020-03-24T04:07:51.7689903Z       --remote string             The name of the Git remote used to identify changed charts (default "origin")
2020-03-24T04:07:51.7690491Z       --target-branch string      The name of the target branch used to identify changed charts (default "master")
2020-03-24T04:07:51.7690590Z 
2020-03-24T04:07:51.7944480Z Removing ct container...
2020-03-24T04:07:51.9874686Z Done!
pmatv commented 4 years ago

having same issue

emmekappa commented 4 years ago

same here

saikatharryc commented 4 years ago

For me, it was just that, I was not using my base branch as a master. once I started using master it solved my problem. in ct.yaml you also can set the target branch, in case you want to use something other than master.

rgreinho commented 4 years ago

Having the same issue as well. I tried with v1.0.0-rc.1 and v1.0.0-rc.2.

leokra commented 4 years ago

I was not executing the following step (contrary to what is mentioned in the example):

 - name: Fetch history
        run: git fetch --prune --unshallow

Maybe this helps somebody...

jenting commented 4 years ago

Same here. With version v1.0.0-rc.2

Digest: sha256:55fb51929186d4dc8b0821569151a39283918785447628fb2e28f87d9b2937d2
Status: Downloaded newer image for quay.io/helmpack/chart-testing:v3.0.0-rc.1
2f7a7c753d20e95abaa1a207ababf0a113dc32a03a610c2bb8fa349640daeaca

Error: Error running process: exit status 128
Removing ct container...
Done!
twexler commented 4 years ago

I've also got this issue on v.1.0.0 and have the step in @leokra's comment above. Here's the run

adamrushuk commented 4 years ago

my default branch was main, so I had to add target-branch: main to my ct.yaml config

highb commented 3 years ago

I was not executing the following step (contrary to what is mentioned in the example):

 - name: Fetch history
        run: git fetch --prune --unshallow

Maybe this helps somebody...

Thanks for this @leokra ! I accomplished the same thing by adding the fetch-depth: 0 parameter to the checkout action, like so:

    steps:
      - uses: actions/checkout@v2
        with:
          # ct needs history to compare
          fetch-depth: 0
pratikbin commented 3 years ago

Solved in concourse ci by adding git fetch --all before ct step