Skip to content

DV2: Better errors in the UI - #30491

Merged
Edward Gao (edgao) merged 11 commits into
masterfrom
edgao/dv2/exceptions
Sep 18, 2023
Merged

DV2: Better errors in the UI#30491
Edward Gao (edgao) merged 11 commits into
masterfrom
edgao/dv2/exceptions

Conversation

@edgao

@edgao Edward Gao (edgao) commented Sep 15, 2023

Copy link
Copy Markdown
Contributor
  • FutureUtils#reduceExceptions now just rethrows the first exception, instead of wrapping them into a bigger exception. Other exceptions are still logged, so we're not completely losing them.
    • make that same change in a few other places
  • BigqueryDestinationHandler now throws a BigQueryException (to match job.reload), and also includes execution errors (no idea what these are, but they exist 🤷)
  • Snowflake removes the first line of the exception message so that we only show the more useful part in the UI

example bigquery error:
image

and snowflake:
image

This does not solve our sentry grouping problems; see #30502

@github-actions

github-actions Bot commented Sep 15, 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.

@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the area/documentation Improvements or additions to documentation label Sep 15, 2023
@edgao Edward Gao (edgao) changed the title DV2: Better exceptions DV2: Better errors in the UI Sep 15, 2023
@edgao
Edward Gao (edgao) marked this pull request as ready for review September 15, 2023 23:31
@edgao
Edward Gao (edgao) requested review from a team as code owners September 15, 2023 23:31
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

Comment on lines +83 to +89
public static <T extends Throwable> void logAllAndThrowFirst(final String initialMessage, final Collection<? extends T> throwables) throws T {
if (!throwables.isEmpty()) {
final String stacktraces = throwables.stream().map(ExceptionUtils::getStackTrace).collect(joining("\n"));
LOGGER.error(initialMessage + stacktraces + "\nRethrowing first exception.");
throw throwables.iterator().next();
}
}

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.

Nice!

@edgao
Edward Gao (edgao) enabled auto-merge (squash) September 18, 2023 15:10
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@github-actions
github-actions Bot requested a review from a team September 18, 2023 15:32
@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the CDK Connector Development Kit label Sep 18, 2023
@github-actions

Copy link
Copy Markdown
Contributor

destination-snowflake test report (commit ab9a6573c7) - ✅

⏲️ Total pipeline duration: 12mn35s

Step Result
Build connector tar
Build destination-snowflake docker image for platform linux/x86_64
Java Connector Unit Tests
Java Connector Integration Tests
Validate airbyte-integrations/connectors/destination-snowflake/metadata.yaml
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-snowflake test

@github-actions

Copy link
Copy Markdown
Contributor

destination-bigquery test report (commit ab9a6573c7) - ✅

⏲️ Total pipeline duration: 02mn51s

Step Result
Build connector tar
Build destination-bigquery docker image for platform linux/x86_64
Java Connector Unit Tests
Java Connector Integration Tests
Validate airbyte-integrations/connectors/destination-bigquery/metadata.yaml
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=destination-bigquery test

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

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit connectors/destination/bigquery connectors/destination/snowflake

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants