gurock / trcli

TR CLI (trcli) is a command line tool for interacting with TestRail.
Mozilla Public License 2.0
48 stars 39 forks source link

TRCLI failed on the ci cd #211

Closed anastasijabulatova-toast closed 4 months ago

anastasijabulatova-toast commented 4 months ago

TestRail CLI Version

trcli-1.9.1

CLI Environment

Linux x86_64, python3.10

TestRail Version

TestRail v8.0.3 Default (3067)

TestRail Instance Type

Professional Cloud

Current behavior

14:15:14 + trcli -n -c trcli-config.yml -u -p parse_junit --case-matcher name --suite-id 8160 -f test-results/junit-report.xml 14:15:14 Traceback (most recent call last): 14:15:14 File "/home/jenkins/.local/bin/trcli", line 5, in 14:15:14 from trcli.cli import cli 14:15:14 File "/home/jenkins/.local/lib/python3.10/site-packages/trcli/cli.py", line 3, in 14:15:14 from beartype.typing import List, Union 14:15:14 ModuleNotFoundError: No module named 'beartype.typing'

Desired behavior

trcli failed on ci with the import error

More Details

No response

mattmoana commented 4 months ago

yup i have same error in my pipeline

medgartest commented 4 months ago

same error on Mac (on cmd line - not Jenkins or other ci) first install so wasn't sure if I was missing something but seems same error as others

fyi can be reproduced without parameters

trcli Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/bin/trcli", line 5, in from trcli.cli import cli File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/trcli/cli.py", line 3, in from beartype.typing import List, Union ModuleNotFoundError: No module named 'beartype.typing'

bitcoder commented 4 months ago

thanks for reporting; will have a look it shortly; not sure why this wasnt caught on the pipeline

medgartest commented 4 months ago

upgrading Beartype seems to help

pip3 install beartype --upgrade

bitcoder commented 4 months ago

I found the typo