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

Implement CI #12

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open

Implement CI #12

wants to merge 49 commits into from

Conversation

Parsifal22
Copy link
Contributor

No description provided.

Parsifal22 and others added 30 commits June 28, 2024 12:15
… easier to analyze the code

In raft_log_replication.py: start to write test that log replication happens correctly if leadership changes

In raft_node.py: add a couple of lines of code to close node after each test, so that after running pytest it does not crash

new issue: after the leader changes, the new leader is not aware of the latest index of the neighboring nodes and begins to rewrite them, even though his nodes completely coincide with the neighboring node.
Add line "echo "PYTHONPATH=$PWD/cyraft" >> $GITHUB_ENV"
Add lines:
1.  "echo "PYTHONPATH=$PYTHONPATH:$HOME/cyraft/demo/custom_data_types:$HOME/cyraft/demo/public_regulated_data_types" >> $GITHUB_ENV"

2. "- name: Verify PYTHONPATH
 run: echo $PYTHONPATH

- name: List directory for debugging
 run: ls -R"
… easier to analyze the code

In raft_log_replication.py: start to write test that log replication happens correctly if leadership changes

In raft_node.py: add a couple of lines of code to close node after each test, so that after running pytest it does not crash

new issue: after the leader changes, the new leader is not aware of the latest index of the neighboring nodes and begins to rewrite them, even though his nodes completely coincide with the neighboring node.
@maksimdrachov
Copy link
Collaborator

It's best to finish solving the remaining issues with the previous MR before continueing with the new one. :)

Parsifal22 and others added 15 commits July 3, 2024 14:15
…Garage#18)

* Changed the logic of the terms, and also changed the tests

* Update tests/raft_node.py

Co-authored-by: maksimdrachov <[email protected]>

* Made some minor changes

---------

Co-authored-by: maksimdrachov <[email protected]>
)

* Changed the logic of the terms, and also changed the tests

* Update tests/raft_node.py

Co-authored-by: maksimdrachov <[email protected]>

* Made some minor changes

* In node.py: expanded the log information for some values ​​to make it easier to analyze the code

In raft_log_replication.py: start to write test that log replication happens correctly if leadership changes

In raft_node.py: add a couple of lines of code to close node after each test, so that after running pytest it does not crash

new issue: after the leader changes, the new leader is not aware of the latest index of the neighboring nodes and begins to rewrite them, even though his nodes completely coincide with the neighboring node.

* Added test _unittest_raft_leader_changes for log_replication.py

* In node.py: expanded the log information for some values ​​to make it easier to analyze the code

In raft_log_replication.py: start to write test that log replication happens correctly if leadership changes

In raft_node.py: add a couple of lines of code to close node after each test, so that after running pytest it does not crash

new issue: after the leader changes, the new leader is not aware of the latest index of the neighboring nodes and begins to rewrite them, even though his nodes completely coincide with the neighboring node.

* Added test _unittest_raft_leader_changes for log_replication.py

* Adapted the test to term Changes

* Returned the deleted fragment from the test _unittest_raft_log_replication()

* Reformatted code

* Returned the test _unittest_raft_node_heartbeat()

* Added Black Formatter to the VSCode

* Formatted tests

* Changed raft_node.py tests

---------

Co-authored-by: maksimdrachov <[email protected]>
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