lfn-cnti/testsuite

Enhance helm missing output when calling cnf-testsuite setup

Open

#2,383 opened on May 12, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Mustache (72 forks)github user discovery
buggood first issue

Repository metrics

Stars
 (182 stars)
PR merge metrics
 (Avg merge 4d 16h) (3 merged PRs in 30d)

Description

Describe the bug

./cnf-setup shouldn't print the missing dependencies in a full crystal backtrace. See kubectl missing as a good output

./cnf-testsuite setup
CNF TestSuite version: main-2026-05-12-121232-080bef98
Successfully created directories for cnf-testsuite
src/modules/helm/utils.cr:90:18 in 'get'
src/tasks/setup/helmenv_setup.cr:10:9 in '->'
lib/sam/src/sam/task.cr:54:39 in 'call'
lib/sam/src/sam/execution.cr:20:7 in 'invoke'
lib/sam/src/sam/task.cr:44:29 in 'call'
lib/sam/src/sam/execution.cr:20:7 in 'invoke'
lib/sam/src/sam.cr:35:5 in 'invoke'
lib/sam/src/sam.cr:53:7 in 'process_tasks'
src/cnf-testsuite.cr:122:3 in '__crystal_main'
/usr/lib/crystal/lib/crystal/main.cr:118:5 in 'main_user_code'
/usr/lib/crystal/lib/crystal/main.cr:104:7 in 'main'
/usr/lib/crystal/lib/crystal/main.cr:130:3 in 'main'
/lib/x86_64-linux-gnu/libc.so.6 in '??'
/lib/x86_64-linux-gnu/libc.so.6 in '__libc_start_main'
./cnf-testsuite in '_start'
???
No Helm binary found locally or globally.
./cnf-testsuite setup
CNF TestSuite version: main-2026-05-12-121232-080bef98
Successfully created directories for cnf-testsuite
No Global kubectl version found
No Local kubectl version found
Kubectl not found

    Linux installation instructions for Kubectl can be found here: https://kubernetes.io/docs/tasks/tools/install-kubectl/

    Install kubectl binary with curl on Linux
    Download the latest release with the command:

    curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
    To download a specific version, replace the $(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) portion of the command with the specific version.

      For example, to download version v1.18.0 on Linux, type:

      curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl
    Make the kubectl binary executable.

      chmod +x ./kubectl
    Move the binary in to your PATH.

      sudo mv ./kubectl /usr/local/bin/kubectl
    Test to ensure the version you installed is up-to-date:

      kubectl version --client
    
Global helm found. Version: 4.1.4
Local helm not found
Global git found. Version: 2.47.3
No Local git version found
Dependency installation failed. Some prerequisites are missing. Please install all of the prerequisites before continuing.

Contributor guide