Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
36a59324
Commit
36a59324
authored
2 months ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
test: reduce test_large_snapshot flakiness
parent
cd1802d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1535
fix: bug in raft snapshot application
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/int/test_snapshot.py
+0
-21
0 additions, 21 deletions
test/int/test_snapshot.py
with
0 additions
and
21 deletions
test/int/test_snapshot.py
+
0
−
21
View file @
36a59324
import
time
import
pytest
from
conftest
import
Cluster
,
Retriable
...
...
@@ -68,9 +66,6 @@ def assert_eq(lhs, rhs):
assert
lhs
==
rhs
@pytest.mark.xfail
(
reason
=
"
flaky, see: https://git.picodata.io/core/picodata/-/issues/779
"
)
def
test_large_snapshot
(
cluster
:
Cluster
):
i1
,
i2
,
i3
,
i4
=
cluster
.
deploy
(
instance_count
=
4
)
...
...
@@ -215,14 +210,6 @@ def test_large_snapshot(cluster: Cluster):
i4
.
env
[
"
PICODATA_SCRIPT
"
]
=
script_path
i4
.
start
()
# Wait for i4 to start receiving the snapshot
Retriable
(
10
,
60
).
call
(
lambda
:
assert_eq
(
i4
.
call
(
"
.proc_runtime_info
"
)[
"
internal
"
][
"
main_loop_status
"
],
"
receiving snapshot
"
,
)
)
# In the middle of snapshot application propose a new entry
index
=
cluster
.
cas
(
"
insert
"
,
"
_pico_property
"
,
[
"
pokemon
"
,
"
snap
"
])
for
i
in
[
i1
,
i2
,
i3
]:
...
...
@@ -234,14 +221,6 @@ def test_large_snapshot(cluster: Cluster):
i5
.
env
[
"
PICODATA_SCRIPT
"
]
=
script_path
i5
.
start
()
# Wait for i5 to start receiving the snapshot
Retriable
(
10
,
60
).
call
(
lambda
:
assert_eq
(
i5
.
call
(
"
.proc_runtime_info
"
)[
"
internal
"
][
"
main_loop_status
"
],
"
receiving snapshot
"
,
)
)
i1
.
raft_compact_log
()
i2
.
raft_compact_log
()
i3
.
raft_compact_log
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment