From b2d62d4ffd38b578d59597b748a3266592c0b2dd Mon Sep 17 00:00:00 2001 From: sakshipatil-hue Date: Wed, 26 Aug 2026 12:29:46 +0530 Subject: [PATCH] fix(postgres): randomize test_reader username to prevent CI collisions Signed-off-by: sakshipatil-hue --- .../engine_adapter/integration/test_integration_postgres.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/core/engine_adapter/integration/test_integration_postgres.py b/tests/core/engine_adapter/integration/test_integration_postgres.py index f236fdebce..28f04e4f22 100644 --- a/tests/core/engine_adapter/integration/test_integration_postgres.py +++ b/tests/core/engine_adapter/integration/test_integration_postgres.py @@ -1,4 +1,5 @@ import typing as t +import uuid from contextlib import contextmanager import pytest from pytest import FixtureRequest @@ -53,13 +54,14 @@ def create_users( _cleanup_user(engine_adapter, user_name) for role_name in role_names: - user_name = f"test_{role_name}" + random_suffix = uuid.uuid4().hex[:6] + user_name = f"test_{role_name}_{random_suffix}" password = random_id() engine_adapter.execute(f"CREATE USER \"{user_name}\" WITH PASSWORD '{password}'") engine_adapter.execute(f'GRANT USAGE ON SCHEMA public TO "{user_name}"') created_users.append(user_name) roles[role_name] = {"username": user_name, "password": password} - + yield roles finally: