artefacts-cli 0.17.0__tar.gz → 0.17.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/CHANGELOG.md +23 -0
- {artefacts_cli-0.17.0/artefacts_cli.egg-info → artefacts_cli-0.17.2}/PKG-INFO +4 -3
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/__init__.py +0 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/__init__.py +53 -83
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/app.py +54 -49
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/app_auth.py +16 -6
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/app_containers.py +38 -55
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/app_experimental.py +20 -17
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/app_project.py +15 -19
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/blob/__init__.py +48 -34
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/blob/filetree_classifyer.py +4 -3
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/blob/hash_cache.py +17 -11
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/blob/helpers.py +6 -2
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/config.py +40 -51
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/constants.py +1 -2
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/containers/__init__.py +12 -10
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/containers/docker_cm.py +36 -39
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/containers/docker_utils.py +16 -23
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/containers/utils.py +8 -15
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/core/code_environment.py +64 -42
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/doctor.py +18 -25
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/download.py +7 -8
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/errors.py +4 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/i18n.py +1 -2
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/locales/art.pot +7 -227
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/locales/base.pot +7 -236
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/locales/click.pot +3 -2
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/locales/ja_JP/LC_MESSAGES/artefacts.po +87 -325
- artefacts_cli-0.17.2/artefacts/cli/logger.py +34 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/reporter.py +22 -22
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/runners/base_runner.py +1 -2
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/runners/launch_test_runner.py +12 -8
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/runners/pytest_runner.py +2 -3
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/shell_completion.py +30 -87
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/__init__.py +0 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/api.py +1 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/click_net_watch.py +2 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/common.py +46 -45
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/config.py +3 -4
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/formatting.py +4 -19
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/junit.py +3 -7
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/parameters.py +3 -3
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/proc_tree_tracker.py +6 -9
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/ros/bagparser.py +8 -11
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/version.py +3 -3
- artefacts_cli-0.17.2/artefacts/copava/__init__.py +1 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2/artefacts_cli.egg-info}/PKG-INFO +4 -3
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts_cli.egg-info/SOURCES.txt +7 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts_cli.egg-info/requires.txt +3 -2
- artefacts_cli-0.17.2/artefacts_cli.egg-info/scm_file_list.json +181 -0
- artefacts_cli-0.17.2/artefacts_cli.egg-info/scm_version.json +8 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/infra-tests/test_run_remote.yaml +1 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/pyproject.toml +3 -2
- artefacts_cli-0.17.2/scripts/dev_version.py +52 -0
- artefacts_cli-0.17.2/tests/cli/blob/conftest.py +26 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/blob/test_compression.py +27 -21
- artefacts_cli-0.17.2/tests/cli/blob/test_dir_crawl.py +116 -0
- artefacts_cli-0.17.2/tests/cli/blob/test_hash_cache.py +56 -0
- artefacts_cli-0.17.2/tests/cli/blob/test_manifest.py +71 -0
- artefacts_cli-0.17.2/tests/cli/blob/test_scan_and_hash.py +70 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/containers/test_docker.py +6 -6
- artefacts_cli-0.17.2/tests/cli/containers/test_docker_cm.py +20 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/core/test_code_environment.py +83 -36
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_app_auth.py +14 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_app_project.py +8 -8
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_cli.py +6 -7
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_config.py +17 -5
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_config_validation.py +2 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_other.py +5 -4
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_pytest.py +14 -12
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_reporter.py +14 -12
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_ros2.py +5 -5
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_utils.py +10 -6
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_warp.py +21 -22
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_warp_run.py +3 -4
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/conftest.py +18 -14
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/utils/docker_mock.py +6 -8
- artefacts_cli-0.17.0/artefacts/cli/logger.py +0 -30
- artefacts_cli-0.17.0/artefacts/copava/__init__.py +0 -1
- artefacts_cli-0.17.0/scripts/dev_version.py +0 -34
- artefacts_cli-0.17.0/tests/cli/blob/test_dir_crawl.py +0 -132
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/.coveragerc +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/.pyre_configuration +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/README.md +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/README_INTERNAL.md +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/default/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/default/get_artifact.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/framework/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/framework/list_frameworks.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/framework/list_simulators.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/job/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/job/api_project_new_job.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/job/get_artifact_downloads.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/job/get_job_by_commit.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/job/get_job_test_results.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/job/post_update_job_results.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/job/put_update_job_results.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/job/trigger_platform_launch.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/organization/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/organization/post_create_organization.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/project/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/project/api_project_info.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/project/create_remote.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/project/get_badge.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/project/get_config.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/project/get_last_jobs.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/project/upload_source.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/projects/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/projects/api_create_project.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/projects/api_list_projects.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/run/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/run/create_job_run.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/run/submit_run_results.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/user/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/api/user/get_user_organizations.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/client.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/errors.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/artifact_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/blob.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/create_new_job.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/create_organization.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/create_organization_errors.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/create_project.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/create_remote.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/create_remote_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/create_remote_response_blob_upload_urls.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/create_remote_response_upload_urls.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/error.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/error_errors.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/framework.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/frameworks_list.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/get_artifact_downloads_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/job.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/last_jobs_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/list_projects_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/organization.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/presigned_url.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/presigned_url_fields.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/project.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/register_run.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/register_run_tests_item.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/scenario_map_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/simulator.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/simulators_list.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/submit_run_results.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/submit_run_results_metrics.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/submit_run_results_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/submit_run_results_response_upload_urls.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/submit_run_results_tests_item.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/submit_run_results_uploads.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/update_job_results.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/upload_source_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/upload_source_response_upload_urls.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/models/user_organizations_response.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/api/types.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/app_containers.pyi +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/blob/types.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/core/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/runners/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/templates/sample_config.yaml +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/auth.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/ros/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts/cli/utils/ros/rosbags.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts.yaml +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts_cli.egg-info/dependency_links.txt +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts_cli.egg-info/entry_points.txt +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/artefacts_cli.egg-info/top_level.txt +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/bin/release +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/infra-tests/turtlesim2/launch_turtle.py +3 -3
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/infra-tests/turtlesim2/sample_node.py +1 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/pytest.ini +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/scripts/whats_latest.rb +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/setup.cfg +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/blob/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/containers/__init__.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/containers/test_utils.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_app_containers.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_download.py +4 -4
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_init.py +1 -1
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_parameters.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_signals.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/cli/test_utils_ros.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/fixtures/artefacts-env-param.yaml +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/fixtures/artefacts.yaml.template +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/fixtures/artefacts_deprecated.yaml +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/fixtures/bad_launch_test.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/fixtures/sample_pytest_file.py +0 -0
- {artefacts_cli-0.17.0 → artefacts_cli-0.17.2}/tests/fixtures/test_junit.xml +0 -0
|
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.17.2] - 2026-09-15
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- A few missing translations
|
|
15
|
+
- `--in-container` failed with 401 on jobs longer than access token lifetime. Login session now shared with the container so it can refresh the token
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Refactoring after upgrading the code formatter to Ruff 0.16.x. No observable change (#564)
|
|
20
|
+
- Upgrade to Click 8.5.0, including our work on deeper internationalisation (#370)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [0.17.1] - 2026-08-20
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- Local caching was incorrectly dealing with duplicate entries (same content) at different paths (#554)
|
|
28
|
+
- Fix debug messages that could not show in developer mode (#553)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [0.17.0] - 2026-06-01
|
|
32
|
+
|
|
10
33
|
### Changed
|
|
11
34
|
|
|
12
35
|
- Show a link to the dashboard when project commands miss arguments (#534)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: artefacts_cli
|
|
3
|
-
Version: 0.17.
|
|
3
|
+
Version: 0.17.2
|
|
4
4
|
Author-email: FD <fabian@artefacts.com>, AGC <alejandro@artefacts.com>, TN <tomo@artefacts.com>, EP <eric@artefacts.com>
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://github.com/art-e-fact/artefacts-client
|
|
@@ -12,9 +12,9 @@ Requires-Python: >=3.10
|
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
Requires-Dist: artefacts-c2d>=1.8.11
|
|
14
14
|
Requires-Dist: artefacts-copava>=0.2.0
|
|
15
|
-
Requires-Dist: artefacts-click==0.2.0
|
|
16
15
|
Requires-Dist: artefacts-xray>=0.2.0
|
|
17
16
|
Requires-Dist: bitmath==1.4.0.1
|
|
17
|
+
Requires-Dist: click==8.5.0
|
|
18
18
|
Requires-Dist: docker==7.1.0
|
|
19
19
|
Requires-Dist: gitignore_parser>=0.1.11
|
|
20
20
|
Requires-Dist: junitparser>=2.5
|
|
@@ -40,6 +40,7 @@ Requires-Dist: mkdocs-click==0.8.0; extra == "dev"
|
|
|
40
40
|
Requires-Dist: mkdocs-material==8.5.6; extra == "dev"
|
|
41
41
|
Requires-Dist: mkdocs-mermaid2-plugin==0.6.0; extra == "dev"
|
|
42
42
|
Requires-Dist: mkdocs==1.4.2; extra == "dev"
|
|
43
|
+
Requires-Dist: packaging; extra == "dev"
|
|
43
44
|
Requires-Dist: pre-commit; extra == "dev"
|
|
44
45
|
Requires-Dist: pyre-check; extra == "dev"
|
|
45
46
|
Requires-Dist: pytest; extra == "dev"
|
|
@@ -48,7 +49,7 @@ Requires-Dist: pytest-env; extra == "dev"
|
|
|
48
49
|
Requires-Dist: pytest-httpx; extra == "dev"
|
|
49
50
|
Requires-Dist: pytest-mock; extra == "dev"
|
|
50
51
|
Requires-Dist: python-markdown-math; extra == "dev"
|
|
51
|
-
Requires-Dist: ruff
|
|
52
|
+
Requires-Dist: ruff==0.16.5; extra == "dev"
|
|
52
53
|
Requires-Dist: setuptools_scm>=8; extra == "dev"
|
|
53
54
|
Requires-Dist: twine; extra == "dev"
|
|
54
55
|
Provides-Extra: dev-extended
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import atexit
|
|
2
|
-
from datetime import datetime, timezone
|
|
3
|
-
from functools import partial
|
|
4
|
-
from importlib.metadata import PackageNotFoundError, version
|
|
5
|
-
from types import FrameType
|
|
6
|
-
from typing import Optional, Union
|
|
7
2
|
import copy
|
|
8
3
|
import glob
|
|
9
4
|
import json
|
|
@@ -15,9 +10,14 @@ import sys
|
|
|
15
10
|
import tempfile
|
|
16
11
|
import textwrap
|
|
17
12
|
import traceback
|
|
18
|
-
from
|
|
13
|
+
from collections.abc import Callable
|
|
14
|
+
from datetime import datetime, timezone
|
|
15
|
+
from functools import partial
|
|
16
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
17
|
+
from types import FrameType
|
|
19
18
|
|
|
20
19
|
import click
|
|
20
|
+
from axray.tracker import TrackerConf
|
|
21
21
|
|
|
22
22
|
from artefacts.api.api.job import api_project_new_job, post_update_job_results
|
|
23
23
|
from artefacts.api.api.run import create_job_run, submit_run_results
|
|
@@ -27,20 +27,18 @@ from artefacts.api.models import (
|
|
|
27
27
|
SubmitRunResults,
|
|
28
28
|
UpdateJobResults,
|
|
29
29
|
)
|
|
30
|
+
|
|
30
31
|
from .config import APIConf
|
|
31
32
|
from .i18n import localise
|
|
32
33
|
from .logger import logger
|
|
33
34
|
from .utils import (
|
|
34
35
|
ClickNetWatch,
|
|
36
|
+
ProcTreeTracker,
|
|
35
37
|
iter_grid,
|
|
36
38
|
new_version_available,
|
|
37
39
|
project_info_from,
|
|
38
|
-
ProcTreeTracker,
|
|
39
40
|
)
|
|
40
41
|
|
|
41
|
-
from axray.tracker import TrackerConf
|
|
42
|
-
|
|
43
|
-
|
|
44
42
|
proc_tree_tracker = ProcTreeTracker()
|
|
45
43
|
atexit.register(proc_tree_tracker.terminate)
|
|
46
44
|
|
|
@@ -53,13 +51,9 @@ except PackageNotFoundError:
|
|
|
53
51
|
from setuptools_scm import get_version
|
|
54
52
|
|
|
55
53
|
__version__ = get_version()
|
|
56
|
-
except Exception as e:
|
|
54
|
+
except Exception as e: # noqa: BLE001
|
|
57
55
|
logger.warning(
|
|
58
|
-
localise(
|
|
59
|
-
"Could not determine package version: {error_message}. Default to 0.0.0".format(
|
|
60
|
-
error_message=e
|
|
61
|
-
)
|
|
62
|
-
)
|
|
56
|
+
localise(f"Could not determine package version: {e}. Default to 0.0.0")
|
|
63
57
|
)
|
|
64
58
|
__version__ = "0.0.0"
|
|
65
59
|
|
|
@@ -67,9 +61,7 @@ _new_version = new_version_available(__version__)
|
|
|
67
61
|
if _new_version:
|
|
68
62
|
_terminal_width, _ = shutil.get_terminal_size()
|
|
69
63
|
message = localise(
|
|
70
|
-
"New version {
|
|
71
|
-
version=_new_version
|
|
72
|
-
)
|
|
64
|
+
f"New version {_new_version} available. Please consider upgrading!"
|
|
73
65
|
).center(_terminal_width - 4)
|
|
74
66
|
report = [
|
|
75
67
|
"*" * _terminal_width,
|
|
@@ -84,14 +76,10 @@ class ArtefactsAPIError(Exception):
|
|
|
84
76
|
Tentative base error class for Artefacts API interactions
|
|
85
77
|
"""
|
|
86
78
|
|
|
87
|
-
pass
|
|
88
|
-
|
|
89
79
|
|
|
90
80
|
class AuthenticationError(ArtefactsAPIError):
|
|
91
81
|
"""Raised when artefacts authentication failed"""
|
|
92
82
|
|
|
93
|
-
pass
|
|
94
|
-
|
|
95
83
|
|
|
96
84
|
class Job:
|
|
97
85
|
def __init__(
|
|
@@ -165,8 +153,6 @@ class Job:
|
|
|
165
153
|
)
|
|
166
154
|
)
|
|
167
155
|
|
|
168
|
-
return
|
|
169
|
-
|
|
170
156
|
def log_tests_result(self, success):
|
|
171
157
|
self.success = success
|
|
172
158
|
|
|
@@ -196,7 +182,7 @@ class Job:
|
|
|
196
182
|
|
|
197
183
|
return response.status_code == 200
|
|
198
184
|
|
|
199
|
-
def new_run(self, scenario, tracker:
|
|
185
|
+
def new_run(self, scenario, tracker: TrackerConf | None = None):
|
|
200
186
|
self.current_run = Run(
|
|
201
187
|
self, scenario["name"], scenario, self.n_runs, tracker=tracker
|
|
202
188
|
)
|
|
@@ -211,7 +197,7 @@ class Run:
|
|
|
211
197
|
name: str,
|
|
212
198
|
params: dict,
|
|
213
199
|
run_n: int,
|
|
214
|
-
tracker:
|
|
200
|
+
tracker: TrackerConf | None = None,
|
|
215
201
|
):
|
|
216
202
|
self.job = job
|
|
217
203
|
self.start = datetime.now(timezone.utc).timestamp()
|
|
@@ -260,7 +246,7 @@ class Run:
|
|
|
260
246
|
def log_params(self, params):
|
|
261
247
|
self.params = params
|
|
262
248
|
|
|
263
|
-
def log_metric(self, name: str, value:
|
|
249
|
+
def log_metric(self, name: str, value: float) -> None:
|
|
264
250
|
"""Adds a metric key-value pair to be displayed on the dashboard.
|
|
265
251
|
|
|
266
252
|
Args:
|
|
@@ -273,9 +259,7 @@ class Run:
|
|
|
273
259
|
else:
|
|
274
260
|
self.logger.warning(
|
|
275
261
|
localise(
|
|
276
|
-
"At present, only numeric metric values are accepted. Skipping metric {
|
|
277
|
-
metric=name, value=value
|
|
278
|
-
)
|
|
262
|
+
f"At present, only numeric metric values are accepted. Skipping metric {name} with value {value}."
|
|
279
263
|
)
|
|
280
264
|
)
|
|
281
265
|
|
|
@@ -293,9 +277,7 @@ class Run:
|
|
|
293
277
|
if not os.path.exists(metrics_file_path):
|
|
294
278
|
self.logger.warning(
|
|
295
279
|
localise(
|
|
296
|
-
"metrics file not found, does it exist? looking for: {
|
|
297
|
-
metrics=metrics_file_path
|
|
298
|
-
)
|
|
280
|
+
f"metrics file not found, does it exist? looking for: {metrics_file_path}"
|
|
299
281
|
)
|
|
300
282
|
)
|
|
301
283
|
return
|
|
@@ -305,11 +287,7 @@ class Run:
|
|
|
305
287
|
metric_values = json.load(f)
|
|
306
288
|
except json.JSONDecodeError as e:
|
|
307
289
|
self.logger.warning(
|
|
308
|
-
localise(
|
|
309
|
-
"Failed to parse json of file: {metrics}\n".format(
|
|
310
|
-
metrics=metrics_file_path
|
|
311
|
-
)
|
|
312
|
-
),
|
|
290
|
+
localise(f"Failed to parse json of file: {metrics_file_path}\n"),
|
|
313
291
|
*map(localise, traceback.format_exception(e)),
|
|
314
292
|
)
|
|
315
293
|
return
|
|
@@ -380,9 +358,7 @@ class Run:
|
|
|
380
358
|
if self.test_results is None:
|
|
381
359
|
raise click.ClickException(
|
|
382
360
|
localise(
|
|
383
|
-
"Test results are not available yet for job run #{
|
|
384
|
-
n=self.run_n
|
|
385
|
-
)
|
|
361
|
+
f"Test results are not available yet for job run #{self.run_n}. The run will be empty."
|
|
386
362
|
)
|
|
387
363
|
)
|
|
388
364
|
|
|
@@ -443,41 +419,37 @@ class Run:
|
|
|
443
419
|
else:
|
|
444
420
|
return ""
|
|
445
421
|
|
|
446
|
-
with
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
)
|
|
465
|
-
|
|
466
|
-
self.logger.warning(
|
|
467
|
-
localise(
|
|
468
|
-
"File too large: {filepath} could not be uploaded".format(
|
|
469
|
-
filepath=filepath
|
|
470
|
-
)
|
|
471
|
-
)
|
|
422
|
+
with (
|
|
423
|
+
click.progressbar(
|
|
424
|
+
self.uploads.items(),
|
|
425
|
+
length=total_size,
|
|
426
|
+
label=label,
|
|
427
|
+
item_show_func=lambda x: x and clip_file_name(x[0]),
|
|
428
|
+
show_eta=False,
|
|
429
|
+
hidden=False,
|
|
430
|
+
width=width,
|
|
431
|
+
) as bar,
|
|
432
|
+
ClickNetWatch(bar),
|
|
433
|
+
):
|
|
434
|
+
for filename, filepath in bar:
|
|
435
|
+
upload_info = upload_urls[filename]
|
|
436
|
+
try:
|
|
437
|
+
with open(filepath, "rb") as f:
|
|
438
|
+
self.job.api_conf.upload(
|
|
439
|
+
upload_info.url,
|
|
440
|
+
upload_info.fields.to_dict(),
|
|
441
|
+
(filename, f),
|
|
472
442
|
)
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
filepath=filepath, error_message=e
|
|
478
|
-
)
|
|
479
|
-
)
|
|
443
|
+
except OverflowError:
|
|
444
|
+
self.logger.warning(
|
|
445
|
+
localise(
|
|
446
|
+
f"File too large: {filepath} could not be uploaded"
|
|
480
447
|
)
|
|
448
|
+
)
|
|
449
|
+
except Exception as e: # noqa: BLE001
|
|
450
|
+
self.logger.warning(
|
|
451
|
+
localise(f"Error uploading {filepath}: {e}, skipping")
|
|
452
|
+
)
|
|
481
453
|
|
|
482
454
|
|
|
483
455
|
def job_sigint_handler(
|
|
@@ -508,7 +480,7 @@ def init_job(
|
|
|
508
480
|
nosim: bool = False,
|
|
509
481
|
noupload: bool = False,
|
|
510
482
|
noisolation: bool = False,
|
|
511
|
-
context:
|
|
483
|
+
context: dict | None = None,
|
|
512
484
|
run_offset=0,
|
|
513
485
|
n_subjobs: int = 1,
|
|
514
486
|
):
|
|
@@ -548,7 +520,7 @@ def generate_scenarios(jobconf, scenario_n=None):
|
|
|
548
520
|
# add `settings` keys on top of `defaults` keys
|
|
549
521
|
# (taking special care to merge the `params` keys)
|
|
550
522
|
scenario = copy.deepcopy(defaults) # deepcopy mandatory
|
|
551
|
-
for k in scenario_settings
|
|
523
|
+
for k in scenario_settings:
|
|
552
524
|
# merge scenario dict values into default dict values
|
|
553
525
|
if k == "params" or k == "launch_arguments":
|
|
554
526
|
scenario[k] = {
|
|
@@ -560,7 +532,7 @@ def generate_scenarios(jobconf, scenario_n=None):
|
|
|
560
532
|
scenario[k] = scenario_settings[k]
|
|
561
533
|
|
|
562
534
|
# generate scenarios for each combination of parameter values (grid coverage)
|
|
563
|
-
if "params" in scenario
|
|
535
|
+
if "params" in scenario:
|
|
564
536
|
grid_values = iter_grid(scenario["params"])
|
|
565
537
|
for value in grid_values:
|
|
566
538
|
grid_scenario = scenario.copy()
|
|
@@ -574,7 +546,7 @@ def generate_scenarios(jobconf, scenario_n=None):
|
|
|
574
546
|
|
|
575
547
|
class CLIState:
|
|
576
548
|
def __init__(self):
|
|
577
|
-
self.signal_handlers =
|
|
549
|
+
self.signal_handlers = {}
|
|
578
550
|
|
|
579
551
|
def register_signal_handler(
|
|
580
552
|
self, sig: int, handler: Callable[[int, FrameType | None], None]
|
|
@@ -596,11 +568,9 @@ class CLIState:
|
|
|
596
568
|
for handler in handlers:
|
|
597
569
|
try:
|
|
598
570
|
handler(sig, frame)
|
|
599
|
-
except Exception as e:
|
|
571
|
+
except Exception as e: # noqa: BLE001
|
|
600
572
|
click.echo(
|
|
601
573
|
localise(
|
|
602
|
-
"Error while executing closing procedure {handler} on {
|
|
603
|
-
handler=handler, signame=signal.Signals(sig).name, error=e
|
|
604
|
-
)
|
|
574
|
+
f"Error while executing closing procedure {handler} on {signal.Signals(sig).name}: {e}. Continue with any remaining procedure."
|
|
605
575
|
)
|
|
606
576
|
)
|
|
@@ -1,36 +1,47 @@
|
|
|
1
|
-
from functools import partial
|
|
2
1
|
import io
|
|
3
2
|
import json
|
|
4
3
|
import os
|
|
5
|
-
from pathlib import Path
|
|
6
4
|
import random
|
|
7
5
|
import signal
|
|
8
6
|
import sys
|
|
9
7
|
import tempfile
|
|
10
8
|
import time
|
|
11
|
-
from typing import Optional
|
|
12
|
-
from urllib.parse import urlparse
|
|
13
9
|
import webbrowser
|
|
10
|
+
from functools import partial
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
from urllib.parse import urlparse
|
|
14
13
|
|
|
15
14
|
import bitmath
|
|
16
|
-
import yaml
|
|
17
15
|
import click
|
|
16
|
+
import yaml
|
|
17
|
+
from axray import resource_tracking
|
|
18
18
|
|
|
19
|
+
from artefacts.api.api.framework import list_frameworks, list_simulators
|
|
20
|
+
from artefacts.api.api.project import (
|
|
21
|
+
api_project_info,
|
|
22
|
+
create_remote,
|
|
23
|
+
get_config,
|
|
24
|
+
)
|
|
25
|
+
from artefacts.api.models import Blob as ApiFileBlob
|
|
26
|
+
from artefacts.api.models import CreateRemote
|
|
19
27
|
from artefacts.cli import (
|
|
20
|
-
|
|
28
|
+
AuthenticationError,
|
|
29
|
+
CLIState,
|
|
30
|
+
__version__,
|
|
31
|
+
app_experimental,
|
|
32
|
+
app_project,
|
|
21
33
|
generate_scenarios,
|
|
34
|
+
init_job,
|
|
22
35
|
job_sigint_handler,
|
|
23
36
|
localise,
|
|
24
37
|
logger,
|
|
25
|
-
AuthenticationError,
|
|
26
|
-
__version__,
|
|
27
|
-
CLIState,
|
|
28
38
|
proc_tree_tracker,
|
|
39
|
+
shell_completion,
|
|
29
40
|
)
|
|
30
|
-
from artefacts.cli import app_containers as containers
|
|
31
41
|
from artefacts.cli import app_auth as auth
|
|
32
|
-
from artefacts.cli import
|
|
33
|
-
from artefacts.cli import
|
|
42
|
+
from artefacts.cli import app_containers as containers
|
|
43
|
+
from artefacts.cli.blob import compress_manifest, scan_and_hash, upload_blobs
|
|
44
|
+
from artefacts.cli.blob.hash_cache import load_hash_cache, save_hash_cache
|
|
34
45
|
from artefacts.cli.config import APIConf
|
|
35
46
|
from artefacts.cli.constants import (
|
|
36
47
|
CONFIG_PATH,
|
|
@@ -40,15 +51,14 @@ from artefacts.cli.constants import (
|
|
|
40
51
|
)
|
|
41
52
|
from artefacts.cli.core import CodeEnvironment
|
|
42
53
|
from artefacts.cli.doctor import doctor
|
|
54
|
+
from artefacts.cli.download import download
|
|
43
55
|
from artefacts.cli.errors import InvalidAPIKey
|
|
44
|
-
from artefacts.cli import shell_completion
|
|
45
56
|
from artefacts.cli.utils import (
|
|
46
57
|
add_key_to_conf,
|
|
47
58
|
add_output_from_default,
|
|
48
59
|
ask_for_non_empty_string,
|
|
49
60
|
config_validation,
|
|
50
61
|
endpoint_exists,
|
|
51
|
-
run_deferred_validation,
|
|
52
62
|
fetch_job_names,
|
|
53
63
|
fetch_project_names,
|
|
54
64
|
get_artefacts_api_url,
|
|
@@ -57,18 +67,8 @@ from artefacts.cli.utils import (
|
|
|
57
67
|
prompt_with_choices,
|
|
58
68
|
read_config,
|
|
59
69
|
read_config_raw,
|
|
70
|
+
run_deferred_validation,
|
|
60
71
|
)
|
|
61
|
-
from artefacts.api.api.framework import list_frameworks, list_simulators
|
|
62
|
-
from artefacts.api.api.project import (
|
|
63
|
-
api_project_info,
|
|
64
|
-
create_remote,
|
|
65
|
-
get_config,
|
|
66
|
-
)
|
|
67
|
-
from artefacts.api.models import CreateRemote, Blob as ApiFileBlob
|
|
68
|
-
from artefacts.cli.blob import scan_and_hash, upload_blobs, compress_manifest
|
|
69
|
-
from artefacts.cli.blob.hash_cache import load_hash_cache, save_hash_cache
|
|
70
|
-
from axray import resource_tracking
|
|
71
|
-
from artefacts.cli.download import download
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
def _handle_test_execution_exception(e, run, job, jobname):
|
|
@@ -161,15 +161,18 @@ def add(project_name):
|
|
|
161
161
|
# Check project name consistency with respect to any pre-existing artefacts.yaml file.
|
|
162
162
|
if Path("artefacts.yaml").exists():
|
|
163
163
|
pconf = read_config("artefacts.yaml")
|
|
164
|
-
if
|
|
165
|
-
|
|
164
|
+
if (
|
|
165
|
+
"project" in pconf
|
|
166
|
+
and pconf["project"] != project_name
|
|
167
|
+
and not click.confirm(
|
|
166
168
|
localise(
|
|
167
169
|
'You are adding project "{given}" to Artefact, but a local artefacts.yaml configuration refers to project "{existing}". Continuing will offer to overwrite this local file. Do you want continue?'.format(
|
|
168
170
|
given=project_name, existing=pconf["project"]
|
|
169
171
|
)
|
|
170
172
|
)
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
+
)
|
|
174
|
+
):
|
|
175
|
+
raise click.Abort()
|
|
173
176
|
|
|
174
177
|
# Proceed with the addition
|
|
175
178
|
config = get_conf_from_file()
|
|
@@ -258,7 +261,7 @@ def add(project_name):
|
|
|
258
261
|
frameworks = {
|
|
259
262
|
f.name: f.id for f in fw_response.parsed.items if f.supported
|
|
260
263
|
}
|
|
261
|
-
except Exception:
|
|
264
|
+
except Exception: # noqa: BLE001
|
|
262
265
|
frameworks = {
|
|
263
266
|
str(f).split(":")[0]: str(f).split(":")[0].lower()
|
|
264
267
|
for f in SUPPORTED_FRAMEWORKS
|
|
@@ -289,7 +292,7 @@ def add(project_name):
|
|
|
289
292
|
for s in sim_response.parsed.items
|
|
290
293
|
if s.supported
|
|
291
294
|
}
|
|
292
|
-
except Exception:
|
|
295
|
+
except Exception: # noqa: BLE001, S110
|
|
293
296
|
pass
|
|
294
297
|
if simulators is None:
|
|
295
298
|
simulators = {str(s): str(s).lower() for s in SUPPORTED_SIMULATORS}
|
|
@@ -413,13 +416,16 @@ def hello(
|
|
|
413
416
|
ctx,
|
|
414
417
|
)
|
|
415
418
|
|
|
416
|
-
if
|
|
417
|
-
|
|
419
|
+
if (
|
|
420
|
+
config_project_name
|
|
421
|
+
and project_name != config_project_name
|
|
422
|
+
and not click.confirm(
|
|
418
423
|
localise(
|
|
419
424
|
'The project name "{given}" differs from the one found in the local Artefacts configuration file (found {existing}). Do you want to continue with this mismatch? Continuing would use "{given}" as project name.'
|
|
420
425
|
).format(given=project_name, existing=config_project_name)
|
|
421
|
-
)
|
|
422
|
-
|
|
426
|
+
)
|
|
427
|
+
):
|
|
428
|
+
raise click.Abort()
|
|
423
429
|
|
|
424
430
|
api_conf = APIConf(project_name, __version__)
|
|
425
431
|
org, proj = project_info_from(project_name)
|
|
@@ -445,9 +451,9 @@ def hello(
|
|
|
445
451
|
|
|
446
452
|
|
|
447
453
|
@click.command(
|
|
448
|
-
context_settings=
|
|
449
|
-
ignore_unknown_options
|
|
450
|
-
|
|
454
|
+
context_settings={
|
|
455
|
+
"ignore_unknown_options": True,
|
|
456
|
+
}
|
|
451
457
|
)
|
|
452
458
|
@click.argument("jobname", metavar=localise("JOBNAME"), shell_complete=fetch_job_names)
|
|
453
459
|
@click.option(
|
|
@@ -580,7 +586,7 @@ def run(
|
|
|
580
586
|
track_resources: bool = False,
|
|
581
587
|
show_stats: bool = False,
|
|
582
588
|
unsafe_teardown: bool = False,
|
|
583
|
-
container_engine_args:
|
|
589
|
+
container_engine_args: tuple | None = None,
|
|
584
590
|
):
|
|
585
591
|
"""
|
|
586
592
|
Run JOBNAME locally
|
|
@@ -665,7 +671,7 @@ def run(
|
|
|
665
671
|
framework = jobconf["runtime"].get("framework", None)
|
|
666
672
|
|
|
667
673
|
# migrate deprecated framework names
|
|
668
|
-
if framework in DEPRECATED_FRAMEWORKS
|
|
674
|
+
if framework in DEPRECATED_FRAMEWORKS:
|
|
669
675
|
migrated_framework = DEPRECATED_FRAMEWORKS[framework]
|
|
670
676
|
click.echo(
|
|
671
677
|
f"[{jobname}] "
|
|
@@ -790,11 +796,11 @@ def run(
|
|
|
790
796
|
|
|
791
797
|
if dryrun:
|
|
792
798
|
click.echo(f"[{jobname}] " + localise("Performing dry run"))
|
|
793
|
-
|
|
799
|
+
_results, success = {}, True
|
|
794
800
|
else:
|
|
795
801
|
try:
|
|
796
|
-
|
|
797
|
-
except Exception as e:
|
|
802
|
+
_results, success = run_ros2_tests(run)
|
|
803
|
+
except Exception as e: # noqa: BLE001
|
|
798
804
|
_handle_test_execution_exception(e, run, job, jobname)
|
|
799
805
|
continue
|
|
800
806
|
if success is None:
|
|
@@ -812,11 +818,11 @@ def run(
|
|
|
812
818
|
|
|
813
819
|
if dryrun:
|
|
814
820
|
click.echo(f"[{jobname}] " + localise("Performing dry run"))
|
|
815
|
-
|
|
821
|
+
_results, success = {}, True
|
|
816
822
|
else:
|
|
817
823
|
try:
|
|
818
|
-
|
|
819
|
-
except Exception as e:
|
|
824
|
+
_results, success = run_pytest_tests(run, framework)
|
|
825
|
+
except Exception as e: # noqa: BLE001
|
|
820
826
|
_handle_test_execution_exception(e, run, job, jobname)
|
|
821
827
|
continue
|
|
822
828
|
if success is None and framework.startswith("ros2:"):
|
|
@@ -835,9 +841,9 @@ def run(
|
|
|
835
841
|
|
|
836
842
|
if dryrun:
|
|
837
843
|
click.echo(f"[{jobname}] " + localise("Performing dry run"))
|
|
838
|
-
|
|
844
|
+
_results, success = {}, True
|
|
839
845
|
else:
|
|
840
|
-
|
|
846
|
+
_results, success = run_other_tests(run, framework)
|
|
841
847
|
if not success:
|
|
842
848
|
job_success = False
|
|
843
849
|
if isinstance(run.params.get("metrics"), str):
|
|
@@ -1094,7 +1100,6 @@ def run_remote(ctx, config, description, jobname, skip_validation=False):
|
|
|
1094
1100
|
@click.version_option(version=__version__)
|
|
1095
1101
|
def artefacts():
|
|
1096
1102
|
"""A command line tool to interface with ARTEFACTS"""
|
|
1097
|
-
pass
|
|
1098
1103
|
|
|
1099
1104
|
|
|
1100
1105
|
artefacts.add_command(completion)
|
|
@@ -3,23 +3,24 @@
|
|
|
3
3
|
This module implements the CLI side of RFC 8628 device flow.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import time
|
|
6
|
+
import base64
|
|
8
7
|
import json
|
|
9
8
|
import logging
|
|
9
|
+
import os
|
|
10
10
|
import sys
|
|
11
|
+
import time
|
|
11
12
|
import webbrowser
|
|
12
|
-
import base64
|
|
13
13
|
from pathlib import Path
|
|
14
14
|
|
|
15
|
+
import click
|
|
15
16
|
import httpx
|
|
16
17
|
import jwt
|
|
17
18
|
from jwt import PyJWKClient, PyJWKClientError
|
|
18
19
|
|
|
19
20
|
from artefacts.cli.constants import (
|
|
20
21
|
CONFIG_DIR,
|
|
21
|
-
OIDC_ISSUER_URL,
|
|
22
22
|
OAUTH_CLIENT_ID,
|
|
23
|
+
OIDC_ISSUER_URL,
|
|
23
24
|
)
|
|
24
25
|
from artefacts.cli.i18n import localise
|
|
25
26
|
|
|
@@ -67,7 +68,7 @@ def load_credentials() -> dict | None:
|
|
|
67
68
|
return None
|
|
68
69
|
try:
|
|
69
70
|
return json.loads(CREDENTIALS_PATH.read_text())
|
|
70
|
-
except (json.JSONDecodeError
|
|
71
|
+
except (OSError, json.JSONDecodeError):
|
|
71
72
|
return None
|
|
72
73
|
|
|
73
74
|
|
|
@@ -189,6 +190,15 @@ def get_access_token() -> str | None:
|
|
|
189
190
|
Returns the access token if valid credentials exist, None otherwise.
|
|
190
191
|
Used by APIConf to authenticate API requests.
|
|
191
192
|
"""
|
|
193
|
+
|
|
194
|
+
# In-container CLI has no credentials file, so get it from the env.
|
|
195
|
+
if not CREDENTIALS_PATH.exists() and os.environ.get("ARTEFACTS_ACCESS_TOKEN"):
|
|
196
|
+
save_credentials(
|
|
197
|
+
{
|
|
198
|
+
"access_token": os.environ["ARTEFACTS_ACCESS_TOKEN"],
|
|
199
|
+
"refresh_token": os.environ.get("ARTEFACTS_REFRESH_TOKEN"),
|
|
200
|
+
}
|
|
201
|
+
)
|
|
192
202
|
creds = load_credentials()
|
|
193
203
|
if not creds:
|
|
194
204
|
return None
|
|
@@ -270,7 +280,7 @@ def login():
|
|
|
270
280
|
# Try to open browser automatically
|
|
271
281
|
try:
|
|
272
282
|
webbrowser.open(verification_uri_complete)
|
|
273
|
-
except Exception:
|
|
283
|
+
except Exception: # noqa: BLE001, S110
|
|
274
284
|
pass # If browser fails to open, user can use the link manually
|
|
275
285
|
|
|
276
286
|
click.echo()
|