Skip to content

Fix broken OpenAI batch trigger test blocking main - #70938

Merged
jason810496 merged 1 commit into
apache:mainfrom
rjgoyln:fix-openai-trigger-test-end-time
Aug 2, 2026
Merged

Fix broken OpenAI batch trigger test blocking main#70938
jason810496 merged 1 commit into
apache:mainfrom
rjgoyln:fix-openai-trigger-test-end-time

Conversation

@rjgoyln

@rjgoylnrjgoyln commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

providers/openai/tests/unit/openai/triggers/test_openai.py still references
self.END_TIME, which was renamed to LEGACY_END_TIME in #69534. As a result,
test_openai_batch_yields_single_terminal_event fails with AttributeError.

The stale reference is the result of a semantic merge conflict with #69506,
which introduced the test using self.END_TIME.

Change

Switch the test to timeout=self.TIMEOUT, matching every other behavioral test
in the file.

The deprecated end_time path remains covered by
test_serialization_with_legacy_end_time.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

Generated-by: Claude Code (Opus 5) following the guidelines

Two PRs merged three hours apart on 2026-08-01 collided semantically:
apache#69506 added a test using the class attribute END_TIME, and apache#69534
renamed that attribute to LEGACY_END_TIME while branched off a main
that predated apache#69506. Git merged both cleanly, so the dangling
reference reached main unnoticed and every job that collects the
OpenAI provider tests now fails.
The case asserts that a terminal batch emits exactly one event, which
has nothing to do with the deprecated wall-clock deadline, so it moves
to the timeout constant that the rest of the behavioural cases use
rather than to LEGACY_END_TIME. The end_time path stays covered by
test_serialization_with_legacy_end_time.

@jason810496jason810496 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@jason810496
jason810496 merged commit f656510 into apache:mainAug 2, 2026
78 checks passed
@potiukpotiuk mentioned this pull request Aug 2, 2026
1 task
dabla pushed a commit to dabla/airflow that referenced this pull request Aug 14, 2026
Two PRs merged three hours apart on 2026-08-01 collided semantically:
apache#69506 added a test using the class attribute END_TIME, and apache#69534
renamed that attribute to LEGACY_END_TIME while branched off a main
that predated apache#69506. Git merged both cleanly, so the dangling
reference reached main unnoticed and every job that collects the
OpenAI provider tests now fails.
The case asserts that a terminal batch emits exactly one event, which
has nothing to do with the deprecated wall-clock deadline, so it moves
to the timeout constant that the rest of the behavioural cases use
rather than to LEGACY_END_TIME. The end_time path stays covered by
test_serialization_with_legacy_end_time.
Sign up for freeto 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

@rjgoyln@jason810496