Skip to content

1610 Fix flaky test logInfectionStatePerAgeGroup - #1611

Merged
xsaschako merged 1 commit into
mainfrom
1610-Flaky-test-logInfectionStatePerAgeGroup
Nov 26, 2026
Merged

xsaschako merged 1 commit into
mainfrom
1610-Flaky-test-logInfectionStatePerAgeGroup

Conversation

@xsaschako

@xsaschako xsaschako commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Changes and Information

Please briefly list the changes (main added features, changed items, or corrected bugs) made:

  • Disable transmission in the logInfectionStatePerAgeGroup test by setting InfectionRateFromViralShed to 0

If need be, add additional information and what the reviewer should look out for in particular:

  • The test places a Dead Person at home with two Susceptible Persons. Without a Cemetery, the Dead Person stays at home and still contributes viral shed (Person::is_infected is also true for Dead), so one of the Susceptible Persons was occasionally infected and the test failed randomly.

Merge Request - Guideline Checklist

Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.

Checks by code author

  • Every addressed issue is linked (use the "Closes #ISSUE" keyword below).
  • New code adheres to coding guidelines.
  • No large data files have been added (files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.).
  • Tests are added for new functionality and a local test run was successful (with and without OpenMP).
  • Appropriate documentation within the code (Doxygen) for new functionality has been added in the code.
  • Appropriate external documentation (ReadTheDocs) for new functionality has been added to the online documentation and checked in the preview.
  • Proper attention to licenses, especially no new third-party software with conflicting license has been added.
  • (For ABM development) Checked benchmark results and ran and posted a local test above from before and after development to ensure performance is monitored.

Checks by code reviewer(s)

  • Corresponding issue(s) is/are linked and addressed.
  • Code is clean of development artifacts (no deactivated or commented code lines, no debugging printouts, etc.).
  • Appropriate unit tests have been added, CI passes, code coverage and performance is acceptable (did not decrease).
  • No large data files added in the whole history of commits(files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.).
  • On merge, add 2-5 lines with the changes (main added features, changed items, or corrected bugs) to the merge-commit-message. This can be taken from the briefly-list-the-changes above (best case) or the separate commit messages (worst case).

Closes #1610

@xsaschako
xsaschako marked this pull request as ready for review November 26, 2026 13:34
@xsaschako
xsaschako requested a review from HenrZu November 26, 2026 13:34
@xsaschako xsaschako self-assigned this Nov 26, 2026
@xsaschako
xsaschako requested review from charlie0614 and jubicker and removed request for HenrZu and charlie0614 November 26, 2026 13:35
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.52%. Comparing base (760ec38) to head (8829bc5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1611   +/-   ##
=======================================
  Coverage   97.52%   97.52%           
=======================================
  Files         190      190           
  Lines       16104    16104           
=======================================
  Hits        15705    15705           
  Misses        399      399           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xsaschako
xsaschako merged commit f0c2cf2 into main Nov 26, 2026
232 of 322 checks passed
@xsaschako
xsaschako deleted the 1610-Flaky-test-logInfectionStatePerAgeGroup branch November 26, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test logInfectionStatePerAgeGroup

2 participants