-
-
Notifications
You must be signed in to change notification settings - Fork 224
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: benchmark and propagate the status to not to swallow the failure #808
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #808 +/- ##
==========================================
- Coverage 81.58% 81.57% -0.02%
==========================================
Files 158 158
Lines 8966 8959 -7
==========================================
- Hits 7315 7308 -7
Misses 1406 1406
Partials 245 245
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Always had trouble understanding the escape_seq_decode logic so just refactored it completely, notably |
@jcchavezs I think you can finish, we should remove the actual performance regression check. GitHub runners machine configuration / busyness varies wildly across runs, it is not possible to do a automated perf check on them without custom runners. So the best we can do is just compute the numbers somewhere as a reference point, that's what I've been doing in wasilibs https://github.com/wasilibs/go-re2/blob/main/.github/workflows/bench.yaml |
Shopuld this be a benchmark or a test? |
Not sure the question, but there should be a benchmark. It may also need to be a normal unit test. |
From the title of this PR I didn't expect the |
I understand the pipe propagation for fixing the benchmark. I don't understand why |
Yes, benchmark was failing and since we were not propagating the status the
CI was green.
…On Thu, 15 Jun 2023, 16:49 Felipe Zipitría, ***@***.***> wrote:
I understand the pipe propagation for fixing the benchmark.
I don't understand why escape_seq_decode needed to change for a
benchmark. Was this a bug in the code?
—
Reply to this email directly, view it on GitHub
<#808 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXOYAUHXVKFSZKWBYTQ7I3XLMOGNANCNFSM6AAAAAAY7EWTDY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Looks like we are not in sync. |
Do we need to add additional tests here
Looks like we found a bug of some sort, and the failing benchmarks uncovered it. Do we need additional tests? |
@fzipi added the test. |
At some point the benchmaks got broken (can't access action logs older than 3 months) but could have been broken for a while.
See https://github.com/corazawaf/coraza/actions/runs/5210566284/jobs/9401796344?pr=808#step:5:97
cc @anuraaga @jptosso as they worked on this mainly