Skip to content

Commit

Permalink
fix: sorting of tests being inserted
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry committed Nov 8, 2024
1 parent 782d0f0 commit 80e8033
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/test_results_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ def create_daily_total():
# Upsert Tests
if len(test_data) > 0:
test_insert = insert(Test.__table__).values(
sorted(test_data.values(), key=lambda x: str(x["flags_hash"]))
sorted(
test_data.values(),
key=lambda x: str(x["test_id"]),
)
)
insert_on_conflict_do_update = test_insert.on_conflict_do_update(
index_elements=["repoid", "name", "testsuite", "flags_hash"],
Expand Down

0 comments on commit 80e8033

Please sign in to comment.