Skip to content

Conversation

@sunank200
Copy link
Collaborator

@sunank200 sunank200 commented Dec 21, 2025

The CI is failing here because it tried to patch a non-existent TIMEZONE attribute. The timezone module uses _Timezone.initialized_timezone to store the default timezone.

Fix: Updated the test to patch the correct attribute used by the parse function.

Root cause: PR #59689 replaced the global TIMEZONE variable with _Timezone.initialized_timezone, breaking the test that was patching the wrong attribute.


^ 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 airflow-core/newsfragments.

The test was failing because it tried to patch a non-existent TIMEZONE
attribute. The timezone module uses _Timezone.initialized_timezone
to store the default timezone, which is what the parse function uses
when parsing timestamps without timezone information.

Fixes failing tests:
- TestCLIDBClean.test_date_timezone_omitted[UTC]
- TestCLIDBClean.test_date_timezone_omitted[Europe/Berlin]
- TestCLIDBClean.test_date_timezone_omitted[America/Los_Angeles]
@sunank200 sunank200 added full tests needed We need to run full set of tests for this PR to merge backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Dec 21, 2025
@sunank200 sunank200 marked this pull request as ready for review December 21, 2025 23:37
@amoghrajesh amoghrajesh merged commit 3d33d6d into apache:main Dec 22, 2025
172 of 175 checks passed
@amoghrajesh amoghrajesh deleted the fix/test-date-timezone-omitted-patch branch December 22, 2025 05:27
@github-actions
Copy link

Backport failed to create: v3-1-test. View the failure log Run details

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 3d33d6d v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

sunank200 added a commit to astronomer/airflow that referenced this pull request Dec 22, 2025
…apache#59698)

The test was failing because it tried to patch a non-existent TIMEZONE
attribute. The timezone module uses _Timezone.initialized_timezone
to store the default timezone, which is what the parse function uses
when parsing timestamps without timezone information.

Fixes failing tests:
- TestCLIDBClean.test_date_timezone_omitted[UTC]
- TestCLIDBClean.test_date_timezone_omitted[Europe/Berlin]
- TestCLIDBClean.test_date_timezone_omitted[America/Los_Angeles]

(cherry picked from commit 3d33d6d)
sunank200 added a commit to astronomer/airflow that referenced this pull request Dec 22, 2025
…apache#59698)

The test was failing because it tried to patch a non-existent TIMEZONE
attribute. The timezone module uses _Timezone.initialized_timezone
to store the default timezone, which is what the parse function uses
when parsing timestamps without timezone information.

Fixes failing tests:
- TestCLIDBClean.test_date_timezone_omitted[UTC]
- TestCLIDBClean.test_date_timezone_omitted[Europe/Berlin]
- TestCLIDBClean.test_date_timezone_omitted[America/Los_Angeles]

(cherry picked from commit 3d33d6d)
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Jan 2, 2026
…apache#59698)

The test was failing because it tried to patch a non-existent TIMEZONE
attribute. The timezone module uses _Timezone.initialized_timezone
to store the default timezone, which is what the parse function uses
when parsing timestamps without timezone information.

Fixes failing tests:
- TestCLIDBClean.test_date_timezone_omitted[UTC]
- TestCLIDBClean.test_date_timezone_omitted[Europe/Berlin]
- TestCLIDBClean.test_date_timezone_omitted[America/Los_Angeles]
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
…apache#59698)

The test was failing because it tried to patch a non-existent TIMEZONE
attribute. The timezone module uses _Timezone.initialized_timezone
to store the default timezone, which is what the parse function uses
when parsing timestamps without timezone information.

Fixes failing tests:
- TestCLIDBClean.test_date_timezone_omitted[UTC]
- TestCLIDBClean.test_date_timezone_omitted[Europe/Berlin]
- TestCLIDBClean.test_date_timezone_omitted[America/Los_Angeles]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants