Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test5",
"test_id": "test_id5",
"testsuite": [
"testsuite5"
],
Expand All @@ -21,7 +20,6 @@
},
{
"name": "test4",
"test_id": "test_id4",
"testsuite": [
"testsuite4"
],
Expand All @@ -41,7 +39,6 @@
},
{
"name": "test3",
"test_id": "test_id3",
"testsuite": [
"testsuite3"
],
Expand All @@ -61,7 +58,6 @@
},
{
"name": "test2",
"test_id": "test_id2",
"testsuite": [
"testsuite2"
],
Expand All @@ -81,7 +77,6 @@
},
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand All @@ -21,7 +20,6 @@
},
{
"name": "test2",
"test_id": "test_id2",
"testsuite": [
"testsuite2"
],
Expand All @@ -41,7 +39,6 @@
},
{
"name": "test3",
"test_id": "test_id3",
"testsuite": [
"testsuite3"
],
Expand All @@ -61,7 +58,6 @@
},
{
"name": "test4",
"test_id": "test_id4",
"testsuite": [
"testsuite4"
],
Expand All @@ -81,7 +77,6 @@
},
{
"name": "test5",
"test_id": "test_id5",
"testsuite": [
"testsuite5"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test2",
"test_id": "test_id2",
"testsuite": [
"testsuite2"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test5",
"test_id": "test_id5",
"testsuite": [
"testsuite5"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test5",
"test_id": "test_id5",
"testsuite": [
"testsuite5"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test4",
"test_id": "test_id4",
"testsuite": [
"testsuite4"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test5",
"test_id": "test_id5",
"testsuite": [
"testsuite5"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test4",
"test_id": "test_id4",
"testsuite": [
"testsuite4"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test1",
"test_id": "test_id1",
"testsuite": [
"testsuite1"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test2",
"test_id": "test_id2",
"testsuite": [
"testsuite2"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[
{
"name": "test5",
"test_id": "test_id5",
"testsuite": [
"testsuite5"
],
Expand Down
4 changes: 1 addition & 3 deletions graphql_api/tests/test_test_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def __call__(self, updated_at: datetime.datetime) -> dict[str, Any]:
"name": f"test{RowFactory.idx}",
"testsuite": f"testsuite{RowFactory.idx}",
"flags": [f"flag{RowFactory.idx}"],
"test_id": f"test_id{RowFactory.idx}",
"failure_rate": 0.1,
"flake_rate": 0.0,
"updated_at": updated_at,
Expand Down Expand Up @@ -102,7 +101,6 @@ def dedup(rows: list[dict]) -> list[dict]:
"name": name,
"testsuite": sorted({r["testsuite"] for r in group}),
"flags": sorted({flag for r in group for flag in r["flags"]}),
"test_id": group[0]["test_id"], # Keep first test_id
"failure_rate": sum(r["failure_rate"] * w for r, w in zip(group, weights))
/ total_weight,
"flake_rate": sum(r["flake_rate"] * w for r, w in zip(group, weights))
Expand Down Expand Up @@ -131,7 +129,7 @@ def row_to_camel_case(row: dict) -> dict:
for i, part in enumerate(key.split("_"))
): value.isoformat() if key == "updated_at" else value
for key, value in row.items()
if key not in ("test_id", "testsuite", "flags")
if key not in ("testsuite", "flags")
}


Expand Down
2 changes: 0 additions & 2 deletions graphql_api/types/test_analytics/test_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
class TestResultsRow:
# the order here must match the order of the fields in the query
name: str
test_id: str
testsuite: str | None
flags: list[str]
failure_rate: float
Expand All @@ -55,7 +54,6 @@ class TestResultsRow:
def to_dict(self) -> dict:
return {
"name": self.name,
"test_id": self.test_id,
"testsuite": self.testsuite,
"flags": self.flags,
"failure_rate": self.failure_rate,
Expand Down
1 change: 0 additions & 1 deletion utils/test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def dedup_table(table: pl.DataFrame) -> pl.DataFrame:
table = (
table.group_by("name")
.agg(
pl.col("test_id").first().alias("test_id"),
pl.col("testsuite").alias("testsuite"),
pl.col("flags").explode().unique().alias("flags"),
failure_rate_expr.fill_nan(0).alias("failure_rate"),
Expand Down
Loading