Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Jan 2, 2023

The newly released Pygments 2.14.0 changed slightly the way it wraps tags around rendeered variables and tour test made far too many assumptions about the rendered output which started to fail on main with the new Pygments.

This PR fixes it by actually testing only what it was supposed to test:

  • lack of the secret in rendered output
  • presence of *** masking in the output

^ 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 newly released Pygments 2.14.0 changed slightly the way it
wraps tags around rendeered variables and tour test made far
too many assumptions about the rendered output which started to
fail on main with the new Pygments.

This PR fixes it by actually testing only what it was supposed
to test:
- lack of the secret in rendered output
- presence of *** masking in the output
@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Jan 2, 2023
@potiuk potiuk merged commit 81cd6c7 into apache:main Jan 2, 2023
@potiuk potiuk deleted the make-secret-rendering-test-more-resilient branch January 2, 2023 09:17
pierrejeambrun pushed a commit that referenced this pull request Jan 12, 2023
…28673)

The newly released Pygments 2.14.0 changed slightly the way it
wraps tags around rendeered variables and tour test made far
too many assumptions about the rendered output which started to
fail on main with the new Pygments.

This PR fixes it by actually testing only what it was supposed
to test:
- lack of the secret in rendered output
- presence of *** masking in the output

(cherry picked from commit 81cd6c7)
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jan 13, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.5.1 milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:webserver Webserver related Issues 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.

2 participants