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

Migrate to Conduit Commons utils #1673

Merged
merged 4 commits into from
Jul 1, 2024

Conversation

lovromazgon
Copy link
Member

Description

This PR removes a few foundation packages in favor of implementations in conduit-commons:

  • pkg/foundation/csync replaced with csync
  • pkg/foundation/cchan replaced with cchan
  • pkg/foundation/rollback replaced with rollback
  • pkg/foundation/semaphore replaced with semaphore
  • pkg/foundation/multierror replaced with cerrors.Join
    • additionally cerrors.ForEach was added for looping through joined errors

Depends on #1622.
Part of #1433.

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@lovromazgon lovromazgon requested a review from a team as a code owner June 21, 2024 12:42
Copy link
Member

@raulb raulb left a comment

Choose a reason for hiding this comment

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

Nice refactor on errors 👍

Copy link
Contributor

@hariso hariso left a comment

Choose a reason for hiding this comment

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

We're very close! 🚀

@lovromazgon lovromazgon merged commit 9bce58b into lovro/cpluginv2 Jul 1, 2024
3 checks passed
@lovromazgon lovromazgon deleted the lovro/migrate-to-conduit-commons branch July 1, 2024 10:36
lovromazgon added a commit that referenced this pull request Jul 1, 2024
* update standalone plugin to use connector protocol v2

* update destination acceptance tests

* update builtin plugin adapter

* move builtin/v1 to builtin

* update connector package, still missing source tests

* source tests

* update pkg/pipeline

* fix pkg/orchestrator

* conduit compiles again

* generate typed mocks

* update protocol and sdk, rename cplugin to pconnector

* fix linter warning

* test getting stream without calling run

* make destination plugin mock nicer

* remove redundant mock options

* organize imports

* clone response in builtin plugins

* add builtin generator connector

* include builtin connectors (only postgres missing now)

* add comment about cloning requests and responses

* address review comments

* update postgres connector, address review comments

* update postgres, s3 and connector sdk

* Migrate to Conduit Commons utils (#1673)

* remove obsolete foundation packages

* replace removed packages with alternatives in conduit-commons

* user errors.Join instead of multierror

* go mod tidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants