Skip to content

Commit 5c611ad

Browse files
committed
prepare to rename default branch to main
1 parent 5b19dbb commit 5c611ad

File tree

14 files changed

+54
-54
lines changed

14 files changed

+54
-54
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ name: Continuous Deployment
1212
# ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency
1313
concurrency: deploy
1414

15-
# Only trigger the workflow when pushing to master or a label is applied to a
15+
# Only trigger the workflow when pushing to main or a label is applied to a
1616
# Pull Request
1717
on:
1818
push:
1919
branches:
20-
- master
20+
- main
2121
- test-this-pr/**
2222
pull_request:
2323
types: [labeled]
@@ -63,10 +63,10 @@ jobs:
6363
# images that the jobs to deploy to the production environments depend on.
6464
staging-deploy:
6565
# Only run the job if the 'test-staging' label is present OR if the event
66-
# is a push to master
66+
# is a push to main
6767
if: |
6868
(github.event.label.name == 'test-staging') ||
69-
((github.event_name == 'push') && (github.ref == 'refs/heads/master')) ||
69+
((github.event_name == 'push') && (github.ref == 'refs/heads/main')) ||
7070
((github.event_name == 'push') && contains(github.ref, 'test-this-pr'))
7171
runs-on: ubuntu-20.04
7272
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-preventing-a-specific-failing-matrix-job-from-failing-a-workflow-run
@@ -144,7 +144,7 @@ jobs:
144144

145145
- name: "Stage 1: Install and setup helm ${{ env.HELM_VERSION }}"
146146
run: |
147-
curl -sf https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | DESIRED_VERSION=${HELM_VERSION} bash
147+
curl -sf https://raw.githubusercontent.com/helm/helm/HEAD/scripts/get-helm-3 | DESIRED_VERSION=${HELM_VERSION} bash
148148
helm dependency update ./mybinder
149149
150150
# Action Repo: https://github.com/sliteteam/github-action-git-crypt-unlock
@@ -195,8 +195,8 @@ jobs:
195195
# - https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds
196196
needs: staging-deploy
197197

198-
# Only run job if the event is a push to master
199-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
198+
# Only run job if the event is a push to main
199+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
200200

201201
runs-on: ubuntu-20.04
202202

@@ -285,7 +285,7 @@ jobs:
285285

286286
- name: "Stage 1: Install and setup helm ${{ env.HELM_VERSION }}"
287287
run: |
288-
curl -sf https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | DESIRED_VERSION=${HELM_VERSION} bash
288+
curl -sf https://raw.githubusercontent.com/helm/helm/HEAD/scripts/get-helm-3 | DESIRED_VERSION=${HELM_VERSION} bash
289289
helm dependency update ./mybinder
290290
291291
- name: "Stage 2: Unlock git-crypt secrets"

.github/workflows/watch-dependencies.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
uses: peter-evans/[email protected]
9595
# Don't try open PRs in forks or when the job is triggered by a push to
9696
# a branch other than the default branch.
97-
if: github.repository == 'jupyterhub/mybinder.org-deploy' && (github.event_name != 'push' || github.ref == 'refs/heads/master')
97+
if: github.repository == 'jupyterhub/mybinder.org-deploy' && (github.event_name != 'push' || github.ref == 'refs/heads/main')
9898
with:
9999
token: "${{ secrets.jupyterhub_bot_pat }}"
100100
author: JupterHub Bot Account <[email protected]>
@@ -131,29 +131,29 @@ jobs:
131131
#
132132
- chart_dep_name: binderhub
133133
chart_dep_chart_changelog_url: ""
134-
chart_dep_app_changelog_url: "https://github.com/jupyterhub/binderhub/blob/master/CHANGES.md"
135-
chart_dep_source_url: "https://github.com/jupyterhub/binderhub/tree/master/helm-chart"
134+
chart_dep_app_changelog_url: "https://github.com/jupyterhub/binderhub/blob/HEAD/CHANGES.md"
135+
chart_dep_source_url: "https://github.com/jupyterhub/binderhub/tree/HEAD/helm-chart"
136136
chart_dep_devel_flag: "--devel"
137137
github_repo: jupyterhub/binderhub
138138

139139
- chart_dep_name: ingress-nginx
140-
chart_dep_chart_changelog_url: "https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx#upgrading-chart"
141-
chart_dep_app_changelog_url: "https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md"
142-
chart_dep_source_url: "https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx"
140+
chart_dep_chart_changelog_url: "https://github.com/kubernetes/ingress-nginx/tree/HEAD/charts/ingress-nginx#upgrading-chart"
141+
chart_dep_app_changelog_url: "https://github.com/kubernetes/ingress-nginx/blob/HEAD/Changelog.md"
142+
chart_dep_source_url: "https://github.com/kubernetes/ingress-nginx/tree/HEAD/charts/ingress-nginx"
143143
chart_dep_devel_flag: ""
144144
github_repo: ""
145145

146146
- chart_dep_name: prometheus
147-
chart_dep_chart_changelog_url: "https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus#upgrading-chart"
148-
chart_dep_app_changelog_url: "https://github.com/prometheus/prometheus/blob/master/CHANGELOG.md"
149-
chart_dep_source_url: https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus
147+
chart_dep_chart_changelog_url: "https://github.com/prometheus-community/helm-charts/tree/HEAD/charts/prometheus#upgrading-chart"
148+
chart_dep_app_changelog_url: "https://github.com/prometheus/prometheus/blob/HEAD/CHANGELOG.md"
149+
chart_dep_source_url: https://github.com/prometheus-community/helm-charts/tree/HEAD/charts/prometheus
150150
chart_dep_devel_flag: ""
151151
github_repo: ""
152152

153153
- chart_dep_name: grafana
154154
chart_dep_chart_changelog_url: "https://github.com/grafana/helm-charts/tree/main/charts/grafana#upgrading-an-existing-release-to-a-new-major-version"
155-
chart_dep_app_changelog_url: "https://github.com/grafana/grafana/blob/master/CHANGELOG.md"
156-
chart_dep_source_url: "https://github.com/grafana/helm-charts/tree/main/charts/grafana"
155+
chart_dep_app_changelog_url: "https://github.com/grafana/grafana/blob/HEAD/CHANGELOG.md"
156+
chart_dep_source_url: "https://github.com/grafana/helm-charts/tree/HEAD/charts/grafana"
157157
chart_dep_devel_flag: ""
158158
github_repo: ""
159159

@@ -223,7 +223,7 @@ jobs:
223223
uses: peter-evans/[email protected]
224224
# Don't try open PRs in forks or when the job is triggered by a push to
225225
# a branch other than the default branch.
226-
if: github.repository == 'jupyterhub/mybinder.org-deploy' && (github.event_name != 'push' || github.ref == 'refs/heads/master')
226+
if: github.repository == 'jupyterhub/mybinder.org-deploy' && (github.event_name != 'push' || github.ref == 'refs/heads/main')
227227
with:
228228
token: "${{ secrets.jupyterhub_bot_pat }}"
229229
author: JupterHub Bot Account <[email protected]>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Amongst other things the guide contains:
3535
- [How to do a deployment](https://mybinder-sre.readthedocs.io/en/latest/deployment/how.html)
3636
- [What happens during a deployment?](https://mybinder-sre.readthedocs.io/en/latest/deployment/what.html)
3737
- [Incident reports for past incidents](https://mybinder-sre.readthedocs.io/en/latest/incident-reports/incident_reports_toc.html)
38-
- [Incident report template](https://github.com/jupyterhub/mybinder.org-deploy/blob/master/docs/source/incident-reports/template-incident-report.md)
38+
- [Incident report template](https://github.com/jupyterhub/mybinder.org-deploy/blob/HEAD/docs/source/incident-reports/template-incident-report.md)
3939

4040
## Key Links
4141

docs/source/analytics/events-archive.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ file named ``events-<YYYY>-<MM>-<DD>.jsonl`` that contains data for
2727
all the launches performed by mybinder.org on that date. All timestamps
2828
and dates are in `UTC <https://en.wikipedia.org/wiki/Coordinated_Universal_Time>`_.
2929

30-
Each line is a JSON object that conforms to `this JSON Schema
31-
<https://github.com/jupyterhub/binderhub/blob/master/binderhub/event-schemas/launch.json>`_.
30+
Each line is a JSON object that conforms to `this JSON Schema
31+
<https://github.com/jupyterhub/binderhub/blob/HEAD/binderhub/event-schemas/launch.json>`_.
3232
A description of these fields is provided below.
3333

3434
#. **schema** and **version**
@@ -54,14 +54,14 @@ A description of these fields is provided below.
5454
#. **provider**
5555

5656
Where the launched repository was hosted. Current options are ``GitHub``,
57-
``GitLab`` and ``Git``.
57+
``GitLab`` and ``Git``.
5858

5959
#. **spec**
6060

6161
Specification identifying the repository / commit immutably & uniquely in
6262
the provider.
6363

64-
For GitHub, it is ``<repo>/<commit-spec>``. Example would be ``yuvipanda/example-requirements/master``.
64+
For GitHub, it is ``<repo>/<commit-spec>``. Example would be ``yuvipanda/example-requirements/HEAD``.
6565
For GitLab, it is ``<repo>/<commit-spec>``, except ``repo`` is URL escaped.
6666
For raw Git repositories, it is ``<repo-url>/<commit-spec>``. ``repo-url`` is full URL escaped
6767
to the repo and ``commit-spec`` is a full commit hash.
@@ -75,22 +75,22 @@ Example code
7575
------------
7676

7777
Some popular ways of reading this event data into a useful data structure are
78-
provided here.
78+
provided here.
7979

8080
``pandas``
8181
~~~~~~~~~~
8282

8383
.. code-block:: python
8484
8585
import pandas as pd
86-
df = pd.read_json("https://archive.analytics.mybinder.org/events-2018-11-05.jsonl", lines=True)
86+
df = pd.read_json("https://archive.analytics.mybinder.org/events-2018-11-05.jsonl", lines=True)
8787
df
8888
8989
Plain Python
9090
~~~~~~~~~~~~
9191

9292
.. code-block:: python
93-
93+
9494
import requests
9595
import json
9696

docs/source/components/cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ the name of the repository + the commit hash. This lets us check if
168168
the image has already been built, and if so, we can skip the building step.
169169

170170
The code for generating the image name from repository information is
171-
in [binderhub's builder.py](https://github.com/jupyterhub/binderhub/blob/master/binderhub/builder.py),
171+
in [binderhub's builder.py](https://github.com/jupyterhub/binderhub/blob/HEAD/binderhub/builder.py),
172172
under `_generate_build_name`.
173173

174174
Sometimes, we _do_ want to invalidate all previously built images - for example,

docs/source/components/ingress.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ we decided to use nginx instead for the following reasons:
2929

3030
### Installation
3131

32-
nginx-ingress is installed using the [nginx-ingress helm chart](https://github.com/helm/charts/tree/master/stable/nginx-ingress).
32+
nginx-ingress is installed using the [nginx-ingress helm chart](https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx).
3333
This installs the following components:
3434

3535
1. `nginx-ingress-controller` - keeps the HTTPS rules in sync with `Ingress`
@@ -55,7 +55,7 @@ The following ingress objects currently exist:
5555
- `jupyterhub` - Directs traffic to `hub.mybinder.org`.
5656
The zero-to-jupyterhub guide has more [documentation](https://zero-to-jupyterhub.readthedocs.io/en/latest/administrator/advanced.html#ingress).
5757
- `binderhub` - Directs traffic to `mybinder.org`. You can find more details
58-
about this in the [binderhub helm chart](https://github.com/jupyterhub/binderhub/tree/master/helm-chart).
58+
about this in the [binderhub helm chart](https://github.com/jupyterhub/binderhub/tree/HEAD/helm-chart).
5959
- `redirector` - Directs traffic to the HTTP redirector we run for `mybinder.org`.
6060
This helps do redirects such as `docs.mybinder.org` or `beta.mybinder.org`.
6161
The list of redirects is configured in `mybinder/values.yaml`. The code
@@ -84,7 +84,7 @@ Kube-lego is deprecated, and we should move to
8484

8585
### Installation
8686

87-
kube-lego is installed using the [kube-lego](https://github.com/helm/charts/tree/master/stable/kube-lego).
87+
kube-lego is installed using the [kube-lego](https://github.com/helm/charts/tree/HEAD/stable/kube-lego).
8888

8989
### Configuration
9090

docs/source/components/metrics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ these containers using right now', etc. These are usually prefixed with
8787

8888
#### HTTP request information
8989

90-
We use the [nginx-ingress helm chart](https://github.com/helm/charts/tree/master/stable/nginx-ingress)
90+
We use the [nginx-ingress helm chart](https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx)
9191
to let all HTTP traffic into our cluster. This allows us to use
9292
the [nginx VTS exporter](https://hnlq715.github.io/nginx-vts-exporter/)
9393
to collect information in prometheus about requests / responses.
@@ -103,7 +103,7 @@ These are currently somewhat limited, and prefixed with `binderhub_`
103103
### Configuration
104104

105105
Prometheus is installed using the
106-
[prometheus helm chart](https://github.com/helm/charts/tree/master/stable/prometheus).
106+
[prometheus helm chart](https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus).
107107
This installs the following components:
108108

109109
1. Prometheus server (storage + querying)
@@ -115,6 +115,6 @@ kubernetes component), and the prometheus helm chart has configuration
115115
that adds those as targets.
116116

117117
You can see the available options for configuring the prometheus
118-
helm chart in its [values.yaml](https://github.com/helm/charts/blob/master/stable/prometheus/values.yaml)
118+
helm chart in its [values.yaml](https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus/values.yaml)
119119
file. You can see the current configuration we have under the `prometheus`
120120
section of `mybinder/values.yaml`, `config/prod.yaml` and `config/staging.yaml`.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
html_context = {
4747
"github_user": "jupyterhub",
4848
"github_repo": "mybinder.org-deploy",
49-
"github_version": "master",
49+
"github_version": "HEAD",
5050
"doc_path": "docs/source",
5151
}
5252

docs/source/deployment/how.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Deployments to mybinder.org should be:
2929
not require specific sysadmin knowledge.
3030

3131
3. **Timely**. We deploy changes to repo2docker and BinderHub within a few days of
32-
them being merged into master.
32+
them being merged into main.
3333

3434
These are all **aspirational** - we strive for hitting the above points,
3535
but recognize that work and life may get in the way of doing this perfectly.
@@ -98,7 +98,7 @@ The following lines describe how to point mybinder.org to the new repo2docker im
9898

9999
1. Merge changes to repo2docker.
100100
2. Open the [branches page for repo2docker](https://travis-ci.org/jupyter/repo2docker/branches).
101-
And click on the number for the latest build on "Master".
101+
And click on the number for the latest build on "main".
102102
3. Wait for the build for your PR merge to pass (it will say "#NNN passed").
103103
If it does, then continue to step 4. If it doesn't, take a look at the error message, and debug as needed
104104
until they pass.
@@ -144,15 +144,15 @@ The following lines describe how to point mybinder.org to the new repo2docker im
144144
### Deploying to _both_ `staging` then `prod`
145145

146146
Deploying a change involves making a PR with your desired change and merging it to
147-
master.
147+
main.
148148

149149
1. Make the changes as described above [on your fork of this repo](https://github.com/jupyterhub/mybinder.org-deploy).
150150
2. Keep track of the **hashes** that were updated. You should have both the _old_ hash that
151151
was replaced, and the _new_ hash that replaced it.
152152
3. If you haven't already, run the `list_new_commits.py` script in the `scripts/`
153153
folder. This will print out a URL that describes the changes made to both
154154
BinderHub and repo2docker.
155-
4. Make a PR to the `master` branch with the changes you want.
155+
4. Make a PR to the `main` branch with the changes you want.
156156

157157
- Name the PR like so: `<TOOL-CHANGED>: <OLD-HASH>...<NEW-HASH>`
158158
- In the description of the PR, paste the full URL that you printed out
@@ -197,10 +197,10 @@ In this scenario, a user with `OWNER`, `COLLABORATOR` or `MEMBER` association wi
197197
The final option to deploy to staging only is by editing `staging`-only config files. To deploy
198198
to staging only, follow these steps:
199199

200-
1. Make changes to [`config/staging.yaml`](https://github.com/jupyterhub/mybinder.org-deploy/blob/master/config/staging.yaml)
200+
1. Make changes to [`config/staging.yaml`](https://github.com/jupyterhub/mybinder.org-deploy/blob/HEAD/config/staging.yaml)
201201
on your fork. This file contains configuration for Helm that will **override**
202202
whatever is in `mybinder/values.yaml`.
203-
2. Make a PR to the `master` branch, and review, accept, and merge this PR.
203+
2. Make a PR to the `main` branch, and review, accept, and merge this PR.
204204
**In this case, you can merge your own PR**.
205205
This will make GitHub Actions deploy the changes
206206
to [staging.mybinder.org](https://staging.mybinder.org), and run tests in the `tests/`

docs/source/deployment/what.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ We run the tests in `tests/` with `pytest` to validate that the deployment succe
248248
These try to be as thorough as possible, simulating the tests a human would do to
249249
ensure that the site works as required.
250250

251-
Look at the docstrings in the files under [`tests/`](https://github.com/jupyterhub/mybinder.org-deploy/tree/master/tests)
251+
Look at the docstrings in the files under [`tests/`](https://github.com/jupyterhub/mybinder.org-deploy/tree/HEAD/tests)
252252
to see what are the tests being run.
253253

254254
If all the tests succeed, we can consider the staging deployment success!

0 commit comments

Comments
 (0)