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

Update oracle test container version to 18.4.0-full #17009

Closed
wants to merge 2 commits into from
Closed

Update oracle test container version to 18.4.0-full #17009

wants to merge 2 commits into from

Conversation

chenjian2664
Copy link
Contributor

Description

Fix #5901

Additional context and related issues

Release notes

(x) This is not user-visible or docs only and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Apr 13, 2023
Copy link
Member

@ebyhr ebyhr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you run stress tests? Those scripts were introduced to avoid flaky tests.

@ebyhr ebyhr requested review from wendigo and hashhar April 13, 2023 08:33
@chenjian2664
Copy link
Contributor Author

chenjian2664 commented Apr 13, 2023

Could you run stress tests? Those scripts were introduced to avoid flaky tests.

Thank you! I do not have full context about this scripts, so wondering the reason add the init.sql, it would be appreciated if can share some issues relate to this.
The main thing I want to do this to allow build longer objects names for Oracle tests.(Modifying Oracle part and do not want to do extra works for just modifying the table name to shorter...)
In what condition we can remove the scripts?(like run 10 times, failure 1 or more details requirements). Also, Keep the scripts is totally ok for me.

@ebyhr
Copy link
Member

ebyhr commented Apr 13, 2023

I don't remember the exact number. You can check by removing those scripts without the image bump and run stress tests. I guess it requires at least 30 invocations.

@chenjian2664
Copy link
Contributor Author

Only update oracle container version at current

@chenjian2664 chenjian2664 requested a review from ebyhr April 14, 2023 12:34
@ebyhr
Copy link
Member

ebyhr commented Apr 16, 2023

Fix #5901

There're many TODO comments about this issue. We shouldn't close it in this PR without fixing them.

@chenjian2664 chenjian2664 requested a review from ebyhr April 17, 2023 23:31
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want we should add new test with newer version since 11.2 is still the oldest supported version by Oracle and we want to make sure that we can find and fix bugs against it.

So I don't think this PR would allow to remove the TODOs anyway since 11.2 still needs to be tested. Sometime after 11.2 is out of support (Dec 2023) we can revisit this PR. For now I think we shouldn't merge this.

@chenjian2664
Copy link
Contributor Author

@hashhar Make sense. How about:

  1. How about fix the TODO in the base test cases and only make the different in the Oracle connector test class
  2. For the new version, we could postpone it

@ebyhr
Copy link
Member

ebyhr commented Apr 21, 2023

How about fix the TODO in the base test cases and only make the different in the Oracle connector test class

Do you mean renaming tables in BaseConnectorTest and override each test method in BaseOracleConnectorTest? I disagree if so. It's hard to keep in sync. We may forget to update the Oracle test when changing the base test.

@chenjian2664
Copy link
Contributor Author

How about fix the TODO in the base test cases and only make the different in the Oracle connector test class

Do you mean renaming tables in BaseConnectorTest and override each test method in BaseOracleConnectorTest?

Yes.

I disagree if so. It's hard to keep in sync. We may forget to update the Oracle test when changing the base test.

We could only override the naming not all the test

@ebyhr
Copy link
Member

ebyhr commented Apr 22, 2023

We could only override the naming not all the test

That's possible, but overriding the naming only for the purpose doesn't make sense. It reduces readability and it doesn't bring any benefit. I would recommend closing this PR now.

@chenjian2664
Copy link
Contributor Author

chenjian2664 commented Apr 22, 2023

We could only override the naming not all the test

That's possible, but overriding the naming only for the purpose doesn't make sense. It reduces readability and it doesn't bring any benefit. I would recommend closing this PR now.

Can. I meet this when want to open the merge feature for the Oracle, there are exist tests cases can not fit Oracle naming constraints, for these cases we shouldn't shorter existing name I think, what do you think?

@ebyhr
Copy link
Member

ebyhr commented Apr 22, 2023

for these cases we shouldn't shorter existing name

Why? Renaming the table names in test shouldn't reduce the readability so much. We can improve variable names or add code comments instead of using longer table names.

@chenjian2664
Copy link
Contributor Author

for these cases we shouldn't shorter existing name

Why?

It's reducing the readability for the existing test, and the adjust only for the Oracle.

@chenjian2664 chenjian2664 deleted the oracle_test_version branch May 25, 2023 09:10
@mahic
Copy link

mahic commented Sep 30, 2024

@hashhar Would it make sense to revisit this as 11 is out of support now. Trino is thus running tests on an unsupported version of Oracle. It would be a nice side-effect if merging in a newer version of the test container would result in supporting the latest JDBC driver version

@hashhar
Copy link
Member

hashhar commented Oct 3, 2024

@mahic Thanks for revisiting this. Yes, I think this makes sense to revive now. Do you already plan on sending a PR?

@chenjian2664
Copy link
Contributor Author

@hashhar @ebyhr Do you think it's worth to reopen it? I am still facing the naming issues while modifying the Oracle tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Update Oracle version used in tests to 12
4 participants