From 3d52cd6f5b11f5f55ac8e6b6e02bf67fe3e2b3a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taavi=20V=C3=A4=C3=A4n=C3=A4nen?= Date: Thu, 4 Dec 2025 14:52:30 +0200 Subject: [PATCH 1/2] app: Improve 500 handler * Do not accidentally handle other errors (like 404s). * Actually set a 500 status code for these. Change-Id: Ic7202fe9899a8b625b3751bc085d19980334ff68 --- quarry/web/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/quarry/web/app.py b/quarry/web/app.py index e37f361..2051d09 100644 --- a/quarry/web/app.py +++ b/quarry/web/app.py @@ -1,5 +1,6 @@ from flask import current_app, Flask, render_template, g, Response from flask_caching import Cache +from werkzeug.exceptions import HTTPException from werkzeug.middleware.proxy_fix import ProxyFix from .config import get_config @@ -31,7 +32,10 @@ def kill_context(exception=None): def handle_internal_error(e: Exception): - return render_template("500.html") + if isinstance(e, HTTPException): + return e + current_app.logger.error("Failed to handle request", exc_info=e) + return render_template("500.html"), 500 def create_app(test_config=None): From e248edf9d655dfea3f2295e05aae0e9d4daed0f5 Mon Sep 17 00:00:00 2001 From: Github Action Date: Thu, 4 Dec 2025 12:53:16 +0000 Subject: [PATCH 2/2] auto update of tag --- helm-quarry/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-quarry/values.yaml b/helm-quarry/values.yaml index 15350cb..76bfa3c 100644 --- a/helm-quarry/values.yaml +++ b/helm-quarry/values.yaml @@ -1,6 +1,6 @@ web: repository: 'quay.io/wikimedia-quarry/quarry' - tag: pr-94 # web tag managed by github actions + tag: pr-95 # web tag managed by github actions resources: requests: memory: "300Mi" @@ -11,7 +11,7 @@ web: worker: repository: 'quay.io/wikimedia-quarry/quarry' - tag: pr-94 # worker tag managed by github actions + tag: pr-95 # worker tag managed by github actions resources: requests: memory: "400Mi"