Skip to content

Commit a93a01c

Browse files
authored
Merge pull request #1884 from manics/update-z2jh
Update Z2JH to 4.0.0
2 parents 58bb7db + 6f2e26f commit a93a01c

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
k3s-channel:
5858
# Available channels: https://github.com/k3s-io/k3s/blob/HEAD/channel.yaml
5959
# Don't use "latest", instead bump it using a PR so we know when a new version breaks BinderHub
60-
- v1.29
60+
- v1.30
6161
test:
6262
- main
6363
- auth
@@ -69,7 +69,7 @@ jobs:
6969
# which isn't documented anywhere, but is currently at 3.5.0. We also
7070
# test with the latest k8s and helm versions.
7171
#
72-
- k3s-channel: v1.23
72+
- k3s-channel: v1.28
7373
helm-version: v3.5.0
7474
test: helm
7575
test-variation: dind

binderhub/events.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@
1212
from traitlets.config import Configurable
1313

1414

15-
def _skip_message(record, **kwargs):
15+
def _skip_fields(record, **kwargs):
1616
"""
17-
Remove 'message' from log record.
17+
Remove unwanted fields from log record.
1818
19-
It is always emitted with 'null', and we do not want it,
20-
since we are always emitting events only
19+
message: always emitted with 'null', and we do not want it,
20+
since we are always emitting events only
21+
taskName:
2122
"""
2223
del record["message"]
24+
if "taskName" in record:
25+
del record["taskName"]
2326
return json.dumps(record, **kwargs)
2427

2528

@@ -49,7 +52,7 @@ def __init__(self, *args, **kwargs):
4952

5053
if self.handlers_maker:
5154
self.handlers = self.handlers_maker(self)
52-
formatter = jsonlogger.JsonFormatter(json_serializer=_skip_message)
55+
formatter = jsonlogger.JsonFormatter(json_serializer=_skip_fields)
5356
for handler in self.handlers:
5457
handler.setFormatter(formatter)
5558
self.log.addHandler(handler)

binderhub/tests/test_build.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# We have optimized this slow test, for more information, see the README of
2323
# https://github.com/binderhub-ci-repos/minimal-dockerfile.
24-
@pytest.mark.asyncio(timeout=900)
24+
@pytest.mark.timeout(900)
2525
@pytest.mark.parametrize(
2626
"slug",
2727
[
@@ -102,7 +102,7 @@ async def test_build(app, needs_build, needs_launch, always_build, slug, pytestc
102102
stop.raise_for_status()
103103

104104

105-
@pytest.mark.asyncio(timeout=900)
105+
@pytest.mark.timeout(900)
106106
@pytest.mark.parametrize(
107107
"app,build_only_query_param",
108108
[
@@ -152,7 +152,7 @@ async def test_build_only(app, build_only_query_param, needs_build):
152152
assert final["phase"] == "ready"
153153

154154

155-
@pytest.mark.asyncio(timeout=120)
155+
@pytest.mark.timeout(120)
156156
@pytest.mark.remote
157157
async def test_build_fail(app, needs_build, needs_launch, always_build):
158158
"""
@@ -176,7 +176,7 @@ async def test_build_fail(app, needs_build, needs_launch, always_build):
176176
assert failed_events > 0, "Should have seen phase 'failed'"
177177

178178

179-
@pytest.mark.asyncio(timeout=120)
179+
@pytest.mark.timeout(120)
180180
@pytest.mark.parametrize(
181181
"app,build_only_query_param,expected_error_msg",
182182
[
@@ -485,7 +485,7 @@ async def test_local_repo2docker_build():
485485
assert docker_client.images.get(name)
486486

487487

488-
@pytest.mark.asyncio(timeout=20)
488+
@pytest.mark.timeout(20)
489489
async def test_local_repo2docker_build_stop(io_loop):
490490
q = Queue()
491491
# We need a slow build here so that we can interrupt it, so pick a large repo that

helm-chart/binderhub/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
# and run "./dependencies freeze --upgrade".
1313
#
1414
- name: jupyterhub
15-
version: "3.3.7"
15+
version: "4.0.0"
1616
repository: "https://jupyterhub.github.io/helm-chart"
1717
description: |-
1818
BinderHub is like a JupyterHub that automatically builds environments for the
@@ -22,7 +22,7 @@ keywords: [jupyter, jupyterhub, binderhub]
2222
home: https://binderhub.readthedocs.io/en/latest/
2323
sources: [https://github.com/jupyterhub/binderhub]
2424
icon: https://jupyterhub.github.io/helm-chart/images/hublogo.svg
25-
kubeVersion: ">=1.23.0-0"
25+
kubeVersion: ">=1.28.0-0"
2626
maintainers:
2727
# Since it is a requirement of Artifact Hub to have specific maintainers
2828
# listed, we have added some below, but in practice the entire JupyterHub team

helm-chart/binderhub/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jupyterhub:
7272
hub:
7373
config:
7474
JupyterHub:
75-
authenticator_class: nullauthenticator.NullAuthenticator
75+
authenticator_class: "null"
7676
BinderSpawner:
7777
auth_enabled: false
7878
loadRoles:

tools/templates/lint-and-validate-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jupyterhub:
5656
hub:
5757
config:
5858
JupyterHub:
59-
authenticator_class: nullauthenticator.NullAuthenticator
59+
authenticator_class: "null"
6060
extraConfig:
6161
hub-test-config: |
6262
dummy jupyterhub python code...

0 commit comments

Comments
 (0)