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

Extend template for the Java JDBC template by SAT SPEC #19660

Merged
merged 18 commits into from
Dec 6, 2022

Conversation

DoNotPanicUA
Copy link
Contributor

@DoNotPanicUA DoNotPanicUA commented Nov 21, 2022

What

Update Java JDBC source template to enable SAT SPEC by default for generated sources.
#19130

Test

Steps to reproduce:

  1. Generate Java JDBC source
  2. Build the image (exclude unit tests from the build by -x test as there is no implementation inside)
  3. Run SAT locally acceptance-test-docker.sh

Result:
Screenshot from 2022-11-21 18-42-49

@DoNotPanicUA DoNotPanicUA self-assigned this Nov 21, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 21, 2022

Affected Connector Report

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to do the following as needed:

  • Run integration tests
  • Bump connector or module version
  • Add changelog
  • Publish the new version

⚠ Sources (1)

Connector Version Changelog Publish
source-scaffold-java-jdbc 0.1.0
(doc not found)

(not in seed)
  • See "Actionable Items" below for how to resolve warnings and errors.

✅ Destinations (0)

Connector Version Changelog Publish
  • See "Actionable Items" below for how to resolve warnings and errors.

✅ Other Modules (0)

Actionable Items

(click to expand)

Category Status Actionable Item
Version
mismatch
The version of the connector is different from its normal variant. Please bump the version of the connector.

doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
Changelog
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.

changelog missing
There is no chnagelog for the current version of the connector. If you are the author of the current version, please add a changelog.
Publish
not in seed
The connector is not in the seed file (e.g. source_definitions.yaml), so its publication status cannot be checked. This can be normal (e.g. some connectors are cloud-specific, and only listed in the cloud seed file). Please double-check to make sure that it is not a bug.

diff seed version
The connector exists in the seed file, but the latest version is not listed there. This usually means that the latest version is not published. Please use the /publish command to publish the latest version.

@DoNotPanicUA DoNotPanicUA marked this pull request as ready for review November 21, 2022 17:18
@DoNotPanicUA DoNotPanicUA requested a review from a team as a code owner November 21, 2022 17:18
@DoNotPanicUA DoNotPanicUA requested review from alafanechere, evantahler and a team and removed request for a team November 21, 2022 17:19
@alafanechere alafanechere requested review from a team and removed request for a team November 21, 2022 17:35
Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

I think you can re-use existing templates instead of re-creating files like acceptance-test-config.yml and acceptance-test-docker.sh.

Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

As I mentionned, most of the file you created are already existing in an exact same format under airbyte-integrations/connector-templates/source-python/integration_tests.
For simpler maintenance, I would prefer you pick one of the following approach:

  1. Change the plopfile.js to make Java JDBC Source use the source-python/integration_tests files
  2. Create a symlink in source-java-jdbc/integration-tests to source-python/integration-tests
  3. Rework the connector-templates directory structure to declare files common to both source-python and source-java-jdbc and handle this with the plopfile.js

I don't want to be a blocker on this. I'd love to get the opinion of someone else on the team.

(please format the files 😄 I know you still have new lines in stock to add these to the end of your files)

@alafanechere alafanechere requested a review from a team November 29, 2022 14:41
@DoNotPanicUA DoNotPanicUA requested a review from a team as a code owner December 1, 2022 16:24
@DoNotPanicUA DoNotPanicUA changed the title extend template for the Java JDBC template by SAT SPEC Уxtend template for the Java JDBC template by SAT SPEC Dec 1, 2022
@DoNotPanicUA DoNotPanicUA changed the title Уxtend template for the Java JDBC template by SAT SPEC Extend template for the Java JDBC template by SAT SPEC Dec 1, 2022
@DoNotPanicUA
Copy link
Contributor Author

@alafanechere
As we agreed, I've left only SPEC-related files and created the follow-up issue.
Please let me know if some changes are still required.

Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

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

Please fix the missing new line 😄 Otherwise LGTM

@DoNotPanicUA DoNotPanicUA merged commit 39c8801 into master Dec 6, 2022
@DoNotPanicUA DoNotPanicUA deleted the aleonets/19130-extend-template branch December 6, 2022 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend source-java-jdbc by files required for SAT SPEC (Example #18779)
3 participants