Skip to content

Commit

Permalink
Merge c81db14 into 4a5fec5
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh authored Oct 19, 2023
2 parents 4a5fec5 + c81db14 commit a9853cb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-kubetest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
export PYTHONUNBUFFERED=1
python -m pytest ${{ matrix.test-file }} \
-s \
--maxfail=1
--maxfail=1 \
--kube-log-level=info
- name: Emit namespace report
uses: jupyterhub/action-k8s-namespace-report@v1
Expand Down
2 changes: 1 addition & 1 deletion charts/posthog/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 30.31.0
version: 30.32.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
3 changes: 2 additions & 1 deletion charts/posthog/templates/events-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ spec:
value: '1'
- name: IS_BEHIND_PROXY
value: '1'
- name: DEBUG
value: 'true'
{{- if eq .Values.web.secureCookies false }}
- name: SECURE_COOKIES
value: '0'
Expand Down Expand Up @@ -174,5 +176,4 @@ spec:
{{- end }}
initContainers:
{{- include "_snippet-initContainers-wait-for-service-dependencies" . | indent 8 }}
{{- include "_snippet-initContainers-wait-for-migrations" . | indent 8 }}
{{- end }}
1 change: 0 additions & 1 deletion charts/posthog/templates/recordings-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,4 @@ spec:
{{- end }}
initContainers:
{{- include "_snippet-initContainers-wait-for-service-dependencies" . | indent 8 }}
{{- include "_snippet-initContainers-wait-for-migrations" . | indent 8 }}
{{- end }}
2 changes: 0 additions & 2 deletions charts/posthog/tests/_initContainers-wait-for-migrations.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
suite: _initContainers-wait-for-migrations
templates:
- templates/events-deployment.yaml
- templates/plugins-deployment.yaml
- templates/web-deployment.yaml
- templates/worker-deployment.yaml
Expand All @@ -10,7 +9,6 @@ templates:
tests:
- it: spec.template.spec.initContainers[1].env override via 'env' should work
templates: # TODO: remove once secrets.yaml will be fixed/removed
- templates/events-deployment.yaml
- templates/plugins-deployment.yaml
- templates/web-deployment.yaml
- templates/worker-deployment.yaml
Expand Down
6 changes: 6 additions & 0 deletions ci/kubetest/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ def wait_for_pods_to_be_ready(kube, labels=None, expected_count=None, namespace=
# NOTE 2: the test is currently a bit flaky likely due to
# liveness/readiness checks. I'm bumping the expected restart
# count from 0 to 2 for now.
print("container logs start")
try:
print([c.get_logs() for c in pod.get_containers()])
except Exception:
pass
print("container logs finish")
assert get_pod_restart_count(pod) < 2, f"Detected too many restarts in pod {pod.obj.metadata.name}"

# Note we assume that if "job-name" is a label then it is a job pod.
Expand Down

0 comments on commit a9853cb

Please sign in to comment.