-
Notifications
You must be signed in to change notification settings - Fork 125
[draft] restart ci #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[draft] restart ci #189
Conversation
Signed-off-by: Evelina <ebakhturina@nvidia.com>
tests/conftest.py
Outdated
# try: | ||
# test_data_local_size = getsize(test_data_archive) | ||
# except: | ||
# # File does not exist. | ||
# test_data_local_size = -1 | ||
|
||
# if config.option.use_local_test_data: | ||
# if test_data_local_size == -1: | ||
# pytest.exit("Test data `{}` is not present in the system".format(test_data_archive)) | ||
# else: | ||
# print( | ||
# "Using the local `{}` test archive ({}B) found in the `{}` folder.".format( | ||
# __TEST_DATA_FILENAME, test_data_local_size, test_dir |
Check notice
Code scanning / CodeQL
Commented-out code Note test
tests/conftest.py
Outdated
# if not config.option.use_local_test_data: | ||
# try: | ||
# url = __TEST_DATA_URL + __TEST_DATA_FILENAME | ||
# u = urllib.request.urlopen(url) | ||
# except: | ||
# # Couldn't access remote archive. | ||
# if test_data_local_size == -1: | ||
# pytest.exit("Test data not present in the system and cannot access the '{}' URL".format(url)) | ||
# else: | ||
# print( | ||
# "Cannot access the '{}' URL, using the test data ({}B) found in the `{}` folder.".format( | ||
# url, test_data_local_size, test_dir |
Check notice
Code scanning / CodeQL
Commented-out code Note test
tests/conftest.py
Outdated
# if test_data_local_size != test_data_remote_size: | ||
# print( |
Check notice
Code scanning / CodeQL
Commented-out code Note test
tests/conftest.py
Outdated
# else: | ||
# print( | ||
# "A valid `{}` test archive ({}B) found in the `{}` folder.".format( | ||
# __TEST_DATA_FILENAME, test_data_local_size, test_dir |
Check notice
Code scanning / CodeQL
Commented-out code Note test
tests/conftest.py
Outdated
# else: | ||
# # untar local test data | ||
# extract_data_from_tar(test_dir, test_data_archive, local_data=config.option.use_local_test_data) |
Check notice
Code scanning / CodeQL
Commented-out code Note test
Signed-off-by: Evelina <ebakhturina@nvidia.com>
Signed-off-by: Evelina <ebakhturina@nvidia.com>
Signed-off-by: Evelina <ebakhturina@nvidia.com>
Signed-off-by: Evelina <ebakhturina@nvidia.com>
What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
Before your PR is "Ready for review"
Pre checks:
git commit -s
to sign.pytest
or (if your machine does not have GPU)pytest --cpu
from the root folder (given you marked your test cases accordingly@pytest.mark.run_only_on('CPU')
).bash tools/text_processing_deployment/export_grammars.sh --MODE=test ...
pytest
and Sparrowhawk here.__init__.py
for every folder and subfolder, includingdata
folder which has .TSV files?Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
to all newly added Python files?Copyright 2015 and onwards Google, Inc.
. See an example here.try import: ... except: ...
) if not already done.PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.