Skip to content

Conversation

@khoanguyen-dev
Copy link
Member

@khoanguyen-dev khoanguyen-dev commented Oct 31, 2024

Changes and Information

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

  • Split up TestWorld.evolveMigration.
  • Moved around some tests for better fit
  • Add fuzzing or more test cases to TestPerson and TestLocation.
  • Add all checks for different VirusVariants in check_constraints() of parameters.h.
  • Fix GMOCK warnings of one TestingStrategy test

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

Benchmark results:

  • Current branch:
    Run on (8 X 24.1214 MHz CPU s)
    CPU Caches:
    L1 Data 64 KiB (x8)
    L1 Instruction 128 KiB (x8)
    L2 Unified 4096 KiB (x2)
    Load Average: 2.14, 2.46, 2.84

Benchmark Time CPU Iterations

abm_benchmark/abm_benchmark_50k 1300 ms 1294 ms 1
abm_benchmark/abm_benchmark_100k 2599 ms 2586 ms 1
abm_benchmark/abm_benchmark_200k 5220 ms 5187 ms 1

  • Main branch:
    Run on (8 X 24.0948 MHz CPU s)
    CPU Caches:
    L1 Data 64 KiB (x8)
    L1 Instruction 128 KiB (x8)
    L2 Unified 4096 KiB (x2)
    Load Average: 3.26, 3.54, 3.26

Benchmark Time CPU Iterations

abm_benchmark/abm_benchmark_50k 1311 ms 1306 ms 1
abm_benchmark/abm_benchmark_100k 2611 ms 2607 ms 1
abm_benchmark/abm_benchmark_200k 5242 ms 5225 ms 1

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 for new functionality has been added (Doxygen in the code and Markdown files if necessary)
  • 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 #1143

@khoanguyen-dev khoanguyen-dev linked an issue Oct 31, 2024 that may be closed by this pull request
2 tasks
@codecov
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.98%. Comparing base (c6e9f15) to head (f7504d3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1141   +/-   ##
=======================================
  Coverage   96.98%   96.98%           
=======================================
  Files         142      142           
  Lines       11868    11873    +5     
=======================================
+ Hits        11510    11515    +5     
  Misses        358      358           

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

Copy link
Member

@reneSchm reneSchm left a comment

Choose a reason for hiding this comment

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

The changes to parameters look fine, only the loop got changed.
The additional comments in and on the test are really nice, especially on the more complicated ones. Though I am unsure whether the doxygen format should be used on a TEST makro over a regular comment.
This definitely improves the tests, but I will keep the linked issue open for now.

@reneSchm reneSchm removed a link to an issue Nov 12, 2024
2 tasks
Co-authored-by: reneSchm <49305466+reneSchm@users.noreply.github.com>
@DavidKerkmann DavidKerkmann merged commit 4343b92 into main Nov 28, 2024
58 checks passed
@DavidKerkmann DavidKerkmann deleted the 1067-improve-abm-tests branch November 28, 2024 16:02
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.

TestModelTestingCriteria.testAddingAndUpdatingAndRunningTestingSchemes has GMOCK warnings

4 participants