-
Notifications
You must be signed in to change notification settings - Fork 1.5k
github-actions: fix codecov for unittests #12181
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
Conversation
Don't overwrite ut coverage with later tests.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #12181 +/- ##
===========================================
+ Coverage 49.81% 83.18% +33.37%
===========================================
Files 909 912 +3
Lines 257904 257055 -849
===========================================
+ Hits 128467 213832 +85365
+ Misses 129437 43223 -86214
Flags with carried forward coverage won't be shown. Click here to find out more. |
Run various commandlines, checking that they don't error/crash. Also counts towards coverage.
Flags are: - unittests - suricata-verify - pcap - livemode - fuzzcorpus This should make sure codecov only adds its report after receiving the results for each of the flags.
- run: llvm-profdata-14 merge -o dumpfeatures.profdata /tmp/dumpfeatures.profraw | ||
- run: ./src/suricata --dump-config -c suricata.yaml -l /tmp | ||
env: | ||
LLVM_PROFILE_FILE: "/tmp/dumpconfig.profraw" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It matches the existing pattern, but how does the dumpfeatures profile data end up being uploaded to codecov?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC it scans for profdata files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All I see it doing is uploaded the coverage.txt file, which I never see this one merged into. Anyways, not really a thing with this PR.
Merged in #12185, thanks! |
Don't overwrite ut coverage with later tests.