Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions it/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ def es_cluster_cleanup(es_cluster):
es = Elasticsearch(f"http://localhost:{es_cluster.http_port}")
es.indices.delete(index="*")
es.indices.delete_data_stream(name="*")


@pytest.fixture
def es_release_build(es_cluster) -> bool:
return es_cluster.source_build_release
4 changes: 3 additions & 1 deletion it/logs/test_logs_unmapped.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

@pytest.mark.track("elastic/logs")
class TestLogsUnmapped:
def test_logs_chicken(self, es_cluster, rally):
def test_logs_chicken(self, es_cluster, rally, es_release_build):
if es_release_build:
pytest.skip("logging-insist-chicken is not supported on release builds")
custom = {"mapping": "unmapped"}
ret = rally.race(
track="elastic/logs",
Expand Down
5 changes: 4 additions & 1 deletion it/test_all_tracks_and_challenges.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ class TestTrackRepository:
"nyc_taxis": ["update-aggs-only"],
}
skip_challenges = {"esql": ["query-searchable-snapshot"]}
snapshot_only_challenges = {"wikipedia": ["esql-full-text-functions"]}

def test_autogenerated(self, es_cluster, rally, track, challenge, rally_options, es_cluster_cleanup):
def test_autogenerated(self, es_cluster, rally, track, challenge, rally_options, es_cluster_cleanup, es_release_build):
track_params = {}
if es_release_build and challenge in self.snapshot_only_challenges.get(track, []):
pytest.skip(f"{track}-{challenge} is not supported on release builds")
if track not in self.skip_tracks and challenge not in self.skip_challenges.get(track, []):
if challenge in self.disable_assertions.get(track, []):
rally_options.update({"enable_assertions": False})
Expand Down
Loading