Skip to content

no visibility into failing script: calls during test #2264

@h-vetinari

Description

@h-vetinari

In conda-forge/tzdata-feedstock#38, the recipe contains

tests:
  - script:
      - test -f "${PREFIX}/share/zoneinfo/leapseconds"
      - test -f "${PREFIX}/share/zoneinfo/leap-seconds.list"
      - test -f "${PREFIX}/share/zoneinfo/iso3166.tab"
      - test -f "${PREFIX}/share/zoneinfo/zone1970.tab"
      - test -f "${PREFIX}/share/zoneinfo/zone.tab"
      - test -f "${PREFIX}/share/zoneinfo/tzdata.zi"
    # Make sure we only package zoneinfo and nothing else.
      - |
        dirs="$(
          find "${PREFIX}" -mindepth 1 -maxdepth 2 \
          \! -path "${PREFIX}/share" \! -path "${PREFIX}/conda-meta*"
        )"
        test "${dirs}" = "${PREFIX}/share/zoneinfo"
    # Make sure we only package timezone information files.
      - |
        heads="$(
          find "${PREFIX}/share/zoneinfo" -type f \
            \! -name \*.zi \! -name \*.tab \! -name leapseconds \! -name leap-seconds.list \
            -exec sh -c 'head -c4 $1 && echo' sh {} \; \
            | uniq
        )"
        test "${heads}" = TZif

Some aspect of this is failing, only the logs tell me absolutely nothing

 │ ╭─────────┬─────────┬────────────┬────────────┬────────────╮
 │ │ Package ┆ Version ┆ Build      ┆ Channel    ┆       Size │
 │ ╞═════════╪═════════╪════════════╪════════════╪════════════╡
 │ │ tzdata  ┆ 2026a   ┆ h151e31d_0 ┆ .tmpVGZn3E ┆ 116.66 KiB │
 │ ╰─────────┴─────────┴────────────┴────────────┴────────────╯
 │ 
 │ Installing test environment
 │ ✔ Successfully updated the test environment
 │ Testing commands:
 │ × error Script failed with status 1
 │ × error 
 │ × error Script execution failed.
 │ × error 
 │ × error   Work directory: /Users/runner/miniforge3/conda-bld/test/test_tzdataZKh9aj/test
 │ × error   Prefix: /Users/runner/miniforge3/conda-bld/test/test_tzdataZKh9aj/test_run_env
 │ × error   Build prefix: None
 │ × error 
 │ × error To run the script manually, use the following command:
 │ × error 
 │ × error   cd "/Users/runner/miniforge3/conda-bld/test/test_tzdataZKh9aj/test" && ./conda_build.sh
 │ × error 
 │ × error To run commands interactively in the build environment:
 │ × error 
 │ × error   cd "/Users/runner/miniforge3/conda-bld/test/test_tzdataZKh9aj/test" && source build_env.sh
 │
 ╰─────────────────── (took 0 seconds)
Error:   × Test failed: failed to run test: IO Error: Script failed

At the very least, show me the equivalent of set -x in bash, i.e. the calls as they happen.

Metadata

Metadata

Assignees

No one assigned

    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