Skip to content

Commit 2b5ef28

Browse files
authored
🔨 Improves e2e script (#178)
* rm warning * sort columns
1 parent dc1b5ab commit 2b5ef28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎clients/python/test/e2e/ci/e2e/e2e/postprocess.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ def generate_html_table(e2e_artifacts_dir: str) -> None:
158158
raise typer.Exit(code=E2eExitCodes.CI_SCRIPT_FAILURE)
159159

160160
df: pd.DataFrame = pd.DataFrame()
161-
for file in artifacts.glob("*.json"):
162-
df = pd.concat([df, pd.read_json(file)], axis=1)
161+
for path in artifacts.glob("*.json"):
162+
df = pd.concat([df, pd.read_json(path)], axis=1)
163163

164164
for exit_code in df.to_numpy().flatten():
165165
if not _exit_code_valid(exit_code):
@@ -177,8 +177,9 @@ def generate_html_table(e2e_artifacts_dir: str) -> None:
177177
{"selector": "th", "props": [("background-color", "#F2F2F2")]},
178178
]
179179

180-
df = df.applymap(_exitcode_to_text)
181-
s = df.style.applymap(_make_pretty)
180+
df = df.map(_exitcode_to_text)
181+
df = df.reindex(sorted(df.columns), axis=1) # Sort columns alphabetically
182+
s = df.style.map(_make_pretty)
182183
s.set_table_attributes('style="font-size: 20px"')
183184
s.set_table_styles(style)
184185
s.set_caption("OSPARC e2e python client vs server tests")

0 commit comments

Comments
 (0)