Skip to content

Upgrade async gem fix specs 5.0 #236

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

Open
wants to merge 13 commits into
base: 5.0
Choose a base branch
from

Conversation

petergebala
Copy link
Contributor

Hi @klobuczek

As you mentioned in #235
Here you have code changes against the 5.0 branch.

About cluster tests and Testkit.
If I understand correctly, the ultimate goal is to eliminate cluster integration tests, that are setup with neoctrl-*.
What about other Ruby specs in the main project? Do you want to keep them? Is Testkit gonna be the only source of truth?

I haven't run Testkit yet in the docker container. I am not sure what is your point of view of having dockerized version.

Waiting for your comments :)

@petergebala petergebala marked this pull request as draft March 20, 2025 08:49
Rakefile Outdated
@@ -47,10 +49,13 @@ end.spec 'neo4j-ruby-driver' do
spec_extras[:requirements] = ->(requirements) { requirements << 'jar org.neo4j.driver, neo4j-java-driver-all, 5.27.0' }
spec_extras[:platform] = 'java'
else
dependency 'async', '< 2.13'
dependency 'async', '>= 0'
Copy link
Member

Choose a reason for hiding this comment

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

do your changes work with async < 2.13?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably not. I will adjust PR.

@klobuczek
Copy link
Member

klobuczek commented Apr 1, 2025

@petergebala sorry for the delayed response.

Hi @klobuczek

As you mentioned in #235 Here you have code changes against the 5.0 branch.

About cluster tests and Testkit. If I understand correctly, the ultimate goal is to eliminate cluster integration tests, that are setup with neoctrl-*.

It is not so much a goal to eliminate the cluster tests as it is a pain to maintain them. They are quite brittle and do not work on driver 5.0 at all.

What about other Ruby specs in the main project? Do you want to keep them?

Yes, keep all tests that run against a single neo4j instance or no instance at all.

Is Testkit gonna be the only source of truth?

Not the only source but having them all pass would be fantastic.

I haven't run Testkit yet in the docker container. I am not sure what is your point of view of having dockerized version.

testkit on github actions runs in docker container. Some of the testkit tests run against a stubbed server, which can easily simulate different scenarios that would be hard to do on a real server.
On local I run neo4j in docker, but then for debugging purposes, I run the testkit-backend and the python script directly in shell. I haven't gotten yet to a point where everything passes, so there is always debugging involved.

Waiting for your comments :)

@petergebala
Copy link
Contributor Author

I pushed changes. I was also able to run testkit locally and replicate failing tests. I will work on them in free time.

@klobuczek
Copy link
Member

@petergebala could you refresh your branch with the current 5.0. We will try to merge your PR as the failing testkit is not related.

@petergebala petergebala marked this pull request as ready for review June 11, 2025 08:43
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.

2 participants