Skip to content

Fixes skupperproject#1797: Also count discretionary co-records #1798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

mgoulish
Copy link
Contributor

I don't understand why, but both failing tests pass 10 times in a row with this change.

src/vanflow.c Outdated
@@ -1860,7 +1860,8 @@ vflow_record_t *vflow_start_record(vflow_record_type_t record_type, vflow_record
if (0 == sys_atomic_get(&state->emit_discretionary_records)) {
return 0;
}
if (sys_atomic_inc(&state->discretionary_record_count) >= DISCRETIONARY_RECORDS_STOP_THRESHOLD) {
int val;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
int val;
uint32_t val;

Copy link
Contributor

@ganeshmurthy ganeshmurthy Jun 13, 2025

Choose a reason for hiding this comment

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

Hi Mick - Can you please change the commit message on the PR to -
Fixes #1797 - Assigned return value of sys_atomic_inc to a variable before comparing it to DISCRETIONARY_RECORDS_STOP_THRESHOLD
That is the standard commit message we use when issues are being fixed. When the PR is merged to main, the issue referenced after the Fixes is automatically closed by github

Copy link

codecov bot commented Jun 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.7%. Comparing base (cd290cb) to head (1fe6627).
Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1798     +/-   ##
=======================================
- Coverage   68.5%   66.7%   -1.8%     
=======================================
  Files        207     201      -6     
  Lines      46119   46943    +824     
  Branches    5121    5258    +137     
=======================================
- Hits       31608   31334    -274     
- Misses     12341   13694   +1353     
+ Partials    2170    1915    -255     
Flag Coverage Δ
pysystemtests 84.6% <ø> (+3.0%) ⬆️
systemtests 57.4% <100.0%> (-4.6%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
unittests 66.7% <80.3%> (-1.8%) ⬇️
systemtests 66.7% <80.3%> (-1.8%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ganeshmurthy ganeshmurthy changed the title fixes 1797 Fixes skupperproject#1797: Also count discretionary co-records Jun 13, 2025
@mgoulish mgoulish merged commit e00826a into skupperproject:main Jun 13, 2025
50 of 52 checks passed
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.

3 participants