Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add ORDER BY so test data is deterministic #32489

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

uranusjr
Copy link
Member

The main branch is failing occassionally after #32453 was merged, but the underlying issue is pretty apparently not that specific PR, but an ill-implemented test. Without adding an explicit ORDER BY clause, the order of the XCom objects is indeterministic and can cause the test to fail.

I also took the chance to rewrote the query in the test to use the new SQLAlchemy 2.0 style because why not.

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Jul 10, 2023
@uranusjr uranusjr force-pushed the xcom-endpoint-test-deterministic branch from 14b75f5 to e647a1c Compare July 10, 2023 11:57
@uranusjr uranusjr force-pushed the xcom-endpoint-test-deterministic branch from e647a1c to 30c4112 Compare July 10, 2023 11:59
@potiuk potiuk merged commit 8b4d6a8 into apache:main Jul 10, 2023
@uranusjr uranusjr deleted the xcom-endpoint-test-deterministic branch July 10, 2023 18:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area:API Airflow's REST/HTTP API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants