Skip to content

More resilient test for secrets masker#27335

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:fix-failing-secrets-stacktrace
Oct 27, 2022
Merged

More resilient test for secrets masker#27335
potiuk merged 1 commit intoapache:mainfrom
potiuk:fix-failing-secrets-stacktrace

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Oct 27, 2022

The test expected exact stack trace, but we really want to check if the stacktrace contains masked passwords at all levels of context.

This PR makes the test more resilient to any changes in stacktrace.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

The test expected exact stack trace, but we really want to check if
the stacktrace contains masked passwords at all levels of context.

This PR makes the test more resilient to any changes in stacktrace.
Copy link
Contributor

@Taragolis Taragolis left a comment

Choose a reason for hiding this comment

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

This also looks more simpler now

@potiuk potiuk merged commit acc6982 into apache:main Oct 27, 2022
@potiuk potiuk deleted the fix-failing-secrets-stacktrace branch October 27, 2022 22:05
potiuk added a commit to potiuk/airflow that referenced this pull request Oct 28, 2022
Seems that the number of times user is printed in stack trace
depend on Python version. The fix in apache#27335 seems to only have
worked for Python 3.10 with the 1.0.0 of exceptiongroup the
stack trace has less stack levels.
potiuk added a commit that referenced this pull request Oct 28, 2022
Seems that the number of times user is printed in stack trace
depend on Python version. The fix in #27335 seems to only have
worked for Python 3.10 with the 1.0.0 of exceptiongroup the
stack trace has less stack levels.
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.3 milestone Nov 9, 2022
@ephraimbuddy ephraimbuddy added type:misc/internal Changelog: Misc changes that should appear in change log changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:misc/internal Changelog: Misc changes that should appear in change log labels Nov 9, 2022
ephraimbuddy pushed a commit that referenced this pull request Nov 9, 2022
Seems that the number of times user is printed in stack trace
depend on Python version. The fix in #27335 seems to only have
worked for Python 3.10 with the 1.0.0 of exceptiongroup the
stack trace has less stack levels.

(cherry picked from commit fcec804)
ephraimbuddy pushed a commit that referenced this pull request Nov 9, 2022
Seems that the number of times user is printed in stack trace
depend on Python version. The fix in #27335 seems to only have
worked for Python 3.10 with the 1.0.0 of exceptiongroup the
stack trace has less stack levels.

(cherry picked from commit fcec804)
ephraimbuddy pushed a commit that referenced this pull request Nov 9, 2022
Seems that the number of times user is printed in stack trace
depend on Python version. The fix in #27335 seems to only have
worked for Python 3.10 with the 1.0.0 of exceptiongroup the
stack trace has less stack levels.

(cherry picked from commit fcec804)
ephraimbuddy pushed a commit that referenced this pull request Nov 9, 2022
Seems that the number of times user is printed in stack trace
depend on Python version. The fix in #27335 seems to only have
worked for Python 3.10 with the 1.0.0 of exceptiongroup the
stack trace has less stack levels.

(cherry picked from commit fcec804)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:logging changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants