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

Move JDBC connector deps to :dev alias #18

Merged

Conversation

PavlosMelissinos
Copy link
Contributor

No description provided.

@PavlosMelissinos
Copy link
Contributor Author

PavlosMelissinos commented Aug 22, 2023

konserve-jdbc didn't have a dev profile, so I made one.

FYI, the dependencies will obviously have to be added to the dev alias for every library that uses konserve-jdbc

@whilo
Copy link
Member

whilo commented Aug 23, 2023

@TimoKramer @jsmassa Does that make sense to you?

@TimoKramer
Copy link
Member

We'll need the drivers in the test-alias as well otherwise the tests won't run.

@TimoKramer
Copy link
Member

And some update in the documentation would be good where you describe the breaking change and the need to add the drivers manually

@PavlosMelissinos
Copy link
Contributor Author

PavlosMelissinos commented Aug 25, 2023

We'll need the drivers in the test-alias as well otherwise the tests won't run.

In theory you can use something like clj -M:dev:test to stack the aliases but I'm not sure how you actually run the tests (you're using an orb, right?)

edit: nevermind, found it! I'm going to change clojure -M:test -m kaocha.runner "$@" in bin/kaocha to clojure -M:dev:test -m kaocha.runner "$@"

And some update in the documentation would be good where you describe the breaking change and the need to add the drivers manually

Good point!

Would a note in README.md suffice? It would be nice to be included in the next release notes too.

Also are you sure you're ok with introducing this breaking change? I suppose most users will provide their own jdbc driver(s) as direct dependencies, so few apps will actually break but you never know...

@TimoKramer
Copy link
Member

In theory you can use something like clj -M:dev:test to stack the aliases but I'm not sure how you actually run the tests (you're using an orb, right?)

right, I am hesitant to change the orb

Would a note in README.md suffice? It would be nice to be included in the next release notes too.

Right, we'll add it prominently to the README and we'll put it in the commit message and we'll announce it on our slack channel.

Also are you sure you're ok with introducing this breaking change?
It's the right way to go so I am for it but I guess some people are relying on our dependencies. Still we were not good so far with keeping the deps up to date so most users should have overwritten them anyway.

@PavlosMelissinos
Copy link
Contributor Author

Alright @TimoKramer , please check again, I think I've addressed everything!

By the way I ran ./bin/run-integrationtests from the main branch but it fails. Something is off with networking because it doesn't "see" the postgres container for some reason.

Apparently it's working for you so it shouldn't matter, it just means that I can't test that everything still works as expected.

Copy link
Member

@TimoKramer TimoKramer 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 we are good. Just minor changes in wording. @alekcz @jsmassa What do you think?

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@TimoKramer
Copy link
Member

One thing you @PavlosMelissinos could change is to increase the minor release version in the build.clj to 0.2.

PavlosMelissinos and others added 3 commits August 29, 2023 12:08
Co-authored-by: Timo Kramer <4785848+TimoKramer@users.noreply.github.com>
Co-authored-by: Timo Kramer <4785848+TimoKramer@users.noreply.github.com>
@PavlosMelissinos
Copy link
Contributor Author

@TimoKramer done, I think

@TimoKramer
Copy link
Member

Merge? @whilo

@whilo whilo merged commit faaf200 into replikativ:main Sep 2, 2023
@whilo
Copy link
Member

whilo commented Sep 2, 2023

Thanks a lot for the PR!

@PavlosMelissinos PavlosMelissinos deleted the move-jdbc-connector-deps-to-dev-alias branch September 3, 2023 11:42
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