Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cse138-assignment-4-test-suite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Daksh Kalpesh Shah
cse138-assignment-4-test-suite
Commits
0f3cab38
Commit
0f3cab38
authored
1 month ago
by
zphrs
Browse files
Options
Downloads
Patches
Plain Diff
added comments for which tests to comment out in __main__.py to test in parallel
parent
ad9aea47
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
__main__.py
+7
-2
7 additions, 2 deletions
__main__.py
tests/bench/benchmark.py
+1
-1
1 addition, 1 deletion
tests/bench/benchmark.py
with
8 additions
and
3 deletions
__main__.py
+
7
−
2
View file @
0f3cab38
...
...
@@ -21,6 +21,7 @@ import logging
CONTAINER_IMAGE_ID
=
"
kvstore-hw3-test
"
TEST_GROUP_ID
=
"
hw3
"
class
TestRunner
:
def
__init__
(
self
,
project_dir
:
str
,
debug_output_dir
:
str
):
self
.
project_dir
=
project_dir
...
...
@@ -80,6 +81,7 @@ from .tests.basic.basic import BASIC_TESTS
from
.tests.asgn3.availability.availability_basic
import
AVAILABILITY_TESTS
from
.tests.asgn3.causal_consistency.causal_basic
import
CAUSAL_TESTS
from
.tests.asgn3.eventual_consistency.convergence_basic
import
CONVERGENCE_TESTS
# from .tests.asgn3.view_change.view_change_basic import VIEW_CHANGE_TESTS
from
.tests.proxy.basic_proxy
import
PROXY_TESTS
from
.tests.shuffle.basic_shuffle
import
SHUFFLE_TESTS
...
...
@@ -87,16 +89,19 @@ from .tests.bench.benchmark import BENCHMARKS
from
.tests.stress.stress_tests
import
STRESS_TESTS
TEST_SET
=
[]
# tests from here...
TEST_SET
.
append
(
TestCase
(
"
hello_cluster
"
,
hello_cluster
))
TEST_SET
.
extend
(
BASIC_TESTS
)
TEST_SET
.
extend
(
AVAILABILITY_TESTS
)
TEST_SET
.
extend
(
CAUSAL_TESTS
)
TEST_SET
.
extend
(
CONVERGENCE_TESTS
)
# ... to here can be run in parallel.
# Below here should be run synchronously:
TEST_SET
.
extend
(
PROXY_TESTS
)
TEST_SET
.
extend
(
SHUFFLE_TESTS
)
TEST_SET
.
extend
(
BENCHMARKS
)
TEST_SET
.
extend
(
STRESS_TESTS
)
# TEST_SET.extend(VIEW_CHANGE_TESTS)
# This one is less of a test and more a graphing program:
TEST_SET
.
extend
(
BENCHMARKS
)
# set to True to stop at the first failing test
FAIL_FAST
=
True
...
...
This diff is collapsed.
Click to expand it.
tests/bench/benchmark.py
+
1
−
1
View file @
0f3cab38
...
...
@@ -8,7 +8,7 @@ import asyncio
import
matplotlib.pyplot
as
plt
NUM_SHARDS
=
16
NUM_KEYS
=
20
000
NUM_KEYS
=
5
000
NUM_NODES
=
8
def
benchmark_add_shard
(
conductor
:
ClusterConductor
,
dir
,
log
:
Logger
):
...
...
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