Merge pull request #100 from shanejbrown/main #396
GitHub Actions / Test Results 3.10
failed
Nov 14, 2023 in 0s
1 fail, 4 skipped, 110 pass in 9m 41s
Annotations
Check warning on line 0 in tests.test_buildrunner_files
github-actions / Test Results 3.10
test_buildrunner_dir[tests/test-files-test-multi-platform-image-reuse.yaml-None-0] (tests.test_buildrunner_files) failed
test-reports/test-results.xml
Raw output
self = <docker.api.client.APIClient object at 0x7f1e55e65540>
response = <Response [409]>
def _raise_for_status(self, response):
"""Raises stored :class:`APIError`, if one occurred."""
try:
> response.raise_for_status()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/docker/api/client.py:268:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Response [409]>
def raise_for_status(self):
"""Raises :class:`HTTPError`, if one occurred."""
http_error_msg = ""
if isinstance(self.reason, bytes):
# We attempt to decode utf-8 first because some servers
# choose to localize their reason strings. If the string
# isn't utf-8, we fall back to iso-8859-1 for all other
# encodings. (See PR #3538)
try:
reason = self.reason.decode("utf-8")
except UnicodeDecodeError:
reason = self.reason.decode("iso-8859-1")
else:
reason = self.reason
if 400 <= self.status_code < 500:
http_error_msg = (
f"{self.status_code} Client Error: {reason} for url: {self.url}"
)
elif 500 <= self.status_code < 600:
http_error_msg = (
f"{self.status_code} Server Error: {reason} for url: {self.url}"
)
if http_error_msg:
> raise HTTPError(http_error_msg, response=self)
E requests.exceptions.HTTPError: 409 Client Error: Conflict for url: http+docker://localhost/v1.43/containers/b120d1cbee756fbf34797e2e1397729f6ee277f7eb6182fc31c2bffbca75ffe9/exec
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/requests/models.py:1021: HTTPError
The above exception was the direct cause of the following exception:
test_dir = 'tests/test-files'
file_name = 'test-multi-platform-image-reuse.yaml', args = None, exit_code = 0
@pytest.mark.parametrize('test_dir, file_name, args, exit_code', _get_test_runs(f'{TEST_DIR}/test-files'))
def test_buildrunner_dir(test_dir: str, file_name, args, exit_code):
> _test_buildrunner_file(test_dir, file_name, args, exit_code)
tests/test_buildrunner_files.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_buildrunner_files.py:67: in _test_buildrunner_file
assert exit_code == \
tests/test_runner.py:56: in run_tests
build_runner.run()
buildrunner/__init__.py:611: in run
build_step_runner.run()
buildrunner/steprunner/__init__.py:99: in run
_task.run(_context)
buildrunner/steprunner/tasks/run.py:1016: in run
self.runner.run("git config --global --add safe.directory /source")
buildrunner/docker/runner.py:455: in run
create_res = self.docker_client.exec_create(
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/docker/utils/decorators.py:19: in wrapped
return f(self, resource_id, *args, **kwargs)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/docker/api/exec_api.py:79: in exec_create
return self._result(res, True)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/docker/api/client.py:274: in _result
self._raise_for_status(response)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/docker/api/client.py:270: in _raise_for_status
raise create_api_error_from_http_exception(e) from e
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
e = HTTPError('409 Client Error: Conflict for url: http+docker://localhost/v1.43/containers/b120d1cbee756fbf34797e2e1397729f6ee277f7eb6182fc31c2bffbca75ffe9/exec')
def create_api_error_from_http_exception(e):
"""
Create a suitable APIError from requests.exceptions.HTTPError.
"""
response = e.response
try:
explanation = response.json()['message']
except ValueError:
explanation = (response.content or '').strip()
cls = APIError
if response.status_code == 404:
explanation_msg = (explanation or '').lower()
if any(fragment in explanation_msg
for fragment in _image_not_found_explanation_fragments):
cls = ImageNotFound
else:
cls = NotFound
> raise cls(e, response=response, explanation=explanation) from e
E docker.errors.APIError: 409 Client Error for http+docker://localhost/v1.43/containers/b120d1cbee756fbf34797e2e1397729f6ee277f7eb6182fc31c2bffbca75ffe9/exec: Conflict ("Container b120d1cbee756fbf34797e2e1397729f6ee277f7eb6182fc31c2bffbca75ffe9 is not running")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/docker/errors.py:39: APIError
Check notice on line 0 in .github
github-actions / Test Results 3.10
4 skipped tests found
There are 4 skipped tests, see "Raw output" for the full list of skipped tests.
Raw output
tests.test_buildrunner_files ‑ test_buildrunner_arm_dir[tests/test-files/arm-arch-test-platform-build.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_arm_dir[tests/test-files/arm-arch-test-platform-override-amd.yaml-args1-0]
tests.test_buildrunner_files ‑ test_buildrunner_arm_dir[tests/test-files/arm-arch-test-platform-override-arm.yaml-args2-0]
tests.test_buildrunner_files ‑ test_buildrunner_arm_dir[tests/test-files/arm-arch-test-platform-run.yaml-None-0]
Check notice on line 0 in .github
github-actions / Test Results 3.10
115 tests found
There are 115 tests, see "Raw output" for the full list of tests.
Raw output
tests.test_buildrunner_files ‑ test_buildrunner_arm_dir[tests/test-files/arm-arch-test-platform-build.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_arm_dir[tests/test-files/arm-arch-test-platform-override-amd.yaml-args1-0]
tests.test_buildrunner_files ‑ test_buildrunner_arm_dir[tests/test-files/arm-arch-test-platform-override-arm.yaml-args2-0]
tests.test_buildrunner_files ‑ test_buildrunner_arm_dir[tests/test-files/arm-arch-test-platform-run.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-alias_dir_mount.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-build_dir_mount.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-buildargs.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-dependencies.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-docker-pull-failure.yaml-None-78]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-env-vars.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-general.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-inject-nonexistent-dir.yaml-None-78]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-multi-platform-image-reuse.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-multi-platform-inject.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-multi-platform-none-path.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-push-artifact.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-push.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-redirect.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-simple.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-ssh.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-systemd.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-timeout.yaml-args17-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-unsafe-git.yaml-None-0]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-xfail-redirect_loop1.yaml-None-78]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-xfail-redirect_loop2.yaml-None-78]
tests.test_buildrunner_files ‑ test_buildrunner_dir[tests/test-files-test-xfail-redirect_loop_simple.yaml-None-78]
tests.test_caching ‑ test_restore_cache_basic
tests.test_caching ‑ test_restore_cache_no_cache
tests.test_caching ‑ test_restore_cache_prefix_matching
tests.test_caching ‑ test_restore_cache_prefix_timestamps
tests.test_caching ‑ test_save_cache_basic
tests.test_caching ‑ test_save_cache_multiple_cache_keys
tests.test_caching ‑ test_save_cache_multiple_caches
tests.test_config_validation.test_global_config ‑ test_global_config
tests.test_config_validation.test_global_config ‑ test_global_config_ssh_invalid
tests.test_config_validation.test_global_config ‑ test_global_config_ssh_key_file
tests.test_config_validation.test_validation_artifacts ‑ test_push_invalid
tests.test_config_validation.test_validation_artifacts ‑ test_push_valid
tests.test_config_validation.test_validation_artifacts ‑ test_step_artifacts_valid_compression
tests.test_config_validation.test_validation_artifacts ‑ test_step_remote_artifacts_valid
tests.test_config_validation.test_validation_artifacts ‑ test_step_run_artifacts_valid
tests.test_config_validation.test_validation_artifacts ‑ test_step_run_format_valid
tests.test_config_validation.test_validation_artifacts ‑ test_step_type_valid
tests.test_config_validation.test_validation_artifacts ‑ test_valid_artifacts_blank_string
tests.test_config_validation.test_validation_artifacts ‑ test_valid_extra_properties
tests.test_config_validation.test_validation_config ‑ test_doc_config
tests.test_config_validation.test_validation_config ‑ test_full_confg
tests.test_config_validation.test_validation_config ‑ test_github_config
tests.test_config_validation.test_validation_config ‑ test_multiple_errors
tests.test_config_validation.test_validation_config ‑ test_valid_config
tests.test_config_validation.test_validation_config ‑ test_valid_version_config
tests.test_config_validation.test_validation_run ‑ test_push_invalid
tests.test_config_validation.test_validation_run ‑ test_push_valid
tests.test_config_validation.test_validation_run ‑ test_step_run_artifacts_valid
tests.test_config_validation.test_validation_step ‑ test_build_is_path
tests.test_config_validation.test_validation_step ‑ test_commit
tests.test_config_validation.test_validation_step ‑ test_duplicate_mp_tags_dictionary_invalid
tests.test_config_validation.test_validation_step ‑ test_duplicate_mp_tags_platform_platforms_invalid
tests.test_config_validation.test_validation_step ‑ test_duplicate_mp_tags_strings_invalid
tests.test_config_validation.test_validation_step ‑ test_duplicate_mp_tags_strings_valid
tests.test_config_validation.test_validation_step ‑ test_invalid_mp_import
tests.test_config_validation.test_validation_step ‑ test_platform_and_platforms_invalid
tests.test_config_validation.test_validation_step ‑ test_platforms_invalid
tests.test_config_validation.test_validation_step ‑ test_pypi_push
tests.test_config_validation.test_validation_step ‑ test_services
tests.test_config_validation.test_validation_step ‑ test_step_remote_missing_cmd
tests.test_config_validation.test_validation_step ‑ test_step_remote_valid
tests.test_config_validation.test_validation_step ‑ test_valid_import
tests.test_config_validation.test_validation_step ‑ test_valid_platforms
tests.test_console_logger ‑ test_closed_stream
tests.test_console_logger ‑ test_open_stream
tests.test_dependencies.TestDependencies ‑ test_cycle_dependency
tests.test_dependencies.TestDependencies ‑ test_missing_version
tests.test_dependencies.TestDependencies ‑ test_no_reorder
tests.test_dependencies.TestDependencies ‑ test_not_defined_dependency
tests.test_dependencies.TestDependencies ‑ test_not_supported_version
tests.test_dependencies.TestDependencies ‑ test_reorder_steps
tests.test_dependencies.TestDependencies ‑ test_reorder_steps_higher_version
tests.test_multiplatform ‑ test_build[test-build-image-2000-platforms0-expected_image_names0]
tests.test_multiplatform ‑ test_build[test-build-image-2001-platforms1-expected_image_names1]
tests.test_multiplatform ‑ test_build_multiple_builds
tests.test_multiplatform ‑ test_build_with_tags[test-build-tag-image-2000-tags0-platforms0-expected_image_names0]
tests.test_multiplatform ‑ test_build_with_tags[test-build-tag-image-2001-tags1-platforms1-expected_image_names1]
tests.test_multiplatform ‑ test_find_native_platform[test-images-2000-Darwin-arm64-built_images1-localhost:32829/test-images-2000-linux-arm64:latest]
tests.test_multiplatform ‑ test_find_native_platform[test-images-2000-linux-amd64-built_images2-localhost:32811/test-images-2000-linux-amd64:latest]
tests.test_multiplatform ‑ test_find_native_platform[test-images-2000-linux-arm-built_images3-localhost:32830/test-images-2000-linux-amd64:0.1.0]
tests.test_multiplatform ‑ test_find_native_platform[test-images-2000-linux-arm64-built_images0-localhost:32828/test-images-2000-linux-arm64:latest]
tests.test_multiplatform ‑ test_find_native_platform[test-images-2000-linux-arm64-built_images5-None]
tests.test_multiplatform ‑ test_find_native_platform[test-images-2001-linux-arm64-built_images4-None]
tests.test_multiplatform ‑ test_no_images_built
tests.test_multiplatform ‑ test_push
tests.test_multiplatform ‑ test_push_with_dest_names
tests.test_multiplatform ‑ test_start_local_registry
tests.test_multiplatform ‑ test_start_local_registry_on_build
tests.test_multiplatform ‑ test_tag_single_platform[test-image-tag-2000-platforms0-expected_image_names0]
tests.test_multiplatform ‑ test_tag_single_platform_keep_images[test-image-tag-2000-platforms0-expected_image_names0]
tests.test_multiplatform ‑ test_tag_single_platform_multiple_tags[test-image-tag-2000-platforms0-expected_image_names0]
tests.test_push_artifact ‑ test_no_artifact_properties
tests.test_push_artifact ‑ test_no_artifacts
tests.test_push_artifact ‑ test_no_push_property
tests.test_push_artifact ‑ test_push_false
tests.test_push_artifact ‑ test_push_true
tests.test_util_checksum ‑ test_checksum
tests.test_utils_flock ‑ test_flock_aquire1
tests.test_utils_flock ‑ test_flock_aquire_exlusive_timeout
tests.test_utils_flock ‑ test_flock_exclusive_aquire
tests.test_utils_flock ‑ test_flock_release
tests.test_utils_flock ‑ test_flock_shared_aquire
tests.test_version ‑ test_bad_version
tests.test_version ‑ test_invalid_config_number_version
tests.test_version ‑ test_invalid_config_version_type
tests.test_version ‑ test_invalid_delim_version
tests.test_version ‑ test_missing_version_file
tests.test_version ‑ test_missing_version_in_version_file
tests.test_version ‑ test_valid_version_file
Loading