Skip to content

πŸ› πŸ“ re-update all connectors for new CDK version and more stringent javac checks - #32125

Merged
Stephane Geneix (stephane-airbyte) merged 14 commits into
masterfrom
stephane-compiler-checks-2
Nov 8, 2023
Merged

Stephane Geneix (stephane-airbyte) merged 14 commits into
masterfrom
stephane-compiler-checks-2

Conversation

@stephane-airbyte

@stephane-airbyte Stephane Geneix (stephane-airbyte) commented Nov 2, 2023 •

Copy link
Copy Markdown
Contributor

This is a no-op in term of features or bugs. This is part 2 of a series of PRs. This builds upon #32118

I'm only trying to use as many compiler warnings as possible. They're cheap and can help with a lot of bugs.
Unfortunately, until very recently, our CDK was packaged in a way that causes warnings in any package that used it. I fixed that in 0.4.0 but all projects that use local CDK will have a warning, which means we can't turn those into errors.

Since we released a new CDK (0.4.0) that exports everything properly, we now need to use it and fix the connectors that are certified

@vercel

vercel Bot commented Nov 2, 2023 •

Copy link
Copy Markdown

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 Nov 8, 2023 9:02pm

@CLAassistant

CLAassistant commented Nov 2, 2023 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

github-actions Bot commented Nov 2, 2023 •

Copy link
Copy Markdown
Contributor

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! πŸŽ‰

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.


More details:
""";
""";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixing whitespace that would be removed by the compiler but triggered a warning


@Slf4j
@SuppressWarnings("try")
public class BigQueryRecordStandardConsumer extends AsyncStreamConsumer {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

close throws Exception, hence the suppresswarnings

*/
public class BigQueryRecordConsumer extends FailureTrackingAirbyteMessageConsumer implements AirbyteMessageConsumer {
@SuppressWarnings("try")
class BigQueryRecordConsumer extends FailureTrackingAirbyteMessageConsumer implements AirbyteMessageConsumer {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

close() throws Exception, hence the SuppressWarnings


@Override
@Deprecated
public void cleanUpStage(final String datasetId, final String stream, final List<String> stagedFiles) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the overloaded cleanUpStage is deprecated,so this one needs to be annotated too

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.

0 warnings!
Looks good to me.

Maybe just consult with @airbytehq/destinations since a bunch of their connectors are upgraded as well.

@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.

Can you wait until #32050 merges please? I expect it to pass CI in an hour or so, since it touches quite a few of the same connectors. It bumps them to 0.4.0 as well.

Blocking the merge is the only reason why I'm "requesting changes"

edit: incidentally, my PR fixes the destination-s3 build


| Version | Date | Pull Request | Subject |
|:----------------|:-----------|:-----------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 3.4.6 | 2023-11-03 | [32125](https://github.com/airbytehq/airbyte/pull/32125) | Fix compilation warnings 7 |

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.

typo


| Version | Date | Pull Request | Subject |
|:--------|:-----------|:-----------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 2.3.6 | 2023-11-03 | [32125](https://github.com/airbytehq/airbyte/pull/32125) | fix compilation warnings |

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.

nit: here and in the other changelogs, I think the significant change is rather that we're adopting version 0.4.0 of the CDK.

I'm assuming that these changelogs are read when the connector's misbehaving after an upgrade; knowing about the CDK change is probably going to be more relevant in that use case.

@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.

I've removed myself as a blocker spinning off the connector changes in #32050 into separate PRs:
#32173
#32174
#32175
#32176
#32177
#32178
#32179
#32180

Not all have release notes, because the CDK bump is often a functional no-op.

Please feel free to do whatever suits you best with these. I set them to auto-merge before signing off.

@github-actions

github-actions Bot commented Nov 8, 2023

Copy link
Copy Markdown
Contributor

Coverage report for source-postgres

There is no coverage information present for the Files changed

Total Project Coverage 72.03% 🍏

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.

5 participants