Skip to content
Open
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
9 changes: 7 additions & 2 deletions ingest_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,16 @@ def processor(data, pipeline):
return df

def validate(diagnostic_directory):
version = os.path.join(diagnostic_directory, "version.json")
if not os.path.exists(version):
version_file = os.path.join(diagnostic_directory, "version.json")
if not os.path.exists(version_file):
print("Missing the file `version.json` in the directory")
sys.exit(1)

with open(version_file) as f:
version_info = json.load(f)["version"]
print(title("ES version: %s (%s)" % (version_info["number"], version_info["build_hash"])))
print()

nodes_stats = os.path.join(diagnostic_directory, "nodes_stats.json")
if not os.path.exists(nodes_stats):
print("Missing the file `nodes_stats.json` in the directory")
Expand Down

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions test/diagnostic-rally-logging-8.6.0-baseline/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name" : "elasticsearch-0",
"cluster_name" : "default",
"cluster_uuid" : "3m18hbb3R16FOHoNcYX6kg",
"version" : {
"number" : "8.6.0-SNAPSHOT",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "8fea01b20dbd182f186167e9b5c6b077fd83517e",
"build_date" : "2023-01-17T14:05:00.377551327Z",
"build_snapshot" : true,
"lucene_version" : "9.4.2",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions test/diagnostic-rally-security-8.6.0-baseline/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name" : "elasticsearch-0",
"cluster_name" : "default",
"cluster_uuid" : "LeGA2B7STT2JL6qcEARRXA",
"version" : {
"number" : "8.6.0-SNAPSHOT",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "8fea01b20dbd182f186167e9b5c6b077fd83517e",
"build_date" : "2023-01-17T14:21:44.395921792Z",
"build_snapshot" : true,
"lucene_version" : "9.4.2",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
1 change: 1 addition & 0 deletions test/diagnostic-rally-security-date-cache/nodes_stats.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test/diagnostic-rally-security-date-cache/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "name" : "elasticsearch-0", "cluster_name" : "default", "cluster_uuid" : "qX7Ub7puQU65rKYqxk1R_g", "version" : { "number" : "8.7.0-SNAPSHOT", "build_flavor" : "default", "build_type" : "tar", "build_hash" : "6107adf9f71e80b2d525f2bc0032cd3b11e50024", "build_date" : "2023-01-17T16:15:36.783321970Z", "build_snapshot" : true, "lucene_version" : "9.4.2", "minimum_wire_compatibility_version" : "7.17.0", "minimum_index_compatibility_version" : "7.0.0" }, "tagline" : "You Know, for Search" }