Skip to content

Commit fe21509

Browse files
authored
Merge pull request #3170 from SwissDataScienceCenter/release/v1.8.0
chore: release v1.8.0
2 parents 038c114 + 873861a commit fe21509

File tree

315 files changed

+8208
-8698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

315 files changed

+8208
-8698
lines changed

.actions-repo

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ updates:
77
commit-message:
88
prefix: "build(deps): "
99
include: "scope"
10-
target-branch: "dependabot-updates"
11-
open-pull-requests-limit: 1
10+
target-branch: "develop"
11+
open-pull-requests-limit: 0
1212
- package-ecosystem: "github-actions"
1313
directory: "/"
1414
schedule:

.github/workflows/acceptance-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
if: github.event.action != 'closed'
1616
steps:
17-
- uses: rokroskar/[email protected].0
17+
- uses: rokroskar/[email protected].3
1818
env:
1919
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2020
check-deploy:
@@ -31,7 +31,7 @@ jobs:
3131
persist: ${{ steps.deploy-comment.outputs.persist}}
3232
steps:
3333
- id: deploy-comment
34-
uses: SwissDataScienceCenter/renku-actions/check-pr-description@v1.0.0
34+
uses: SwissDataScienceCenter/renku-actions/check-pr-description@v1.2.0
3535
with:
3636
string: /deploy
3737
pr_ref: ${{ github.event.number }}
@@ -43,7 +43,7 @@ jobs:
4343
name: renku-ci-rp-${{ github.event.number }}
4444
steps:
4545
- name: deploy-pr
46-
uses: SwissDataScienceCenter/renku-actions/deploy-renku@v1.0.0
46+
uses: SwissDataScienceCenter/renku-actions/deploy-renku@v1.2.0
4747
env:
4848
DOCKER_PASSWORD: ${{ secrets.RENKU_DOCKER_PASSWORD }}
4949
DOCKER_USERNAME: ${{ secrets.RENKU_DOCKER_USERNAME }}
@@ -68,15 +68,15 @@ jobs:
6868
renku_ui: "${{ needs.check-deploy.outputs.renku-ui }}"
6969
extra_values: "${{ needs.check-deploy.outputs.extra-values }}"
7070
- name: Check existing renkubot comment
71-
uses: peter-evans/find-comment@v1
71+
uses: peter-evans/find-comment@v2
7272
id: findcomment
7373
with:
7474
issue-number: ${{ github.event.pull_request.number }}
7575
comment-author: "RenkuBot"
7676
body-includes: "You can access the deployment of this PR at"
7777
- name: Create comment pre deploy
7878
if: steps.findcomment.outputs.comment-id == 0
79-
uses: peter-evans/create-or-update-comment@v1
79+
uses: peter-evans/create-or-update-comment@v2
8080
with:
8181
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }}
8282
issue-number: ${{ github.event.pull_request.number }}
@@ -88,7 +88,7 @@ jobs:
8888
if: ${{ github.event.action != 'closed' && needs.check-deploy.outputs.pr-contains-string == 'true' && needs.check-deploy.outputs.test-enabled == 'true' }}
8989
needs: [check-deploy, deploy-pr]
9090
steps:
91-
- uses: SwissDataScienceCenter/renku-actions/test-renku@v1.0.0
91+
- uses: SwissDataScienceCenter/renku-actions/test-renku@v1.2.0
9292
with:
9393
kubeconfig: ${{ secrets.RENKUBOT_DEV_KUBECONFIG }}
9494
renku-release: renku-ci-rp-${{ github.event.number }}
@@ -103,7 +103,7 @@ jobs:
103103
runs-on: ubuntu-20.04
104104
steps:
105105
- name: renku teardown
106-
uses: SwissDataScienceCenter/renku-actions/cleanup-renku-ci-deployments@v1.0.0
106+
uses: SwissDataScienceCenter/renku-actions/cleanup-renku-ci-deployments@v1.2.0
107107
env:
108108
HELM_RELEASE_REGEX: "^renku-ci-rp-${{ github.event.number }}$"
109109
GITLAB_TOKEN: ${{ secrets.DEV_GITLAB_TOKEN }}

.github/workflows/cheatsheet.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Create cheatsheet
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
tags:
8+
- "v*.*.*"
9+
env:
10+
DEPENDENCY_CACHE_PREFIX: "v2"
11+
NETWORK_CACHE_PREFIX: "v1"
12+
jobs:
13+
cheatsheet:
14+
runs-on: ubuntu-latest
15+
if: "'refs/heads/master' != github.ref && 'refs/heads/develop' != github.ref && !startsWith(github.ref, 'refs/tags/')"
16+
steps:
17+
- uses: actions/[email protected]
18+
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
19+
- name: Set up Python 3.9
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: 3.9
23+
- name: Install xetex
24+
run: |
25+
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy main restricted multiverse universe"
26+
sudo apt-get update -y
27+
sudo apt-get install -y -t jammy texlive-xetex
28+
29+
- uses: actions/cache@master
30+
id: cache
31+
with:
32+
path: |
33+
${{ env.pythonLocation }}
34+
renku/templates
35+
key: ${{env.CACHE_PREFIX}}-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{hashFiles('poetry.lock')}}-${{hashFiles('build.py')}}
36+
- name: Install dependencies
37+
if: steps.cache.outputs.cache-hit != 'true'
38+
run: |
39+
python -m pip install --upgrade pip
40+
python -m pip install coveralls poetry wheel twine poetry-dynamic-versioning==0.17.1
41+
poetry-dynamic-versioning
42+
python -m pip install .[all]
43+
- name: Install renku into cache
44+
if: steps.cache.outputs.cache-hit == 'true'
45+
run: |
46+
poetry-dynamic-versioning
47+
python -m pip install --no-deps .
48+
- name: Set Git config
49+
run: |
50+
git config --global --add user.name "Renku Bot"
51+
git config --global --add user.email "[email protected]"
52+
- name: Build cheatsheet
53+
run: |
54+
sphinx-build -b latex -c docs/cheatsheet/ docs docs/latex/ -W
55+
cd docs/latex/
56+
xelatex cheatsheet
57+
cat <(md5sum cheatsheet.tex) <(md5sum sdsc_cheatsheet.cls) > ../cheatsheet_hash_new
58+
cd ../..
59+
env:
60+
CHEATSHEET_TARGET: rp
61+
- name: Build cheatsheet json
62+
run: |
63+
sphinx-build -b json -c docs/cheatsheet/ docs docs/json/ -W
64+
cd docs/json/
65+
python -c 'import json; print(json.dumps(json.loads(json.load(open("cheatsheet.fjson", "r"))["body"]), indent=2, sort_keys=True))' > cheatsheet.json
66+
cat <(md5sum cheatsheet.json) > ../cheatsheet_json_hash_new
67+
cd ../..
68+
- name: Publish cheatsheet if changed
69+
id: publish-pdf
70+
if: ${{ hashFiles('docs/cheatsheet_hash') != hashFiles('docs/cheatsheet_hash_new') }}
71+
run: |
72+
cat docs/cheatsheet_hash
73+
cat docs/cheatsheet_hash_new
74+
cd docs
75+
rm cheatsheet_hash
76+
mv cheatsheet_hash_new cheatsheet_hash
77+
cp latex/cheatsheet.pdf _static/cheatsheet/
78+
git add cheatsheet_hash _static/cheatsheet/cheatsheet.pdf
79+
git commit -m "chore: Update cheatsheet pdf"
80+
- name: Publish UI cheatsheet if changed
81+
id: publish-json
82+
if: ${{ hashFiles('docs/cheatsheet_json_hash') != hashFiles('docs/cheatsheet_json_hash_new') }}
83+
run: |
84+
cat docs/cheatsheet_json_hash
85+
cat docs/cheatsheet_json_hash_new
86+
cd docs
87+
rm cheatsheet_json_hash
88+
mv cheatsheet_json_hash_new cheatsheet_json_hash
89+
cp json/cheatsheet.json _static/cheatsheet/
90+
git add cheatsheet_json_hash _static/cheatsheet/cheatsheet.json
91+
git commit -m "chore: Update cheatsheet json"
92+
- name: Push changes
93+
uses: ad-m/github-push-action@master
94+
if: (steps.publish-pdf.outcome != 'Skipped' || steps.publish-json.outcome != 'Skipped) && success()
95+
with:
96+
github_token: ${{ secrets.GITHUB_TOKEN }}
97+
branch: ${{ github.ref }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Combine Dependabot PRs"
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
combine-prs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/[email protected]
10+
with:
11+
fetch-depth: 0
12+
token: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"
13+
- name: Setup local branch and merge tool
14+
run: |
15+
git branch --track dependabot-updates origin/dependabot-updates
16+
echo "poetry.lock merge=ours" >> .git/info/attributes
17+
git config merge.ours.driver true
18+
- uses: mark-hingston/combine-dependabot-prs@main
19+
with:
20+
branchPrefix: "dependabot"
21+
mustBeGreen: false
22+
combineBranchName: "combined-prs"
23+
includeLabel: ""
24+
ignoreLabel: "nocombine"
25+
baseBranch: "develop"
26+
openPR: true
27+
allowSkipped: false
28+
closeOnceCombined: true
29+
githubToken: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ jobs:
77
triage:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/labeler@v2
10+
- uses: actions/labeler@v4.0.2
1111
with:
1212
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/publish_shacl.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3.1.0
1515
with:
1616
fetch-depth: 0
1717
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
1818
- name: Set up Python
19-
uses: actions/setup-python@v1
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: 3.7
2222
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: "Create Release PR"
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: New release version
7+
type: string
8+
required: true
9+
10+
jobs:
11+
create-release-pr:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/[email protected]
15+
with:
16+
fetch-depth: 0
17+
token: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"
18+
ref: 'develop'
19+
- uses: actions/setup-node@v3
20+
- name: Create Branch
21+
run: git checkout -b "release/v${{ github.event.inputs.version }}"
22+
- name: Merge Master
23+
run: git merge origin/master
24+
- name: Install dependencies
25+
run: |
26+
sudo add-apt-repository -y ppa:rmescandon/yq
27+
sudo apt-get update -y
28+
sudo apt-get install -y pandoc yq
29+
npm install -g conventional-changelog-cli
30+
- name: Update changelog
31+
id: changelog
32+
run: |
33+
echo '{"version": "${{ github.event.inputs.version }}"}' > context.json
34+
conventional-changelog -r 1 -p angular -c context.json | pandoc --from markdown --to rst | sed -e '/=======/r /dev/stdin' -e 's/=======/=======\n/' -i CHANGES.rst
35+
conventional-changelog -r 1 -p angular -c context.json > release_body.md
36+
rm context.json
37+
- name: Update version.py
38+
run: |
39+
sed -ri 's/__version__ = "[0-9.]+"/__version__ = "${{ github.event.inputs.version }}"/g' renku/version.py
40+
- name: Update Chart version
41+
run: |
42+
yq eval -i '.version = "${{ github.event.inputs.version }}"' helm-chart/renku-core/Chart.yaml
43+
- name: Update Values file version
44+
run: |
45+
yq eval -i '.versions.latest.image.tag = "v${{ github.event.inputs.version }}"' helm-chart/renku-core/values.yaml
46+
- name: commit changes
47+
run: |
48+
git config --global --add user.name "Renku Bot"
49+
git config --global --add user.email "[email protected]"
50+
git config push.autoSetupRemote true
51+
git add helm-chart/renku-core/values.yaml helm-chart/renku-core/Chart.yaml renku/version.py CHANGES.rst
52+
git commit -m "chore: release v${{ github.event.inputs.version }}"
53+
git push
54+
- uses: ncipollo/release-action@v1
55+
with:
56+
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }}
57+
draft: true
58+
bodyFile: "release_body.md"
59+
tag: "v${{ github.event.inputs.version }}"
60+
name: "v${{ github.event.inputs.version }}"
61+
commit: "master"
62+
- name: Create Pull Request
63+
uses: actions/github-script@v6
64+
with:
65+
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }}
66+
script: |
67+
const { repo, owner } = context.repo;
68+
const result = await github.rest.pulls.create({
69+
title: 'chore: release v${{ github.event.inputs.version }}',
70+
owner,
71+
repo,
72+
head: 'release/v${{ github.event.inputs.version }}',
73+
base: 'master',
74+
body: [
75+
'This PR is auto-generated by',
76+
'[actions/github-script](https://github.com/actions/github-script).'
77+
].join('\n')
78+
});
79+
github.rest.issues.addLabels({
80+
owner,
81+
repo,
82+
issue_number: result.data.number,
83+
labels: ['feature', 'automated pr']
84+
});

.github/workflows/semantic_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
main:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: amannn/action-semantic-pull-request@v1.1.1
13+
- uses: amannn/action-semantic-pull-request@v4.6.0
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)