Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a timeout to junit test #35767

Merged

Conversation

stephane-airbyte
Copy link
Contributor

@stephane-airbyte stephane-airbyte commented Mar 1, 2024

Today there's no clear timeout for tests. The only one that exists is at the github action level, and it has to be conservative at 1h.
This change introduces a timeout per test method. The default value is set at 5 minutes per method, and can be overriden on a per method basis via the use of the junit @timeout annotation.

We're also fixing a regression in the test ContainerFactory that was sharing less container than was possible. Finally, we're introducing a MdcScope.doNothing to allow using MdcScope in try blocks without triggering a compiler warning

Copy link

vercel bot commented Mar 1, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Mar 2, 2024 1:13am

Copy link
Contributor Author

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

Join @stephane-airbyte and the rest of your teammates on Graphite Graphite

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Mar 1, 2024
@stephane-airbyte stephane-airbyte force-pushed the stephane/03-01-add_a_timeout_to_junit_test branch 3 times, most recently from 30b2619 to a3ea1f2 Compare March 1, 2024 23:13
Copy link
Contributor Author

stephane-airbyte commented Mar 1, 2024

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/8118396953
❌ Publish Java CDK version=0.23.10 failed!

@stephane-airbyte stephane-airbyte force-pushed the stephane/03-01-add_a_timeout_to_junit_test branch from a6e8756 to 9d4c0de Compare March 1, 2024 23:35
Copy link
Contributor Author

stephane-airbyte commented Mar 1, 2024

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/8118495285
❌ Publish Java CDK version=0.23.12 failed!

Copy link
Contributor Author

stephane-airbyte commented Mar 2, 2024

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/8118765613
❌ Publish Java CDK version=0.23.12 failed!

@stephane-airbyte stephane-airbyte force-pushed the stephane/03-01-add_a_timeout_to_junit_test branch from 9d4c0de to 837b908 Compare March 2, 2024 01:04
@stephane-airbyte stephane-airbyte requested a review from a team as a code owner March 2, 2024 01:04
Copy link
Contributor Author

stephane-airbyte commented Mar 2, 2024

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/8119192185
✅ Successfully published Java CDK version=0.23.12!

@stephane-airbyte stephane-airbyte force-pushed the stephane/03-01-add_a_timeout_to_junit_test branch from 837b908 to 37d13d4 Compare March 2, 2024 01:13
@stephane-airbyte stephane-airbyte merged commit dc35e13 into master Mar 2, 2024
26 checks passed
@stephane-airbyte stephane-airbyte deleted the stephane/03-01-add_a_timeout_to_junit_test branch March 2, 2024 01:31
xiaohansong pushed a commit that referenced this pull request Mar 7, 2024
Today there's no clear timeout for tests. The only one that exists is at the github action level, and it has to be conservative at 1h.
This change introduces a timeout per test method. The default value is set at 5 minutes per method, and can be overriden on a per method basis via the use of the junit @timeout annotation.

We're also fixing a regression in the test ContainerFactory that was sharing less container than was possible. Finally, we're introducing a MdcScope.doNothing to allow using MdcScope in try blocks without triggering a compiler warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants