Skip to content

[CI Problem] python unit tests only run the cases in the arith folder #16510

Description

@liushengjiezj

The ArmChina team recently synchronized the community's new code and found that python's unittest was split from one folder into multiple folders and traversed multiple folders to run in the bash script(tests/scripts/task_python_unittest.sh).
图片

But in line 57, we found that if the for statement is written like this, only the first element in the array will be looped. In other words, running this script will only run the test cases in the arith folder.

We found a recent pipeline to verify the behavior of this script, and indeed only the test cases in the arith folder were run:
https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-cpu/detail/main/1311/pipeline/91/
图片

Is it intentional to write this way or are there other considerations?
@Hzfengsy @tqchen @Johnson9009

Branch/PR Failing

None

Jenkins Link

https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-cpu/detail/main/1311/pipeline/91/

Flakiness

None

Triage

  • dev:test-infra

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagePRs or issues that need to be investigated by maintainers to find the right assignees to address ittype:ciRelates to TVM CI infrastructure

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions