Skip to content

Commit

Permalink
Minor CI improvements (cvat-ai#6527)
Browse files Browse the repository at this point in the history
Disable silk profiler for unit tests, adjust disk utilization threshold
for rest tests
  • Loading branch information
azhavoro authored Jul 20, 2023
1 parent 123a86c commit 791604a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cvat/settings/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ def __init__(self, *args, **kwargs):
config["ASYNC"] = False

super().__init__(*args, **kwargs)

# No need to profile unit tests
INSTALLED_APPS.remove('silk')
MIDDLEWARE.remove('silk.middleware.SilkyMiddleware')
6 changes: 6 additions & 0 deletions cvat/settings/testing_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@
QUALITY_CHECK_JOB_DELAY = 10000

IMPORT_CACHE_CLEAN_DELAY = timedelta(seconds=30)

# The tests should not fail due to high disk utilization of CI infrastructure that we have no control over
# But let's keep this check enabled
HEALTH_CHECK = {
'DISK_USAGE_MAX': 100, # percent
}

0 comments on commit 791604a

Please sign in to comment.