Nightly Tests Fix (#905)
* tests: fix nightly test to account for 'waiting_capacity' state * readd missing --logErrorsToRedis flag
This commit is contained in:
parent
3f42515914
commit
f2b7b6bcd5
@ -231,11 +231,10 @@ def timeout_crawl(admin_auth_headers, default_org_id):
|
||||
def error_crawl_id(admin_auth_headers, default_org_id):
|
||||
crawl_data = {
|
||||
"runNow": True,
|
||||
"name": "Youtube crawl with errors",
|
||||
"name": "Invalid URL crawl",
|
||||
"config": {
|
||||
"seeds": [
|
||||
{"url": "https://invalid.webrecorder.net/"},
|
||||
{"url": "https://invalid-2.webrecorder.net/"},
|
||||
{"url": "https://invalid-x.webrecorder.net/"},
|
||||
],
|
||||
"limit": 1,
|
||||
},
|
||||
|
@ -26,7 +26,7 @@ def test_run_two_only_one_concurrent(org_with_quotas, admin_auth_headers):
|
||||
crawl_id_b = run_crawl(org_with_quotas, admin_auth_headers)
|
||||
|
||||
while (
|
||||
get_crawl_status(org_with_quotas, crawl_id_a, admin_auth_headers) == "starting"
|
||||
get_crawl_status(org_with_quotas, crawl_id_a, admin_auth_headers) in ("starting", "waiting_capacity")
|
||||
):
|
||||
time.sleep(2)
|
||||
|
||||
|
@ -71,7 +71,7 @@ metadata:
|
||||
namespace: {{ .Values.crawler_namespace }}
|
||||
|
||||
data:
|
||||
CRAWL_ARGS: "--workers {{ .Values.crawler_browser_instances | default 1 }} --sizeLimit {{ .Values.crawler_session_size_limit_bytes }} --timeLimit {{ .Values.crawler_session_time_limit_seconds }} --maxPageLimit {{ .Values.max_pages_per_crawl | default 0 }} --healthCheckPort {{ .Values.crawler_liveness_port }} --diskUtilization {{ .Values.disk_utilization_threshold }} --logging {{ .Values.crawler_logging_opts }} --text {{ .Values.crawler_extract_full_text }} --generateWACZ --waitOnDone --collection thecrawl --screencastPort 9037"
|
||||
CRAWL_ARGS: "--workers {{ .Values.crawler_browser_instances | default 1 }} --sizeLimit {{ .Values.crawler_session_size_limit_bytes }} --timeLimit {{ .Values.crawler_session_time_limit_seconds }} --maxPageLimit {{ .Values.max_pages_per_crawl | default 0 }} --healthCheckPort {{ .Values.crawler_liveness_port }} --diskUtilization {{ .Values.disk_utilization_threshold }} --logging {{ .Values.crawler_logging_opts }} --text {{ .Values.crawler_extract_full_text }} --generateWACZ --waitOnDone --collection thecrawl --screencastPort 9037 --logErrorsToRedis"
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
Loading…
Reference in New Issue
Block a user