Skip to content

Commit 3b98bb2

Browse files
authored
Modify sort keys in web.py (#207)
This PR fixes the benchmark page link in sorted index pages, e.g.: https://llm-exp.oss-fuzz.com/Result-reports/ofg-pr/2024-03-21-172-dg-comparison/sort/crash Related: google/oss-fuzz-gen@baf80ff
1 parent 3bbb7ee commit 3b98bb2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

report/upload_report.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ while true; do
6666
wget2 --quiet --inet4-only --no-host-directories --http2-request-window 10 --recursive localhost:${WEB_PORT:?}/ 2>&1
6767

6868
# Also fetch the sorted reports.
69-
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort/build -O sort/build 2>&1
70-
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort/cov -O sort/cov 2>&1
71-
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort/cov_diff -O sort/cov_diff 2>&1
72-
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort/crash -O sort/crash 2>&1
73-
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort/status -O sort/status 2>&1
69+
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort_build -O sort/build 2>&1
70+
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort_cov -O sort/cov 2>&1
71+
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort_cov_diff -O sort/cov_diff 2>&1
72+
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort_crash -O sort/crash 2>&1
73+
wget2 --quiet --inet4-only localhost:${WEB_PORT:?}/sort_status -O sort/status 2>&1
7474

7575
# Stop the server.
7676
kill -9 "$pid_web"

report/web.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,39 +352,39 @@ def index_json():
352352
model=model)
353353

354354

355-
@app.route('/sort/build')
355+
@app.route('/sort_build')
356356
def index_sort_build():
357357
return render_template('index.html',
358358
benchmarks=sort_benchmarks(list_benchmarks(),
359359
sort_by='build'),
360360
model=model)
361361

362362

363-
@app.route('/sort/cov')
363+
@app.route('/sort_cov')
364364
def index_sort_cov():
365365
return render_template('index.html',
366366
benchmarks=sort_benchmarks(list_benchmarks(),
367367
sort_by='cov'),
368368
model=model)
369369

370370

371-
@app.route('/sort/cov_diff')
371+
@app.route('/sort_cov_diff')
372372
def index_sort():
373373
return render_template('index.html',
374374
benchmarks=sort_benchmarks(list_benchmarks(),
375375
sort_by='cov_diff'),
376376
model=model)
377377

378378

379-
@app.route('/sort/crash')
379+
@app.route('/sort_crash')
380380
def index_sort_crash():
381381
return render_template('index.html',
382382
benchmarks=sort_benchmarks(list_benchmarks(),
383383
sort_by='crash'),
384384
model=model)
385385

386386

387-
@app.route('/sort/status')
387+
@app.route('/sort_status')
388388
def index_sort_stauts():
389389
return render_template('index.html',
390390
benchmarks=sort_benchmarks(list_benchmarks(),

0 commit comments

Comments
 (0)