Skip to content

Fix missing_role golden: backend error has trailing (not "")!#5910

Merged
pietern merged 1 commit into
mainfrom
pr-a-missing-role-suffix
Jul 13, 2026
Merged

Fix missing_role golden: backend error has trailing (not "")!#5910
pietern merged 1 commit into
mainfrom
pr-a-missing-role-suffix

Conversation

@shreyas-goenka

@shreyas-goenka shreyas-goenka commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Fix the postgres_databases/live_errors/missing_role acceptance test, which fails on aws-ucws because the real Lakebase backend returns Field 'database.spec.role' is required, expected non-default value (not "")! but the testserver fake and the golden omit the trailing (not "")! suffix.

Every other postgres field error in libs/testserver/postgres.go already carries that suffix (project_id, branch_id, endpoint_id, database_id, catalog_id, synced_table_id) — the role error was the odd one out. This aligns the fake's error string with the real backend and regenerates the golden. The contains.py assertion stays on the stable prefix so it doesn't have to chase future suffix changes.

Co-authored-by: Isaac

The postgres_databases/live_errors/missing_role acceptance test fails on
aws-ucws because the real Lakebase backend returns

  Field 'database.spec.role' is required, expected non-default value (not "")!

but the testserver fake and the golden omit the trailing (not "")! suffix.
Every other postgres field error in libs/testserver/postgres.go already
carries that suffix (project_id, branch_id, endpoint_id, database_id,
catalog_id, synced_table_id) - the role error was the odd one out.

Align the fake's error string with the real backend and regenerate the
golden. The contains.py assertion stays on the stable prefix so it does not
have to chase future suffix changes.

Verified on aws-ucws:
  deco env run -i -n aws-prod-ucws -- go test ./acceptance \
    -run '.../postgres_databases/live_errors/missing_role'

Co-authored-by: Isaac
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: a6528ee

Run: 29258396847

Env 🟨​KNOWN 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 230 1083 5:20
💚​ aws windows 4 4 232 1081 6:58
💚​ aws-ucws linux 4 4 316 1000 8:35
💚​ aws-ucws windows 4 4 318 998 7:38
💚​ azure linux 4 4 230 1082 5:28
💚​ azure windows 4 4 232 1080 7:15
🟨​ azure-ucws linux 3 1 4 318 997 9:46
🔄​ azure-ucws windows 2 2 4 320 995 11:24
🔄​ gcp linux 1 3 4 229 1084 7:55
🔄​ gcp windows 1 3 4 231 1082 7:59
8 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🟨​K 💚​R 🔄​f 🔄​f
🟨​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🟨​K 🔄​f 💚​R 💚​R
🟨​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🟨​K 🔄​f 💚​R 💚​R
Top 10 slowest tests (at least 2 minutes):
duration env testname
6:40 azure-ucws windows TestAccept
6:16 azure windows TestAccept
6:16 gcp windows TestAccept
6:13 aws-ucws windows TestAccept
6:02 aws windows TestAccept
2:59 aws-ucws linux TestAccept
2:56 aws linux TestAccept
2:54 azure linux TestAccept
2:53 gcp linux TestAccept
2:48 azure-ucws linux TestAccept

@shreyas-goenka shreyas-goenka marked this pull request as ready for review July 13, 2026 16:07

@janniklasrose janniklasrose left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oops, somehow my Claude missed this in the last PR

@pietern pietern added this pull request to the merge queue Jul 13, 2026
Merged via the queue into main with commit e91eb20 Jul 13, 2026
27 checks passed
@pietern pietern deleted the pr-a-missing-role-suffix branch July 13, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants