Skip to content

No such file or directory: '.github/workflows/constraints.txt' when used in GitHub Action #1331

@tarilabs

Description

@tarilabs

Describe the bug

It seems to me more GitHub runner are onboarding pipx==1.5.0 causing our action to now fail with the error:

pipx >(subprocess_post_check_handle_pip_error:331): '/opt/pipx/venvs/poetry/bin/python -m pip --no-input install --constraint=.github/workflows/constraints.txt poetry' failed
pipx >(subprocess_post_check_handle_pip_error:346): Fatal error from pip prevented installation. Full pip output in file:
    /opt/pipx/logs/cmd_2024-04-08_15.22.19_pip_errors.log

Some possibly relevant errors from pip install:
    ERROR: Could not open requirements file: [Errno 2] No such file or directory: '.github/workflows/constraints.txt'

while this is not a problem with earlier pipx 1.4.3

How to reproduce

Screenshot: in this run (8602647917), the left GitHub Action runner came with pipx 1.4.3, right GitHub Action runner came with 1.5.0

Screenshot 2024-04-08 at 17 23 19 (2)

Analogously, see this PR job: https://github.com/kubeflow/model-registry/actions/runs/8602865736/job/23573396714
failed, while other runner in the same matrix just passed the step successfully.

When forcing pipx==1.4.3 with: kubeflow/model-registry@8971944

Then the error is resolved: https://github.com/kubeflow/model-registry/actions/runs/8602962417/job/23573717964?pr=55

Expected behavior

Expected no change in behaviour.

Kindly advise?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions