Comments (5)
It's worth mentioning that all steps before this pass successfully (ct lint)
from chart-testing-action.
I ran into this today with ct v3.7.1, and it seemed to be relate to the git command returning with error 128:
[pid 154575] execve("/sbin/git", ["git", "merge-base", "origin/master", "HEAD"], 0xc0000aa000 /* 64 vars */ <unfinished ...>
[pid 154575] <... execve resumed>) = 0
[pid 154575] write(2, "fatal: Not a valid object name origin/master\n", 45) = 45
[pid 154575] exit_group(128 <unfinished ...>
[pid 154575] <... exit_group resumed>) = ?
[pid 154575] +++ exited with 128 +++
To debug this on your end, I suggest invoking ct lint
with strace
, such as:
strace -s 1024 -f ct lint 2>&1 | egrep 'execve|write|exit'
The error you are seeing could be related to any number of git problems, but for myself, the workaround was to use ct lint --target-branch main
.
It'd be nice if ct
output the error message from git
instead of swallowing it.
from chart-testing-action.
You can see there is an output No chart changes detected.
in the error messages of ct install
.
It is caused by the step list-changed
. Because there are no chart changes detected, this command will still make the changed
true.
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
Becase the output of ct list-changed
will have other strings even if the chart is not changed. So the check of if [[ -n "$changed" ]]
will always be true.
Linting charts...
>>> helm version --template {{ .Version }}
>>> git rev-parse --is-inside-work-tree
>>> git merge-base origin/main HEAD
>>> git diff --find-renames --name-only c8b9381a98059c07b5b65510b8162c5df3f43cd0 -- charts
The output with chart changes will output a chart name, like this.
Found changes
>>> helm version --template {{ .Version }}
>>> git rev-parse --is-inside-work-tree
>>> git merge-base origin/main HEAD
>>> git diff --find-renames --name-only c8b9381a98059c07b5b65510b8162c5df3f43cd0 -- charts
charts/pulsar-resources-operator
from chart-testing-action.
hello, I was not able to reproduce this issue, see https://github.com/cpanato/testing-ci-providers/actions/runs/4510324297/jobs/7941131580?pr=1802
the workflow
name: Lint and Test Charts
on:
pull_request:
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.11.0
- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --config ct.yaml --target-branch ${{ github.event.repository.default_branch }}
- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --config ct.yaml --target-branch ${{ github.event.repository.default_branch }}
from chart-testing-action.
will close this issue, but feel free to reopen or open a new one
from chart-testing-action.
Related Issues (20)
- Document how to test charts that contains a CRD HOT 1
- No chart changes detected HOT 9
- gzip: stdin: not in gzip format
- The `changed` in step `list-changed` will always be true HOT 1
- Example in README.md does not work
- Script download wrong binary
- Add support for github.com authentication token
- failed to set up chart-testing with pip3 install failiure HOT 1
- Version 2.5.0? HOT 4
- Setting up a imagePullSecrets for a private github repo to fetch the Docker image HOT 2
- Unable to validate cosign version: 'v2.0.0' HOT 17
- v2.5.0 is giving an error of `targetBranch main does not exist` HOT 12
- Using helm-extra-args: --timeout 600s in config file causes "unknown flag" HOT 3
- v2 still points to v2.6.0 and not v2.6.1
- Option to use global Python install HOT 1
- Are there plans to create a security policy?
- directory is not a valid chart directory
- list-changed step result is not taken care of any other steps. How can I check what it returns?
- README: uses: helm/[email protected] HOT 1
- Please create a new release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chart-testing-action.