Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merging 5272/5287/5288/5290/5291/5292/5293/5294/5295/5296/5297/5300/5301/5302 to prod #5303

Merged
merged 32 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6480062
bump z2jh to 3.2.1
shaneknapp Dec 14, 2023
c065c98
Remove memory bumps during FA 23
balajialg Dec 18, 2023
9224db1
[edx] Update Otter-Submit Button
sean-morris Dec 18, 2023
eb14087
Merge pull request #5288 from sean-morris/otter-submit
shaneknapp Dec 19, 2023
01e20b4
Merge pull request #5287 from balajialg/mem_bump
shaneknapp Dec 19, 2023
0737cac
chartpressed
shaneknapp Dec 19, 2023
ba83441
bump prom
shaneknapp Dec 19, 2023
42064c4
Merge pull request #5290 from shaneknapp/bump-prometheus
shaneknapp Dec 19, 2023
47461e5
bump helm to unstick latest prom helm chart
shaneknapp Dec 19, 2023
9d21844
get all the helms
shaneknapp Dec 19, 2023
18b1f22
Merge pull request #5291 from shaneknapp/bump-helm-in-circleci
shaneknapp Dec 19, 2023
163c48d
it's turtles all the way down
shaneknapp Dec 19, 2023
96bac86
bump all the versions
shaneknapp Dec 19, 2023
0043853
add plugin install
shaneknapp Dec 19, 2023
a9518c2
Merge pull request #5292 from shaneknapp/now-we-bump-gcloud
shaneknapp Dec 19, 2023
253c08e
statsd is old now it isn't
shaneknapp Dec 19, 2023
bdd965c
Merge pull request #5293 from shaneknapp/now-we-bump-statds
shaneknapp Dec 19, 2023
6c691a0
fix statsd version
shaneknapp Dec 19, 2023
81f2b84
Merge pull request #5294 from shaneknapp/fix-statsd-chart
shaneknapp Dec 19, 2023
7e0663a
add helm debugging output
shaneknapp Dec 19, 2023
7aacf5f
Merge pull request #5295 from shaneknapp/add-debug-to-helm
shaneknapp Dec 19, 2023
3503444
comment out grafana
shaneknapp Dec 19, 2023
deed5de
Merge pull request #5296 from shaneknapp/temp-remove-grafana-annotation
shaneknapp Dec 19, 2023
d566875
authenticate properly during deploy
shaneknapp Dec 19, 2023
a5e411a
Merge pull request #5297 from shaneknapp/auth-for-deploy
shaneknapp Dec 19, 2023
3658bd1
trying this
shaneknapp Dec 19, 2023
c42a331
Merge pull request #5300 from shaneknapp/CRD-install-helm
shaneknapp Dec 19, 2023
f4e3d1e
bump cert-manager
shaneknapp Dec 19, 2023
f5a2edf
Merge pull request #5301 from shaneknapp/bump-cert-manager
shaneknapp Dec 19, 2023
f10aaf2
maybe unstick builds
shaneknapp Dec 19, 2023
76f66ea
Merge pull request #5302 from shaneknapp/comment-out-CRD
shaneknapp Dec 19, 2023
2675d21
Merge pull request #5272 from shaneknapp/dh-198-bump-z2jh
shaneknapp Dec 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 30 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ orbs:
- run:
name: Install google cloud sdk
command: |
export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-363.0.0-linux-x86_64.tar.gz
export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-457.0.0-linux-x86_64.tar.gz
curl -sSL $GCLOUD_URL | tar -xzf - -C ${HOME}
# Be careful with quote ordering here. ${PATH} must not be expanded
# Don't use ~ here - bash can interpret PATHs containing ~, but most other things can't.
Expand All @@ -66,6 +66,11 @@ orbs:
# Try to tell cloud sdk to use python3
echo 'export CLOUDSDK_PYTHON=python3' >> ${BASH_ENV}

- run:
name: Install gcloud auth plugin
command: |
gcloud components install gke-gcloud-auth-plugin

- run:
name: Configure credential helper for Google Artifact Registry
command: |
Expand Down Expand Up @@ -117,9 +122,9 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v3.9-dependencies-gcloud-363-{{ checksum "requirements.txt" }}
- v3.9-dependencies-gcloud-457-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v3.9-dependencies-gcloud-363-
- v3.9-dependencies-gcloud-457-

- run:
name: install dependencies
Expand All @@ -131,7 +136,7 @@ jobs:
# Can be removed once https://github.com/docker/docker-py/issues/2225 is merged and released
pip install --upgrade git+https://github.com/docker/docker-py.git@b6f6e7270ef1acfe7398b99b575d22d0d37ae8bf

export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-363.0.0-linux-x86_64.tar.gz
export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-457.0.0-linux-x86_64.tar.gz
curl -sSL $GCLOUD_URL | tar -xzf - -C ${HOME}
# Be careful with quote ordering here. ${PATH} must not be expanded
# Don't use ~ here - bash can interpret PATHs containing ~, but most other things can't.
Expand All @@ -144,7 +149,7 @@ jobs:
- save_cache:
paths:
- ./venv
key: v3.9-dependencies-gcloud-363-{{ checksum "requirements.txt" }}
key: v3.9-dependencies-gcloud-457-{{ checksum "requirements.txt" }}

- run:
name: Authenticating with google service account for kms/sops
Expand All @@ -155,7 +160,7 @@ jobs:
- run:
name: Install helm3
command: |
curl -L https://get.helm.sh/helm-v3.6.3-linux-amd64.tar.gz | \
curl -L https://get.helm.sh/helm-v3.13.3-linux-amd64.tar.gz | \
tar -xzf -
mv linux-amd64/helm /usr/local/bin
helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
Expand All @@ -168,10 +173,16 @@ jobs:
export PULL_REQUEST_ID=$(git log -1 --pretty=%B | head -n1 | sed 's/^.*#\([0-9]*\).*/\1/')
export AUTHOR_NAME="$(git log -1 --pretty=%aN)"
export PULL_REQUEST_TITLE="$(git log --pretty=%B -1 | tail -n+3)"
python3 scripts/post-grafana-annotation.py \
--grafana-url http://grafana.datahub.berkeley.edu\
--tag deployment-start \
"$(echo -en ${PULL_REQUEST_TITLE}\\n\\n${AUTHOR_NAME}: https://github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/pull/${PULL_REQUEST_ID})"

# added by sknapp 2023-12-19 to unblock builds
# python3 scripts/post-grafana-annotation.py \
# --grafana-url http://grafana.datahub.berkeley.edu\
# --tag deployment-start \
# "$(echo -en ${PULL_REQUEST_TITLE}\\n\\n${AUTHOR_NAME}: https://github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/pull/${PULL_REQUEST_ID})"
- run:
name: Install gcloud auth plugin
command: |
gcloud components install gke-gcloud-auth-plugin

- run:
name: Deploy a11y
Expand Down Expand Up @@ -328,7 +339,7 @@ jobs:
- run:
name: install google-cloud-sdk
command: |
export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-363.0.0-linux-x86_64.tar.gz
export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-457.0.0-linux-x86_64.tar.gz
curl -sSL $GCLOUD_URL | tar -xzf - -C ${HOME}
# Be careful with quote ordering here. ${PATH} must not be expanded
# Don't use ~ here - bash can interpret PATHs containing ~, but most other things can't.
Expand All @@ -338,7 +349,7 @@ jobs:
- run:
name: Setup helm3
command: |
curl -L https://get.helm.sh/helm-v3.5.4-linux-amd64.tar.gz | \
curl -L https://get.helm.sh/helm-v3.13.3-linux-amd64.tar.gz | \
tar -xzf -
mv linux-amd64/helm /usr/local/bin
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
Expand All @@ -356,6 +367,7 @@ jobs:
- run:
name: Activate credentials for datahub cluster (fall-2019)
command: |
gcloud components install gke-gcloud-auth-plugin
sops -d -i deployments/datahub/secrets/gke-key.json
gcloud auth \
activate-service-account \
Expand All @@ -372,7 +384,7 @@ jobs:
helm upgrade \
--install --wait \
--namespace=node-placeholder node-placeholder node-placeholder \
-f node-placeholder/secrets.yaml
-f node-placeholder/secrets.yaml --debug

deploy-support:
docker:
Expand All @@ -384,7 +396,7 @@ jobs:
- run:
name: install google-cloud-sdk
command: |
export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-363.0.0-linux-x86_64.tar.gz
export GCLOUD_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-457.0.0-linux-x86_64.tar.gz
curl -sSL $GCLOUD_URL | tar -xzf - -C ${HOME}
# Be careful with quote ordering here. ${PATH} must not be expanded
# Don't use ~ here - bash can interpret PATHs containing ~, but most other things can't.
Expand All @@ -404,14 +416,15 @@ jobs:
- run:
name: Setup helm3
command: |
curl -L https://get.helm.sh/helm-v3.6.3-linux-amd64.tar.gz | \
curl -L https://get.helm.sh/helm-v3.13.3-linux-amd64.tar.gz | \
tar -xzf -
mv linux-amd64/helm /usr/local/bin
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

- run:
name: Activate credentials for datahub cluster (fall-2019)
command: |
gcloud components install gke-gcloud-auth-plugin
sops -d -i deployments/datahub/secrets/gke-key.json
gcloud auth \
activate-service-account \
Expand All @@ -430,7 +443,8 @@ jobs:
--install --wait \
--namespace=support \
support support/ \
-f support/secrets.yaml
-f support/secrets.yaml \
--set installCRDs=true --debug

workflows:
version: 2
Expand Down
3 changes: 0 additions & 3 deletions deployments/data100/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ jupyterhub:
# https://bcourses.berkeley.edu/courses/1524699/groups#tab-80607
course::1524699::group::all-admins:
admin: true
course::1527426::group::Content:
mem_limit: 4G
mem_guarantee: 4G
admin:
mem_limit: 4G
mem_guarantee: 2G
Expand Down
6 changes: 0 additions & 6 deletions deployments/data101/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,6 @@ jupyterhub:

