Skip to content

In e2e tests, wait for ingested data to become available, and run a connectivity_test before e2e tests#193

Merged
gabrys merged 5 commits intomainfrom
gabrys/e2e-wait-for-ingestion
Jan 13, 2026
Merged

In e2e tests, wait for ingested data to become available, and run a connectivity_test before e2e tests#193
gabrys merged 5 commits intomainfrom
gabrys/e2e-wait-for-ingestion

Conversation

@gabrys
Copy link
Contributor

@gabrys gabrys commented Jan 12, 2026

Before submitting checklist

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

Comment on lines 260 to 275
for run_id in run_ids:
sys_ids_by_run_id = fetch_sys_ids(attribute_name="sys/custom_run_id", attribute_value=run_id)
if len(sys_ids_by_run_id) > 1:
raise RuntimeError(f"Expected exactly one sys_id for run_id {run_id}, got {sys_ids_by_run_id}")
if len(sys_ids_by_run_id) == 1:
found_runs += 1

for experiment_name in experiment_names:
sys_ids_by_experiment_name = fetch_sys_ids(attribute_name="sys/name", attribute_value=experiment_name)
if len(sys_ids_by_experiment_name) > 1:
raise RuntimeError(
f"Expected exactly one sys_id for experiment_name {experiment_name}, "
f"got {sys_ids_by_experiment_name}"
)
if len(sys_ids_by_experiment_name) == 1:
found_experiments += 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a single API call made with search.fetch_run_sys_attrs, without a filter. We don't need to check experiments separately.

@gabrys gabrys force-pushed the gabrys/e2e-wait-for-ingestion branch from f338d3c to 2b46d56 Compare January 13, 2026 10:06
@gabrys gabrys merged commit 3099cfe into main Jan 13, 2026
14 of 18 checks passed
@gabrys gabrys deleted the gabrys/e2e-wait-for-ingestion branch January 13, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants