Skip to content

Rework data storage#98

Merged
Jonas-Kirchhoff merged 7 commits intomainfrom
rework_data_storage
Oct 6, 2025
Merged

Rework data storage#98
Jonas-Kirchhoff merged 7 commits intomainfrom
rework_data_storage

Conversation

@Jonas-Kirchhoff
Copy link

Two mistakes are fixed:

  1. Primary key in table test_results is removed.
  2. Wrong order of arguments when fetching the most recent test result is corrected.

Additionally, a heuristic size check is added and documented.

* primary key in table test_results fails if update happens
* most recent results still identifiably using table workflow_info
* order of argument in SQL-query was wrong
* Necessity to update was detected erroneously
@github-actions github-actions bot added documentation Improvements or additions to documentation M labels Oct 1, 2025
@coveralls
Copy link

coveralls commented Oct 1, 2025

Coverage Status

coverage: 99.186%. remained the same
when pulling 8045e2b on rework_data_storage
into afab04e on main.

@Jonas-Kirchhoff Jonas-Kirchhoff marked this pull request as ready for review October 1, 2025 11:54
@Jonas-Kirchhoff
Copy link
Author

This branch should be merged to main only after the branch save_historical_data_JK is merged into save_historical_data. This guarantees that the saving of test-results does not fail due to the violated uniqueness-constraint even in the un-expected case that any test fails.

@github-actions github-actions bot removed the M label Oct 2, 2025

* It is expected, that an update of a test-result only happens, when a test fails, which leads automatically to the failure of the pipeline, which should trigger a manual review by the maintainer, or failed before.
* It is expected, that tests fail rarely, and in particular on average less than 10 different test-cases per workflow-run fail.
* It is expected, that less than 1,000 worflow runs, where a record of the test-result is triggered, happen per year, since these are only triggered once daily and on each push to main.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: worflow --> workflow

@github-actions github-actions bot added the M label Oct 6, 2025
@Jonas-Kirchhoff Jonas-Kirchhoff merged commit 05e6244 into main Oct 6, 2025
83 checks passed
@Erikhu1 Erikhu1 deleted the rework_data_storage branch November 4, 2025 15:16
Erikhu1 pushed a commit that referenced this pull request Nov 14, 2025
* fix indentation style

* fix typo in comments

* Remove un-necessary primary key

* primary key in table test_results fails if update happens
* most recent results still identifiably using table workflow_info

* Fix find_most_recent_results

* order of argument in SQL-query was wrong
* Necessity to update was detected erroneously

* add heuristic size-check

* document heuristic size-check

* fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants