Skip to content

get source-mssql CI to green - #35721

Merged
Stephane Geneix (stephane-airbyte) merged 1 commit into
masterfrom
stephane/02-29-get_source-mssql_CI_to_green
Mar 6, 2024
Merged

Stephane Geneix (stephane-airbyte) merged 1 commit into
masterfrom
stephane/02-29-get_source-mssql_CI_to_green

Conversation

@stephane-airbyte

@stephane-airbyte Stephane Geneix (stephane-airbyte) commented Feb 29, 2024 •

Copy link
Copy Markdown
Contributor

TheAbstractMssqlSourceDatatypeTest was wrong for reals.
CdcMssqlSourceTest and CdcMssqlSslSourceTest no longer use exclusive containers.
tests that change the SQLServer agent state are now in their own test class (which needs to use an exclusive container)

Besides that, the core of the problem can be grouped in 2 issues:
a) some tests are failing to enable CDC for tables. This is due to a timing issue. We moved that logic into its own function that will try for a total of 240seconds before giving up.
b) some tests are failing when trying to read the minLsn. There is a 1sec wait implemented in the production code. Instead we introduce a busy loop that will wait for a total of 240seconds for records to appear in the CDC table before giving up. That function is implemented in test code.

Unfortunately, for both cases, we sometimes needed to wait while in the middle of a function implemented in the CDK. We introduced a few hooks in the parent PR that are implemented in this PR for the source-mssql tests, and use the functions described above

@stephane-airbyte
Stephane Geneix (stephane-airbyte) requested a review from a team as a February 29, 2024 08:30
@vercel

vercel Bot commented Feb 29, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2024 1:21am

Stephane Geneix (stephane-airbyte) commented Feb 29, 2024 •

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join Stephane Geneix (@stephane-airbyte) and the rest of your teammates on Graphite Graphite

@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch 2 times, most recently from 4c58954 to adef115 Compare February 29, 2024 17:38
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch 3 times, most recently from ba5d342 to a5d73cc Compare February 29, 2024 18:09
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch 2 times, most recently from 712b2e2 to f8bbde2 Compare February 29, 2024 18:40
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch from f8bbde2 to 76e1a66 Compare February 29, 2024 20:07
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-improve_airbyte-cdk branch 2 times, most recently from 651c9ff to 9ccfb3a Compare February 29, 2024 20:37
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch from 76e1a66 to 0e2dd77 Compare February 29, 2024 20:37
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch from 0e2dd77 to 91078e0 Compare February 29, 2024 20:43
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch 2 times, most recently from 2043e3c to 135d3cc Compare March 3, 2024 06:44
@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the CDK Connector Development Kit label Mar 3, 2024
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/03-02-minor_changes_to_the_java_CDK_test_code branch from c18e19d to 9bb20bd Compare March 3, 2024 06:46
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch from 135d3cc to d80ceb5 Compare March 3, 2024 06:46
@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) removed the CDK Connector Development Kit label Mar 3, 2024
@stephane-airbyte
Stephane Geneix (stephane-airbyte) force-pushed the stephane/02-29-get_source-mssql_CI_to_green branch 2 times, most recently from c3460c0 to 1749924 Compare March 3, 2024 17:49
@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the CDK Connector Development Kit label Mar 3, 2024

@postamar Marius Posta (postamar) Mar 4, 2024 •

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.

Any chance you could change your testdb methods to rethrow checked exceptions as runtime exceptions? Please. Having to propagate checked exception signatures all over the place is noisy and annoying, and not particularly useful in test harnesses.

@postamar Marius Posta (postamar) Mar 4, 2024 •

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.

Since this pattern is fairly common it might be worth introducing a retryEverySecondUntil function which takes a closure and retries as long as that closure returns a null or something

@postamar Marius Posta (postamar) 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.

The only blocker on my end is a missing exit criterion when it comes to determining the max lsn

Copy link
Copy Markdown
Contributor Author

Merge activity

This branch was successfully deployed

1 active deployment
Preview — 28daa2b6 Deployed Mar 6, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/mssql

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants