Skip to content

Remove log asserts from HDFS tests#46263

Merged
potiuk merged 1 commit intoapache:mainfrom
jscheffl:bugfix/remove-caplog-from-hdfs-tests
Jan 30, 2025
Merged

Remove log asserts from HDFS tests#46263
potiuk merged 1 commit intoapache:mainfrom
jscheffl:bugfix/remove-caplog-from-hdfs-tests

Conversation

@jscheffl
Copy link
Contributor

I am not a fan of ... actually I dislike caplog to implement tests expecting logs. On one side it does not tell anything about the tested function, it needs to know internals of logging and... as today it often causes problems if log settigns side effects jjust break the test.

For the HDFS test, the check for caplog does not bring any benefit in my view, therefore removing caplog w/o replacement. This repairs parts of broken main in https://github.com/apache/airflow/actions/runs/13038931877/job/36376761299

@potiuk
Copy link
Member

potiuk commented Jan 30, 2025

VERY VERY VERY MUCH AGREE

@potiuk potiuk merged commit 0e39f94 into apache:main Jan 30, 2025
62 checks passed
@potiuk
Copy link
Member

potiuk commented Jan 30, 2025

Thanks @jscheffl for the bold approach !

potiuk added a commit to potiuk/airflow that referenced this pull request Jan 30, 2025
Similarly to apache#46263 - there is no real value in keeping tests for
logs in Livy - and caplog tests are known to be super vulnerable
to side-effects from other tests. Since those tests add no value,
we should just remove them without replacement.
jedcunningham pushed a commit that referenced this pull request Jan 30, 2025
Similarly to #46263 - there is no real value in keeping tests for
logs in Livy - and caplog tests are known to be super vulnerable
to side-effects from other tests. Since those tests add no value,
we should just remove them without replacement.
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
Similarly to apache#46263 - there is no real value in keeping tests for
logs in Livy - and caplog tests are known to be super vulnerable
to side-effects from other tests. Since those tests add no value,
we should just remove them without replacement.
dabla pushed a commit to dabla/airflow that referenced this pull request Jan 30, 2025
dabla pushed a commit to dabla/airflow that referenced this pull request Jan 30, 2025
Similarly to apache#46263 - there is no real value in keeping tests for
logs in Livy - and caplog tests are known to be super vulnerable
to side-effects from other tests. Since those tests add no value,
we should just remove them without replacement.
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Jan 30, 2025
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Jan 30, 2025
Similarly to apache#46263 - there is no real value in keeping tests for
logs in Livy - and caplog tests are known to be super vulnerable
to side-effects from other tests. Since those tests add no value,
we should just remove them without replacement.
@ashb ashb changed the title Remove caplog from HDFS tests Remove log asserts from HDFS tests Feb 7, 2025
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
Similarly to apache#46263 - there is no real value in keeping tests for
logs in Livy - and caplog tests are known to be super vulnerable
to side-effects from other tests. Since those tests add no value,
we should just remove them without replacement.
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
Similarly to apache#46263 - there is no real value in keeping tests for
logs in Livy - and caplog tests are known to be super vulnerable
to side-effects from other tests. Since those tests add no value,
we should just remove them without replacement.
@jscheffl jscheffl deleted the bugfix/remove-caplog-from-hdfs-tests branch October 5, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants