You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "flyrain (via GitHub)" <gi...@apache.org> on 2025/06/11 17:21:08 UTC
[I] Local regression test (test_cli.py) failed [polaris]
flyrain opened a new issue, #1868:
URL: https://github.com/apache/polaris/issues/1868
### Describe the bug
Command to trigger the tests: `env POLARIS_HOST=localhost ./regtests/run.sh`. Here are the error message:
```
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
f = <function cli.<locals>.cli_inner.<locals>.f at 0x10747c900>, exception_str = '--storage-type'
def check_exception(f, exception_str):
throws = True
try:
f()
throws = False
except Exception as e:
> assert exception_str in str(e)
E AssertionError: assert '--storage-type' in '/Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./gradlew: No such file or directory\n'
E + where '/Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./gradlew: No such file or directory\n' = str(Exception('/Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./gradlew: No such file or directory\n'))
t_cli/src/test_cli.py:76: AssertionError
---------------------------------------------- Captured stdout call -----------------------------------------------
CompletedProcess(args=['bash', '/Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris', '--access-token', 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJwb2xhcmlzIiwic3ViIjoiMSIsImlhdCI6MTc0OTY2MjE3NiwiZXhwIjoxNzQ5NjY1Nzc2LCJqdGkiOiIzNWI3M2E5NC05OWYwLTRkNWEtYjY5Ni0zYmUwN2IyYjBmZDUiLCJhY3RpdmUiOnRydWUsImNsaWVudF9pZCI6InJvb3QiLCJwcmluY2lwYWxJZCI6MSwic2NvcGUiOiJQUklOQ0lQQUxfUk9MRTpBTEwifQ.VOskoAawUUKpO6KUJ-DTDDF2AtPn3BHDwtOHr-QdAYoex0djDjAxN2BrLAEcKMWc9RVi4uz3OYySRwGnP8QAuIsUK6kprsH-73EoRSDOGM02KTLFRRsKwHdN9SV2xCtoweIJ528ItVgJbqTSpMOVyqdEGwaOMNYDokHJFrEQcgplFYCE3Jc6hLbpLdt4j0G6Yl0VJ3u9itdvS3Rp0RA04Pjb_yuH9kEgLoXJspvck_VH9jpi9ZDFYBUXKV2zBo6BPV95QGw47uOtvEVBeR1AlnM57FVZaZR1FYpQrgtb7YqIvOePtzOz9eodeRT-X7qTN3pRI5vxNY_0umugZGjlVw', '--host', 'localhost', 'catalogs', 'create', 'test_catalog'], returncode=1, stdout='Performing first-time setup for the Python client...\n', stderr='/Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../.
./polaris: line 40: ./gradlew: No such file or directory\n')
============================================= short test summary info =============================================
FAILED t_cli/src/test_cli.py::test_quickstart_flow - Exception: /Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./...
FAILED t_cli/src/test_cli.py::test_catalog_storage_config - Exception: /Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./...
FAILED t_cli/src/test_cli.py::test_update_catalog - Exception: /Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./...
FAILED t_cli/src/test_cli.py::test_update_principal - Exception: /Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./...
FAILED t_cli/src/test_cli.py::test_update_principal_role - Exception: /Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./...
FAILED t_cli/src/test_cli.py::test_update_catalog_role - Exception: /Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./...
FAILED t_cli/src/test_cli.py::test_nested_namespace - Exception: /Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./...
FAILED t_cli/src/test_cli.py::test_list_privileges - Exception: /Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/python/../../polaris: line 40: ./...
FAILED t_cli/src/test_cli.py::test_invalid_commands - AssertionError: assert '--storage-type' in '/Users/ygu/tmp/bugbash/polaris/regtests/t_cli/src/../../../client/...
================================================ 9 failed in 0.43s ================================================
Wed Jun 11 10:16:20 PDT 2025: Test FAILED: t_cli:test_cli.py
```
### To Reproduce
_No response_
### Actual Behavior
_No response_
### Expected Behavior
_No response_
### Additional context
_No response_
### System information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Local regression test (test_cli.py) failed [polaris]
Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain commented on issue #1868:
URL: https://github.com/apache/polaris/issues/1868#issuecomment-2971326963
Test against the latest main, still failed with the same issue. Seems like `pydantic` is missing. I think it should be installed by our scripts. Maybe due to some settings in my local machine. cc @HonahX
```
E assert '--storage-type' in 'Traceback (most recent call last):\n File "/Users/ygu/tmp/bugbash/polaris/client/python/cli/polaris_cli.py", line 30...ic import validate_call, Field, StrictFloat, StrictStr, StrictInt\nModuleNotFoundError: No module named \'pydantic\'\n'
E + where 'Traceback (most recent call last):\n File "/Users/ygu/tmp/bugbash/polaris/client/python/cli/polaris_cli.py", line 30...ic import validate_call, Field, StrictFloat, StrictStr, StrictInt\nModuleNotFoundError: No module named \'pydantic\'\n' = str(Exception('Traceback (most recent call last):\n File "/Users/ygu/tmp/bugbash/polaris/client/python/cli/polaris_cli.py...c import validate_call, Field, StrictFloat, StrictStr, StrictInt\nModuleNotFoundError: No module named \'pydantic\'\n'))
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Local regression test (test_cli.py) failed [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard closed issue #1868: Local regression test (test_cli.py) failed
URL: https://github.com/apache/polaris/issues/1868
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Local regression test (test_cli.py) failed [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on issue #1868:
URL: https://github.com/apache/polaris/issues/1868#issuecomment-2971165063
I wasn't able to repro, but could you check and see if #1898 resolves the issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org