-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add benchmark filter run script #3271
Add benchmark filter run script #3271
Conversation
Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Calum Murray <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #3271 +/- ##
============================================
- Coverage 61.89% 61.82% -0.07%
- Complexity 765 766 +1
============================================
Files 181 181
Lines 12200 12220 +20
Branches 268 266 -2
============================================
+ Hits 7551 7555 +4
- Misses 4061 4078 +17
+ Partials 588 587 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Calum Murray <[email protected]>
/cc @Leo6Leo |
/retest-required |
1 similar comment
/retest-required |
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.
@Cali0707 the file is really large lol, and it is still running
Signed-off-by: Calum Murray <[email protected]>
This should be fixed now! |
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.
Running benchmarks for ExactFilterBenchmarkjjkyj
No matching benchmarks. Miss-spelled regexp?
Use EXTRA verbose mode to debug the pattern matching.
Successfully ran benchmarks for ExactFilterBenchmarkjjkyj!\n\nThe results can be found at /home/leoli/Downloads/eventing-kafka-broker/data-plane/benchmarks/output/ExactFilterBenchmarkjjkyj.1691602228.out.txt
When the input is wrong, the error is this. And it will run the build first as well. If the className sanity check happens at the beginning, it can save some time and resources
Signed-off-by: Calum Murray <[email protected]>
/cc @Leo6Leo |
/lgtm |
Signed-off-by: Calum Murray <[email protected]>
/cc @matzew |
/retest-required |
while IFS="" read -r p || [[ -n "$p" ]]; do | ||
if [[ "$1" == "$p" ]]; then | ||
FOUND=1 | ||
break | ||
fi | ||
done <"${SCRIPT_DIR}/resources/filter-class-list.txt" |
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.
Not an issue, but more a question: why didn't you use something like egrep -q "^${1}$"
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.
Just didn't think of it as I had already written the loop to go through the lines of filter-class-list.txt
to run the benchmarks for all of the classes 😄
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.
@creydr do you think I should switch? Your solution does seem cleaner to me
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.
Whatever you prefer. I am fine with both
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.
I think i'll leave it for now since it keeps the script more consistent with itself
/retest |
/lgtm /hold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, creydr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
/retest-required |
c402ae9
into
knative-extensions:main
Fixes #3270
Proposed Changes
run.sh
script in the benchmark project to run the benchmarksrun.sh
script runnable fromhack/run.sh
DEVELOPMENT.md
on how to run the script