custom:
group_profiles:
course::1528038::enrollment_type::teacher:
mem_limit: 4096M
mem_guarantee: 2048M
course::1528038::enrollment_type::ta:
mem_limit: 4096M
mem_guarantee: 2048M
# DataHub Infrastructure staff
# https://bcourses.berkeley.edu/courses/1524699/groups#tab-80607
course::1524699::group::all-admins:
Expand Down
16 changes: 0 additions & 16 deletions deployments/datahub/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,3 @@ jupyterhub:
mountPath: /home/jovyan/ugba-88
subPath: _shared/course/ugba-88
readOnly: true
course::1527534: # CE 103N, Fall 2023, issue #4999
mem_limit: 4096M
mem_guarantee: 4096M
course::1528163: # Demog 180, Fall 2023, issue #5004
mem_limit: 4096M
mem_guarantee: 4096M
course::1524680: # UGBA88, Fall 2023, issue #5071
mem_limit: 3072M
mem_guarantee: 3072M
course::1527878: # Music 30, Fall 2023, issue #5153
mem_limit: 2048M
mem_guarantee: 2048M
# Econ 144, Fall 2023, issue #5161
course::1530164::enrollment_type::teacher:
mem_limit: 2048M
mem_guarantee: 2048M
2 changes: 1 addition & 1 deletion deployments/edx/image/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ dependencies:
- gh-scoped-creds==4.1
- git+https://github.com/shaneknapp/python-popularity-contest.git@add-error-handling
- otter-grader==4.4.1
- otter-submit==0.1.1
- otter-submit==0.1.2
- sympy==1.12
7 changes: 0 additions & 7 deletions deployments/eecs/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,3 @@ jupyterhub:
guarantee: 0.1
image: {}

# read by z2jh.get_config() in hub/values.yaml
# formerly jupyterhub.hub.extraConfigMap
custom:
group_profiles:
course::1527328: # EE 120, Fall 2023, issue #4868
mem_limit: 4096M
mem_guarantee: 4096M
5 changes: 0 additions & 5 deletions deployments/r/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,3 @@ jupyterhub:
limit: 1G
image: {}

custom:
group_profiles:
course::1527100: # ESPM 157, Fall 2023, issue #4822
mem_limit: 4096M
mem_guarantee: 4096M
2 changes: 1 addition & 1 deletion hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: '1.0'
description: Deployment Chart for JupyterHub
name: hub
version: 0.0.1-0.dev.git.7076.heb3ce9bd
version: 0.0.1-0.dev.git.7126.h64800628
2 changes: 1 addition & 1 deletion hub/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ dependencies:
# get the helm chart version from here: https://github.com/jupyterhub/helm-chart
# correlate the helm chart version w/jupyterhub here:
# https://hub.jupyter.org/helm-chart/#development-releases-jupyterhub
version: 3.0.2
version: 3.2.1
repository: https://jupyterhub.github.io/helm-chart/
2 changes: 1 addition & 1 deletion hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jupyterhub:
# Generated by chartpress
image:
name: gcr.io/ucb-datahub-2018/jupyterhub-hub
tag: '0.0.1-0.dev.git.7076.heb3ce9bd'
tag: '0.0.1-0.dev.git.7126.h64800628'
networkPolicy:
enabled: true
ingress:
Expand Down
4 changes: 2 additions & 2 deletions images/hub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Should match the hub image used by version of chart in hub/requirements.yaml
# If that changes, this should be changed too!
FROM jupyterhub/k8s-hub:3.0.2
FROM jupyterhub/k8s-hub:3.2.1

USER root

RUN python3 -m pip install --no-cache git+https://github.com/berkeley-dsep-infra/canvasoauthenticator@09e7ed8
RUN python3 -m pip install --no-cache jupyterhub-ltiauthenticator==1.5.1
RUN python3 -m pip install --no-cache git+https://github.com/jupyterhub/[email protected]
#RUN python3 -m pip install --no-cache git+https://github.com/jupyterhub/[email protected]
RUN python3 -m pip install --no-cache jupyterhub-announcement
COPY logos /srv/logos

Expand Down
2 changes: 1 addition & 1 deletion node-placeholder/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.1-0.dev.git.6958.h1afe4805
version: 0.0.1-0.dev.git.7077.h95e09b06

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 3 additions & 3 deletions support/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
dependencies:
- name: prometheus-statsd-exporter
version: 0.5.0
version: 0.11.0
repository: https://prometheus-community.github.io/helm-charts
- name: prometheus
version: 15.12.0
version: 25.8.2
repository: https://prometheus-community.github.io/helm-charts
- name: grafana
version: 6.57.4
repository: https://grafana.github.io/helm-charts
- name: cert-manager
version: v1.9.1
version: v1.13.3
repository: https://charts.jetstack.io
- name: ingress-nginx
version: 4.8.3
Expand Down
2 changes: 1 addition & 1 deletion support/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cert-manager:
nodeSelector:
hub.jupyter.org/pool-name: support-pool
installCRDs: true
# installCRDs: true
cainjector:
nodeSelector:
hub.jupyter.org/pool-name: support-pool
Expand Down