Skip to content

Migrate remaining core sensors tests to pytest#28177

Merged
potiuk merged 1 commit into
apache:mainfrom
Taragolis:migrate-core-sensors-tests-to-pytest
Dec 7, 2022
Merged

Migrate remaining core sensors tests to pytest#28177
potiuk merged 1 commit into
apache:mainfrom
Taragolis:migrate-core-sensors-tests-to-pytest

Conversation

@Taragolis

Copy link
Copy Markdown
Contributor

Follow-up with migration remaining unittests TestCases in core to pytest
Include just sensors because found long running test in it which actually could run less than second

Comment on lines -169 to +170
timeout=1,
timeout=0.001,
dag=self.dag,
poke_interval=0.1,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default poke_interval is 60 second as result test wait 1 minute for timeout exception.

@Taragolis

Copy link
Copy Markdown
Contributor Author

really strange error in test. I assume that some other test could change in logging and do not teardown correctly.

@potiuk
potiuk merged commit 529f11b into apache:main Dec 7, 2022
@Taragolis

Copy link
Copy Markdown
Contributor Author

@potiuk @uranusjr I think some test in other overwrites some logging and not properly revert it back.
I would tried to figure out which one. Because if run locally in breeze only this module nothing bad happen.

As workaround we could just revert this PR

@potiuk

potiuk commented Dec 7, 2022

Copy link
Copy Markdown
Member

I must have merged it by mistake, not seeing the failures.

potiuk added a commit to potiuk/airflow that referenced this pull request Dec 7, 2022
@potiuk

potiuk commented Dec 7, 2022

Copy link
Copy Markdown
Member

#28196

potiuk added a commit that referenced this pull request Dec 7, 2022
@ashb

ashb commented Dec 7, 2022

Copy link
Copy Markdown
Member

@Taragolis #28193 (comment) these two tests together (prior to the revert) fail tests/task/task_runner/test_task_runner.py::TestGetTaskRunner::test_should_support_core_task_runner tests/sensors/test_external_task_sensor.py::TestExternalTaskSensor::test_external_task_sensor_failed_states_as_success

@Taragolis
Taragolis deleted the migrate-core-sensors-tests-to-pytest branch January 14, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants