Skip to content

fix: use uuid_suffix in postgres unique constraint test expectations#63674

Merged
potiuk merged 1 commit into
v3-1-testfrom
fix-uuid-suffix-test-exceptions
Mar 15, 2026
Merged

fix: use uuid_suffix in postgres unique constraint test expectations#63674
potiuk merged 1 commit into
v3-1-testfrom
fix-uuid-suffix-test-exceptions

Conversation

@potiuk

@potiuk potiuk commented Mar 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix failing Postgres tests test_handle_single_column_unique_constraint_error_with_stacktrace for Pool and Variable
  • SQLAlchemy v2 generates %(team_id)s::UUID type cast in SQL on Postgres, but test expected %(team_id)s without the cast
  • The uuid_suffix variable was already defined for this purpose (line 107) but was not used in the expected SQL strings

Test plan

  • Verify the fix addresses the CI failures in Postgres tests: core / DB-core:Postgres:16:3.13:API...Serialization
  • Verify the fix addresses the CI failures in Special tests / Latest SQLAlchemy test

🤖 Generated with Claude Code

The test expected SQL without ::UUID type cast for team_id, but
SQLAlchemy v2 generates %(team_id)s::UUID on Postgres. The uuid_suffix
variable was already defined for this purpose but not used.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label Mar 15, 2026
@potiuk potiuk merged commit 166ee12 into v3-1-test Mar 15, 2026
83 of 86 checks passed
@potiuk potiuk deleted the fix-uuid-suffix-test-exceptions branch March 15, 2026 22:18
vatsrahul1001 pushed a commit that referenced this pull request Mar 25, 2026
…63674)

The test expected SQL without ::UUID type cast for team_id, but
SQLAlchemy v2 generates %(team_id)s::UUID on Postgres. The uuid_suffix
variable was already defined for this purpose but not used.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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