iterative / iterative/cml

`terraform: command not found`

Open
#978 13 comments 0 reactions 0 assignees View on GitHub
cml-runner macos p2-nice-to-have
Dominant language
JavaScript
Stars
4.2k
Forks
345
PR merge metrics
No merged PRs in 30d

Description

Found within a GH runner

```sh
{"level":"warn","message":"ignoring RUNNER_NAME environment variable, use CML_RUNNER_NAME or --name instead"}
{"level":"error","message":"terraform version\n\t\n\t/bin/sh: terraform: command not found\n","stack":"Error: terraform version\n\t\n\t/bin/sh: terraform: command not found\n\n at /usr/local/lib/node_modules/@dvcorg/cml/src/utils.js:[20](https://github.com/DavidGOrtega/fashion_mnist/runs/6076057465?check_suite_focus=true#step:4:20):27\n at ChildProcess.exithandler (node:child_process:406:5)\n at ChildProcess.emit (node:events:526:28)\n at maybeClose (node:internal/child_process:1092:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)","status":"terminated"}
{"level":"info","message":"waiting 10 seconds before exiting..."}
Error: Process completed with exit code 1.
```

example workflow

```yaml
name: train-my-model

on: [push]

jobs:
deploy-runner:
runs-on: [macos-latest]
env:
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
steps:
- uses: actions/checkout@v2
- uses: iterative/setup-cml@v1

- name: deploy
shell: bash
run: |
cml --version
cml-runner \
--reuse \
--cloud-spot \
--cloud azure \
--cloud-region us-west \
--cloud-type Standard_D2S_v3 \
--labels cml

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.