Skip to content

TestSigtermOnRunner.test_process_sigterm_works_with_retries not found expected messages in logs #39051

Description

@Taragolis

Body

We are disable by default this check in #28990, and enable in #38893

However it might not pass every time.

        captured = tmp_file.read_text()
        for msg in [
            "Received SIGTERM. Terminating subprocesses",
            "Task exited with return code 143",
        ]:
            # assert msg in captured.out or msg in captured.err
>           assert msg in captured
E           AssertionError: assert 'Task exited with return code 143' in '::group::Pre task execution logs\nRunning <TaskInstance: test_task_runner_sigterm_fork_non_daemon.test_on_retry_callback test-2016-01-01 [running]> on host 7132048ea935\nReceived SIGTERM. Terminating subprocesses\n'

I guess it some sort of race condition behaviour and we might kill process before it writes into the logs

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuarantineIssues that are occasionally failing and are quarantinedkind:metaHigh-level information important to the community

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions