-
Notifications
You must be signed in to change notification settings - Fork 160
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
Fix appsec tests in 8.1-8.3 #2974
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2974 +/- ##
============================================
- Coverage 74.82% 74.80% -0.02%
Complexity 2741 2741
============================================
Files 110 110
Lines 10863 10863
============================================
- Hits 8128 8126 -2
- Misses 2735 2737 +2
Flags with carried forward coverage won't be shown. Click here to find out more. see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
f451104
to
627c44a
Compare
I suppose you meant mock helper. |
Benchmarks [ tracer ]Benchmark execution time: 2024-11-26 22:04:27 Comparing candidate commit 21dcf99 in PR branch Found 2 performance improvements and 2 performance regressions! Performance is the same for 174 metrics, 0 unstable metrics. scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache
scenario:PDOBench/benchPDOBaseline-opcache
scenario:TraceFlushBench/benchFlushTrace
scenario:TraceSerializationBench/benchSerializeTrace
|
4b6cd39
to
9fd6b9e
Compare
9fd6b9e
to
d07d32a
Compare
The use of pipe() creates an extra file descriptor which makes the helper unable to find the correct pipe file descriptor. While this could perhaps be improved by telling the helper explicitly the id of the correct file descriptor, it's probably better to swap write() calls of reading invalid addresses with mincore().
d07d32a
to
21dcf99
Compare
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.
The linux logic looks good to me. Hopefully someone can double check the macos bit...
Description
The use of pipe() creates an extra file descriptor which makes the helper unable to find the correct pipe file descriptor. While this could perhaps be improved by telling the helper explicitly the id of the correct file descriptor, it's probably better to swap write() calls of reading invalid addresses with mincore().
See #2942 , which broke the tests
Reviewer checklist