-
Couldn't load subscription status.
- Fork 13.8k
[FLINK-38488][tests] Use 'throws Exception' instead of try-catch-fail… #27092
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
base: master
Are you sure you want to change the base?
Conversation
|
@ruanhang1993 I know you are tracking some testing improvements. Could you review this? Thanks, |
558ea34 to
b74cf18
Compare
|
The testing failure seems unrelated as FLINK-38408 tracks the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I think throw Exception is enough and better.
|
@liuml07 Could you rebase the master branch and re-run the CI? The e2e tests have been fixed. Thanks. |
|
@flinkbot run azure |
594432e to
1ede169
Compare
|
I rebased again and it's still failing. Failing tests in runtime module is tracked by FLINK-38223. E2E tests are failing with the old same |
… in tests in flink-tests
|
The failing test |
|
@ruanhang1993 do you think this PR is in a mergable shape, or we try more CI runs? |
https://issues.apache.org/jira/browse/FLINK-38488
Currently we have some tests using following patter:
This can be replaced by just throwing Exceptions in test and let JUnit handles the failure along with exception stack trace. The existing code loses stack trace information in test reports, and we need to look around in the stdout to guess.
As we can see other tests in Flink uses the "throws Exception" model: