Skip to content

rm -rf /opt/hostedtoolcache may change the python version actually used to run CI tests #7416

@yiheng-wang-nv

Description

@yiheng-wang-nv

Describe the bug
When I run some tests on github action in model zoo repo, I found that the following line in the action yml file will remove the installed python version:

rm -rf /opt/hostedtoolcache

It may lead to the system's default python version will be used to run the tests.

@KumoLiu and I simply check MONAI repo, and found that at least the deploy action is impacted. In the corresponding yml file:

rm -rf /opt/hostedtoolcache

rm -rf /opt/hostedtoolcache is used after python env is set.

If we look at the latest deploy action job, we can see that the python3.9 test actually uses python 3.10 which is not expected.

https://github.com/Project-MONAI/MONAI/actions/runs/7648726812/job/20842001933#step:7:411

Hi @wyli @KumoLiu , I think we should think about how to install the expected python version back before running tests if need rm -rf /opt/hostedtoolcache

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions