-
Notifications
You must be signed in to change notification settings - Fork 76
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
Refactor: Test Framework and Update Docker Compose Configuration #701
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: rohansx <[email protected]>
Signed-off-by: ChaudharyRaman <[email protected]> Signed-off-by: rohansx <[email protected]>
Signed-off-by: rohansx <[email protected]>
Signed-off-by: rohansx <[email protected]>
@Phoenix500526 Pleaase review this PR and let me know the changes and then I'll proceed with the documentation |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #701 +/- ##
==========================================
- Coverage 75.17% 75.16% -0.02%
==========================================
Files 176 176
Lines 26852 26852
Branches 26852 26852
==========================================
- Hits 20187 20183 -4
- Misses 5452 5454 +2
- Partials 1213 1215 +2 ☔ View full report in Codecov by Sentry. |
…ner for interaction Signed-off-by: rohansx <[email protected]>
@liangyuanpeng adjusted port configurations for xLine nodes and added client container for enhanced interaction. @Phoenix500526 updated node2 and node3 ports to avoid special port conflicts and included --client-listen-urls and --peer-listen-urls for clearer networking. Also added a client service for testing and interaction purposes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase this pr.
Signed-off-by: rohansx <[email protected]>
@Phoenix500526 I have done the necessary modification as you mentioned above. I updated client container image for CI validation process to ghcr.io/xline-kv/etcdctl:v3.5.9 |
There are still some problems with the validation CI. Please fix them so that this pr can pass the CI. You can run the validation on your local via executing |
working on this. |
Signed-off-by: rohansx <[email protected]>
Signed-off-by: Phoeniix Zhao <[email protected]>
Signed-off-by: rohansx <[email protected]>
There are several issues in this pr:
|
@Phoenix500526 @liangyuanpeng , I am encountering a validation check error, and I have tried to resolve it without success. Could you please explain why this validation check is failing and provide guidance on how I can address the issue? |
@@ -0,0 +1,85 @@ | |||
version: "3.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version is obsolete, please remove this line. FYI: mailcow/mailcow-dockerized#5797
|
||
services: | ||
node1: | ||
image: ghcr.io/xline-kv/xline:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add container_name
to specify the container name.
--peer-listen-urls http://172.22.0.2:2380 | ||
|
||
node2: | ||
image: ghcr.io/xline-kv/xline:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
--peer-listen-urls http://172.22.0.3:2380 | ||
|
||
node3: | ||
image: ghcr.io/xline-kv/xline:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
--peer-listen-urls http://172.22.0.4:2380 | ||
|
||
client: | ||
image: ghcr.io/xline-kv/etcdctl:v3.5.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
driver: bridge | ||
ipam: | ||
config: | ||
- subnet: "172.22.0.0/16" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep this subnet unify with the subnet in validation_test.sh
I think there are several reasons behind this validation failure:
Finally, please modify our quick start doc to make it unify with the code change in this pr. Thanks 😄 |
Hi, @rohansx ! This pr has been stalled for 3 weeks. Would you like to update it? 😄 |
@Phoenix500526 yes I'll update in the next week.. sorry for the delay.. actually kind of looking for a job and got stuck in the interview process and therefore i couldn't look into it.. |
@Mergifyio rebase |
❌ Base branch update has failedGit reported the following error:
|
@rohansx Your PR is in conflict and cannot be merged. |
Key Changes:
docker-compose.yml
file to manage the Xline cluster configuration, ensuring all services are correctly networked and equipped with the necessary volumes, ports, and environment settings.validation.sh
script to utilize Docker Compose for starting and stopping services, aligning it with the new docker-compose.yml configuration. This update simplifies the validation process and ensures compatibility with the Docker Compose setup.benchmark.sh
andquick_start.sh
documentation to reflect the new Docker Compose-based approach. This includes instructions on how to use the docker-compose file for setting up a development or testing environment and guidelines for executing validation and benchmark tests.These changes aim to streamline the project's testing framework, reduce redundancy, and improve the overall developer experience when testing and validating the Xline cluster's functionality.
Resolves: #692