Skip to content

Fix E2E load test (for batch) #2361

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

Merged
merged 1 commit into from
Jul 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/e2e/e2e/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,12 +796,14 @@ def test_load_batch(
printer("checking the jobs' responses")
for job_spec in job_specs:
job_id: str = job_spec["job_id"]
job_status = requests.get(f"{api_endpoint}?jobID={job_id}").json()["job_status"]
job = requests.get(f"{api_endpoint}?jobID={job_id}").json()
job_status = job["job_status"]
job_metrics = job["metrics"]

assert (
job_status["batches_in_queue"] == 0
), f"there are still batches in queue ({job_status['batches_in_queue']}) for job ID {job_id}"
assert job_spec["metrics"]["succeeded"] == math.ceil(items_per_job / batch_size)
assert job_metrics["succeeded"] == math.ceil(items_per_job / batch_size)

num_objects = 0
for page in paginator.paginate(Bucket=bucket, Prefix=os.path.join(key, job_id)):
Expand Down