Skip to content

chore(deps): bump mypy from 0.982 to 1.9.0 in /resources/scripts/pytest_otel #366

chore(deps): bump mypy from 0.982 to 1.9.0 in /resources/scripts/pytest_otel

chore(deps): bump mypy from 0.982 to 1.9.0 in /resources/scripts/pytest_otel #366

GitHub Actions / JUnit Tests failed Mar 10, 2024 in 1s

7 passed, 1 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
junit-test_basic_plugin.py.xml 1❌ 5s
junit-test_pytest_otel.xml 7✔️ 8s

❌ junit-test_basic_plugin.py.xml

1 tests were completed in 5s with 0 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 1❌ 5s

❌ pytest

tests.it.test_basic_plugin
  ❌ test_basic_plugin
	docker_ip = '127.0.0.1'

✔️ junit-test_pytest_otel.xml

7 tests were completed in 8s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 7✔️ 8s

✔️ pytest

tests.test_pytest_otel
  ✔️ test_basic_plugin
  ✔️ test_success_plugin
  ✔️ test_failure_plugin
  ✔️ test_failure_code_plugin
  ✔️ test_skip_plugin
  ✔️ test_xfail_plugin
  ✔️ test_xfail_no_run_plugin

Annotations

Check failure on line 0 in junit-test_basic_plugin.py.xml

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests

pytest ► tests.it.test_basic_plugin ► test_basic_plugin

Failed test found in:
  junit-test_basic_plugin.py.xml
Error:
  docker_ip = '127.0.0.1'
Raw output
docker_ip = '127.0.0.1'
docker_services = Services(_docker_compose=DockerComposeExecutor(_compose_command='docker-compose', _compose_files=['/home/runner/work/a...ne-library/resources/scripts/pytest_otel/tests/docker-compose.yml'], _compose_project_name='pytest1878'), _services={})

    @pytest.fixture(scope="session")
    def otel_service(docker_ip, docker_services):
        """Ensure that port is listening."""
    
        # `port_for` takes a container port and returns the corresponding host port
>       port = docker_services.port_for("otel-collector", 4317)

docker_ip  = '127.0.0.1'
docker_services = Services(_docker_compose=DockerComposeExecutor(_compose_command='docker-compose', _compose_files=['/home/runner/work/apm-pipeline-library/apm-pipeline-library/resources/scripts/pytest_otel/tests/docker-compose.yml'], _compose_project_name='pytest1878'), _services={})

tests/it/conftest.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.venv/lib/python3.9/site-packages/pytest_docker/plugin.py:78: in port_for
    output = self._docker_compose.execute("port %s %d" % (service, container_port))
        cache      = None
        container_port = 4317
        self       = Services(_docker_compose=DockerComposeExecutor(_compose_command='docker-compose', _compose_files=['/home/runner/work/apm-pipeline-library/apm-pipeline-library/resources/scripts/pytest_otel/tests/docker-compose.yml'], _compose_project_name='pytest1878'), _services={})
        service    = 'otel-collector'
.venv/lib/python3.9/site-packages/pytest_docker/plugin.py:129: in execute
    return execute(command)
        command    = ('docker-compose -f '
 '"/home/runner/work/apm-pipeline-library/apm-pipeline-library/resources/scripts/pytest_otel/tests/docker-compose.yml" '
 '-p "pytest1878" port otel-collector 4317')
        compose_file = '/home/runner/work/apm-pipeline-library/apm-pipeline-library/resources/scripts/pytest_otel/tests/docker-compose.yml'
        self       = DockerComposeExecutor(_compose_command='docker-compose', _compose_files=['/home/runner/work/apm-pipeline-library/apm-pipeline-library/resources/scripts/pytest_otel/tests/docker-compose.yml'], _compose_project_name='pytest1878')
        subcommand = 'port otel-collector 4317'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

command = 'docker-compose -f "/home/runner/work/apm-pipeline-library/apm-pipeline-library/resources/scripts/pytest_otel/tests/docker-compose.yml" -p "pytest1878" port otel-collector 4317'
success_codes = (0,)

    def execute(command, success_codes=(0,)):
        """Run a shell command."""
        try:
            output = subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)
            status = 0
        except subprocess.CalledProcessError as error:
            output = error.output or b""
            status = error.returncode
            command = error.cmd
    
        if status not in success_codes:
>           raise Exception(
                'Command {} returned {}: """{}""".'.format(
                    command, status, output.decode("utf-8")
                )
            )
E           Exception: Command docker-compose -f "/home/runner/work/apm-pipeline-library/apm-pipeline-library/resources/scripts/pytest_otel/tests/docker-compose.yml" -p "pytest1878" port otel-collector 4317 returned 1: """No container found for otel-collector_1
E           """.

command    = ('docker-compose -f '
 '"/home/runner/work/apm-pipeline-library/apm-pipeline-library/resources/scripts/pytest_otel/tests/docker-compose.yml" '
 '-p "pytest1878" port otel-collector 4317')
output     = b'No container found for otel-collector_1\n'
status     = 1
success_codes = (0,)

.venv/lib/python3.9/site-packages/pytest_docker/plugin.py:24: Exception