Repository: jupyterhub/binderhub
Pull request #1619 (2023-01-09 22:01:13)

ci: Debug versions health metrics endpoints after CI tests
Amongst other things this includes the `binderhub_github_rate_limit_remaining` metric which could be useful for investigating https://github.com/jupyterhub/binderhub/issues/1608


Patch:
diff --git a/binderhub/launcher.py b/binderhub/launcher.py
index 385ab6ab..1602e483 100644
--- a/binderhub/launcher.py
+++ b/binderhub/launcher.py
@@ -302,7 +302,7 @@ class Launcher(LoggingConfigurable):
                                     )
                                 )
 
-            url_parts = ["users", escaped_username]
+            url_parts = ["users", username]
             if server_name:
                 url_parts.extend(["servers", server_name, "progress"])
             else:
diff --git a/helm-chart/images/binderhub/requirements.txt b/helm-chart/images/binderhub/requirements.txt
index 2e4b6b16..1dca0377 100644
--- a/helm-chart/images/binderhub/requirements.txt
+++ b/helm-chart/images/binderhub/requirements.txt
@@ -10,7 +10,7 @@ async-generator==1.10
     # via jupyterhub
 attrs==22.2.0
     # via jsonschema
-cachetools==5.2.1
+cachetools==5.2.0
     # via google-auth
 certifi==2022.12.7
     # via
@@ -33,7 +33,7 @@ google-api-core[grpc]==2.11.0
     #   google-cloud-appengine-logging
     #   google-cloud-core
     #   google-cloud-logging
-google-auth==2.16.0
+google-auth==2.15.0
     # via
     #   google-api-core
     #   google-cloud-core
@@ -46,7 +46,7 @@ google-cloud-core==2.3.2
     # via google-cloud-logging
 google-cloud-logging==3.4.0
     # via -r helm-chart/images/binderhub/requirements.in
-googleapis-common-protos[grpc]==1.58.0
+googleapis-common-protos[grpc]==1.57.0
     # via
     #   google-api-core
     #   google-cloud-audit-log
@@ -94,7 +94,7 @@ oauthlib==3.2.2
     # via
     #   jupyterhub
     #   requests-oauthlib
-packaging==23.0
+packaging==22.0
     # via
     #   docker
     #   jupyterhub
@@ -104,7 +104,7 @@ prometheus-client==0.15.0
     # via
     #   -r helm-chart/images/binderhub/../../../requirements.txt
     #   jupyterhub
-proto-plus==1.22.2
+proto-plus==1.22.1
     # via
     #   google-cloud-appengine-logging
     #   google-cloud-logging
@@ -167,7 +167,7 @@ tornado==6.2
     # via
     #   -r helm-chart/images/binderhub/../../../requirements.txt
     #   jupyterhub
-traitlets==5.8.1
+traitlets==5.8.0
     # via
     #   -r helm-chart/images/binderhub/../../../requirements.txt
     #   jupyter-telemetry


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index bea9d622..124121db 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -331,6 +331,16 @@ jobs:
           export BINDER_URL=http://localhost:30901
           pytest --helm -m "remote" -v --maxfail=10 --cov binderhub --durations=10 --color=yes
 
+      - name: Get BinderHub health and metrics outputs
+        if: always()
+        run: |
+          if [ "${{ matrix.test }}" = "helm" ]; then
+            for endpoint in versions health metrics; do
+              echo -e "\n${endpoint}"
+              curl http://localhost:30901/$endpoint
+            done
+          fi
+
       # GitHub Action reference: https://github.com/jupyterhub/action-k8s-namespace-report
       - name: Kubernetes namespace report
         uses: jupyterhub/action-k8s-namespace-report@v1