Skip to content

fail-on-error doesn't work well when download fails #253

Description

@jsoref

https://github.com/PowerDNS/pdns/actions/runs/19316037365/workflow?pr=16483#L116-L124

https://github.com/PowerDNS/pdns/actions/runs/19316037365/job/55247983411?pr=16483#step:12:145

fail-on-error:

Run coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
```yml
  with:
    flag-name: auth-backend-remote
    path-to-lcov: $GITHUB_WORKSPACE/coverage.lcov
    parallel: true
    allow-empty: true
    fail-on-error: false
    github-token: ***
    coveralls-endpoint: https://coveralls.io/
    debug: false
    measure: false
    coverage-reporter-version: latest
    coverage-reporter-platform: auto-detect
  env:
    COMPILER: clang
    CLANG_VERSION: 13
    REPO_HOME: /__w/pdns/pdns
    BUILDER_VERSION: 0.0.0-git1
    COVERAGE: yes
    LLVM_PROFILE_FILE: /tmp/code-%p.profraw
    OPTIMIZATIONS: yes
    INV_CMD: . ${REPO_HOME}/.venv/bin/activate && inv
    BRANCH_NAME: 16483/merge
    normalized-branch-name: 16483-merge
Run # Enable debugging if 'debug' is true

github-action/action.yml

Lines 189 to 190 in e988b39

echo "Failed to download coveralls binary or checksum (Linux)."
[ "${{ inputs.fail-on-error }}" == "false" ] && exit 0

Failed to download coveralls binary or checksum (Linux).

github-action/action.yml

Lines 293 to 306 in e988b39

- name: Coverage report
if: inputs.parallel-finished != 'true'
shell: ${{ startsWith(runner.os, 'Windows') && 'pwsh' || 'bash' }}
run: >-
coveralls report
${{ inputs.debug == 'true' && '--debug' || '' }}
${{ inputs.measure == 'true' && '--measure' || '' }}
${{ inputs.fail-on-error == 'false' && '--no-fail' || '' }}
${{ inputs.allow-empty == 'true' && '--allow-empty' || '' }}
${{ inputs.base-path && format('--base-path {0}', inputs.base-path) || '' }}
${{ inputs.build-number && format('--build-number {0}', inputs.build-number) || '' }}
${{ inputs.format && format('--format {0}', inputs.format) || '' }}
${{ inputs.file || inputs.path-to-lcov }}
${{ inputs.files }}

Run coveralls report   --no-fail --allow-empty    $GITHUB_WORKSPACE/coverage.lcov 
/__w/_temp/16d91b4a-8e91-488a-abb2-9f38bdb90eed.sh: line 1: coveralls: command not found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions