Skip to content

Bump urllib3 from 2.6.3 to 2.7.0

0455cc4
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Bump urllib3 from 2.6.3 to 2.7.0 #369

Bump urllib3 from 2.6.3 to 2.7.0
0455cc4
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test Report failed May 11, 2026 in 0s

1205 tests run, 1201 passed, 3 skipped, 1 failed.

Annotations

Check failure on line 174 in tests/test_integration/test_run_transfer/test_mssql.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_mssql.test_run_transfer_postgres_to_mssql_mixed_naming_with_full_strategy[settings0-postgres-mssql-mssql-postgres-123-test_queue-full_strategy-transformations0]

AssertionError: assert [Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=1234.2343), Row(Id=2, Phone Number='+79234567890', region='Gondor', NUMBER=2, birth_DATE=datetime.date(2022, 6, 19), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=2345.5678), Row(Id=3, Phone Number='+79345678901', region='Rohan', NUMBER=3, birth_DATE=datetime.date(2021, 11, 5), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=3456.789), Row(Id=4, Phone Number='+79456789012', region='Shire', NUMBER=4, birth_DATE=datetime.date(2020, 1, 30), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=4567.8901), Row(Id=5, Phone Number='+79567890123', region='Isengard', NUMBER=5, birth_DATE=datetime.date(2023, 8, 15), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=5678.9012)] == [Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=1234.2343), Row(Id=2, Phone Number='+79234567890', region='Gondor', NUMBER=2, birth_DATE=datetime.date(2022, 6, 19), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=2345.5678), Row(Id=3, Phone Number='+79345678901', region='Rohan', NUMBER=3, birth_DATE=datetime.date(2021, 11, 5), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=3456.789), Row(Id=4, Phone Number='+79456789012', region='Shire', NUMBER=4, birth_DATE=datetime.date(2020, 1, 30), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=4567.8901), Row(Id=5, Phone Number='+79567890123', region='Isengard', NUMBER=5, birth_DATE=datetime.date(2023, 8, 15), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=5678.9012)]
  
  At index 0 diff: Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=1234.2343) != Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=1234.2343)
  
  Full diff:
    [
  -     Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=1234.2343),
  ?                                                                                                                                                                  ^
  +     Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=1234.2343),
  ?                                                                                                                                                                  ^
  -     Row(Id=2, Phone Number='+79234567890', region='Gondor', NUMBER=2, birth_DATE=datetime.date(2022, 6, 19), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=2345.5678),
  ?                                                                                                                                                                  ^
  +     Row(Id=2, Phone Number='+79234567890', region='Gondor', NUMBER=2, birth_DATE=datetime.date(2022, 6, 19), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=2345.5678),
  ?                                                                                                                                                                  ^
  -     Row(Id=3, Phone Number='+79345678901', region='Rohan', NUMBER=3, birth_DATE=datetime.date(2021, 11, 5), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=3456.789),
  ?                                                                                                                                                                 ^
  +     Row(Id=3, Phone Number='+79345678901', region='Rohan', NUMBER=3, birth_DATE=datetime.date(2021, 11, 5), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=3456.789),
  ?                                                                                                                                                                 ^
  -     Row(Id=4, Phone Number='+79456789012', region='Shire', NUMBER=4, birth_DATE=datetime.date(2020, 1, 30), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=4567.8901),
  ?                                                                                                                                                                 ^
  +     Row(Id=4, Phone Number='+79456789012', region='Shire', NUMBER=4, birth_DATE=datetime.date(2020, 1, 30), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=4567.8901),
  ?                                                                                                                                                                 ^
  -     Row(Id=5, Phone Number='+79567890123', region='Isengard', NUMBER=5, birth_DATE=datetime.date(2023, 8, 15), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=5678.9012),
  ?                                                                                                                                                                    ^
  +     Row(Id=5, Phone Number='+79567890123', region='Isengard', NUMBER=5, birth_DATE=datetime.date(2023, 8, 15), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=5678.9012),
  ?                                                                                                                                                                    ^
    ]
Raw output
client = <httpx.AsyncClient object at 0x7ff9a715dd30>
group_owner = <tests.mocks.MockUser object at 0x7ff9a4715910>
prepare_postgres = (Postgres(user='syncmaster', password=SecretStr('**********'), host='test-postgres', database='syncmaster', port=5432, extra=PostgresExtra(stringtype='unspecified', tcpKeepAlive='true')), <function prepare_postgres.<locals>.fill_with_data at 0x7ff9a471e020>)
prepare_mssql = (MSSQL(user='syncmaster', password=SecretStr('**********'), database='syncmaster', host='test-mssql', port=1433, extra=MSSQLExtra(trustServerCertificate='true')), <function prepare_mssql.<locals>.fill_with_data at 0x7ff9a471f4c0>)
init_df_with_mixed_column_naming = DataFrame[Id: int, Phone Number: string, region: string, NUMBER: int, birth_DATE: date, Registered At: timestamp, account_balance: double]
postgres_to_mssql = <syncmaster.db.models.transfer.Transfer object at 0x7ff9a474d350>
strategy = {'type': 'full'}, transformations = []

    @pytest.mark.parametrize(
        ["strategy", "transformations"],
        [
            (
                lf("full_strategy"),
                [],
            ),
        ],
    )
    async def test_run_transfer_postgres_to_mssql_mixed_naming_with_full_strategy(
        client: AsyncClient,
        group_owner: MockUser,
        prepare_postgres,
        prepare_mssql,
        init_df_with_mixed_column_naming: DataFrame,
        postgres_to_mssql: Transfer,
        strategy,
        transformations,
    ):
        _, fill_with_data = prepare_postgres
        fill_with_data(init_df_with_mixed_column_naming)
        mssql, _ = prepare_mssql
    
        await run_transfer_and_verify(client, group_owner, postgres_to_mssql.id)
    
        reader = DBReader(
            connection=mssql,
            table="dbo.target_table",
        )
        df = reader.run()
    
        assert df.columns != init_df_with_mixed_column_naming.columns
        assert df.columns == [column.lower() for column in init_df_with_mixed_column_naming.columns]
    
        # as Spark rounds datetime to nearest 3.33 milliseconds when writing to mssql: https://onetl.readthedocs.io/en/latest/connection/db_connection/mssql/types.html#id5
        df = df.withColumn("Registered At", date_trunc("second", col("Registered At")))
        init_df_with_mixed_column_naming = init_df_with_mixed_column_naming.withColumn(
            "Registered At",
            date_trunc("second", col("Registered At")),
        )
    
        for field in init_df_with_mixed_column_naming.schema:
            df = df.withColumn(field.name, df[field.name].cast(field.dataType))
    
>       assert df.sort("ID").collect() == init_df_with_mixed_column_naming.sort("ID").collect()
E       AssertionError: assert [Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=1234.2343), Row(Id=2, Phone Number='+79234567890', region='Gondor', NUMBER=2, birth_DATE=datetime.date(2022, 6, 19), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=2345.5678), Row(Id=3, Phone Number='+79345678901', region='Rohan', NUMBER=3, birth_DATE=datetime.date(2021, 11, 5), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=3456.789), Row(Id=4, Phone Number='+79456789012', region='Shire', NUMBER=4, birth_DATE=datetime.date(2020, 1, 30), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=4567.8901), Row(Id=5, Phone Number='+79567890123', region='Isengard', NUMBER=5, birth_DATE=datetime.date(2023, 8, 15), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=5678.9012)] == [Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=1234.2343), Row(Id=2, Phone Number='+79234567890', region='Gondor', NUMBER=2, birth_DATE=datetime.date(2022, 6, 19), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=2345.5678), Row(Id=3, Phone Number='+79345678901', region='Rohan', NUMBER=3, birth_DATE=datetime.date(2021, 11, 5), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=3456.789), Row(Id=4, Phone Number='+79456789012', region='Shire', NUMBER=4, birth_DATE=datetime.date(2020, 1, 30), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=4567.8901), Row(Id=5, Phone Number='+79567890123', region='Isengard', NUMBER=5, birth_DATE=datetime.date(2023, 8, 15), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=5678.9012)]
E         
E         At index 0 diff: Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=1234.2343) != Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=1234.2343)
E         
E         Full diff:
E           [
E         -     Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=1234.2343),
E         ?                                                                                                                                                                  ^
E         +     Row(Id=1, Phone Number='+79123456789', region='Mordor', NUMBER=1, birth_DATE=datetime.date(2023, 3, 11), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=1234.2343),
E         ?                                                                                                                                                                  ^
E         -     Row(Id=2, Phone Number='+79234567890', region='Gondor', NUMBER=2, birth_DATE=datetime.date(2022, 6, 19), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=2345.5678),
E         ?                                                                                                                                                                  ^
E         +     Row(Id=2, Phone Number='+79234567890', region='Gondor', NUMBER=2, birth_DATE=datetime.date(2022, 6, 19), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=2345.5678),
E         ?                                                                                                                                                                  ^
E         -     Row(Id=3, Phone Number='+79345678901', region='Rohan', NUMBER=3, birth_DATE=datetime.date(2021, 11, 5), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=3456.789),
E         ?                                                                                                                                                                 ^
E         +     Row(Id=3, Phone Number='+79345678901', region='Rohan', NUMBER=3, birth_DATE=datetime.date(2021, 11, 5), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=3456.789),
E         ?                                                                                                                                                                 ^
E         -     Row(Id=4, Phone Number='+79456789012', region='Shire', NUMBER=4, birth_DATE=datetime.date(2020, 1, 30), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=4567.8901),
E         ?                                                                                                                                                                 ^
E         +     Row(Id=4, Phone Number='+79456789012', region='Shire', NUMBER=4, birth_DATE=datetime.date(2020, 1, 30), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=4567.8901),
E         ?                                                                                                                                                                 ^
E         -     Row(Id=5, Phone Number='+79567890123', region='Isengard', NUMBER=5, birth_DATE=datetime.date(2023, 8, 15), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 7), account_balance=5678.9012),
E         ?                                                                                                                                                                    ^
E         +     Row(Id=5, Phone Number='+79567890123', region='Isengard', NUMBER=5, birth_DATE=datetime.date(2023, 8, 15), Registered At=datetime.datetime(2026, 5, 11, 17, 5, 8), account_balance=5678.9012),
E         ?                                                                                                                                                                    ^
E           ]

tests/test_integration/test_run_transfer/test_mssql.py:174: AssertionError