Skip to content

Commit

Permalink
Retrieve cached run for the tasks view
Browse files Browse the repository at this point in the history
Address the issue of outdated active test data in the run retrieved
from the database, which is particularly noticeable in the chi2 residuals.

Fixed the Nginx config to serve the route /tests/tasks
from the main Fishtest instance.
  • Loading branch information
ppigazzini committed Apr 21, 2024
1 parent 9eb0dc9 commit e7c30c6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/fishtest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,10 +1411,7 @@ def tests_stats(request):

@view_config(route_name="tests_tasks", renderer="tasks.mak")
def tests_tasks(request):
r_id = request.matchdict["id"]
run = request.rundb.runs.find_one(
{"_id": ObjectId(r_id)}, {"tasks": 1, "bad_tasks": 1, "results": 1, "args": 1}
)
run = request.rundb.get_run(request.matchdict["id"])
if run is None:
raise exception_response(404)

Expand Down

0 comments on commit e7c30c6

Please sign in to comment.