Skip to content
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

TestSigtermOnRunner.test_process_sigterm_works_with_retries not found expected messages in logs #39051

Open
1 task done
Taragolis opened this issue Apr 16, 2024 · 0 comments
Labels
kind:meta High-level information important to the community Quarantine Issues that are occasionally failing and are quarantined

Comments

@Taragolis
Copy link
Contributor

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.
@Taragolis Taragolis added kind:meta High-level information important to the community Quarantine Issues that are occasionally failing and are quarantined labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:meta High-level information important to the community Quarantine Issues that are occasionally failing and are quarantined
Projects
None yet
Development

No branches or pull requests

1 participant