Open cataphract opened 12 hours ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 74.82%. Comparing base (
35d1665
) to head (9fd6b9e
). Report is 1 commits behind head on master.
🚨 Try these New Features:
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().
I suppose you meant mock helper.
Benchmark execution time: 2024-11-22 16:45:22
Comparing candidate commit 9fd6b9e4d9fdb70e6d52ce2676ab5a15144ac75c in PR branch glopes/fix-appsec-test-pipe
with baseline commit 35d1665166dde8c5017bccb7f7d7233614b27dda in branch master
.
Found 1 performance improvements and 0 performance regressions! Performance is the same for 177 metrics, 0 unstable metrics.
execution_time
[-16.249µs; -9.751µs] or [-7.842%; -4.706%]
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 https://github.com/DataDog/dd-trace-php/pull/2942 , which broke the tests
Reviewer checklist