Skip to content

Non-deterministic behavior when rerendering pytensor-suite-feedstock #1782

@maresb

Description

@maresb

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

See conda-forge/pytensor-suite-feedstock#54 for technical details of my debugging attempts.

In short, since several months, running conda-smithy rerender randomly skips .ci-support files which shouldn't be skipped. It took me several hours with the debugger to get an idea about what's going on.

To reproduce:

  1. Clone conda-forge/pytensor-suite-feedstock
  2. Run conda-smithy rerender
  3. Run git status and check for deleted files under .ci_support/
  4. Repeat, and observe files appearing and disappearing from .ci_support/ at random.

My rough understanding is that conda-smithy calls conda-build in order to determine whether to render a group like osx-arm64. Associated to this group is a set of Python versions ranging from 3.8 to 3.11. The recipe contains skip: true # [py<39]. In evaluating whether or not to skip osx-arm64, a Python version is selected at random. Whenever 3.8 comes up, it skips osx-arm64 and causes the corresponding .ci-support files to go missing.

Installed packages

conda-build 3.25.0, conda-smithy 3.26.2, and conda-forge-pinning 2023.10.07.18.27.00

Environment info

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions