Project

General

Profile

Release workflow » History » Version 80

Alexander Watzinger, 2024-09-19 19:03

1 79
h1. Release workflow
2
3
[[Major release notes]]
4
5
h2. Prepare
6
7
* [[Standards#Tests|Tests]], check coverage
8
* [[Standards#Mypy|Mypy]] check
9
* [[Standards#Pylint|Pylint]] check
10
* [[Translations]]
11
<pre>
12
pybabel extract -F openatlas/translations/babel.cfg -k lazy_gettext -o openatlas/translations/messages.pot .
13
pybabel update -i openatlas/translations/messages.pot -d openatlas/translations
14
</pre>
15
* Update version in *config/default.py*
16
* Update model image in application and Sphinx
17
* [[Sphinx_documentation|Sphinx]]: update manual, version, check links with uncommenting the print line in *manual()* at *openatlas/display/util2.py*
18
<pre>
19
sphinx-build ./sphinx/source/ openatlas/static/manual
20
</pre>
21
* Update changelog, release date
22
* If new packages, add to
23
** Install notes
24
** Upgrade notes
25
** requirements.txt
26
** install/Dockerfile 
27
* Update upgrade.md, upgrade SQL and installation notes
28
* Prepare newsletter, news
29
30
h2. Release
31
32
* Git branches
33
** merge *release_candidate* to *main*
34
** remove *release_candidate*
35
** merge *main* to *develop*
36
** raise version in *develop*
37
* Push to GitHub
38
* Upgrade demo versions, if database upgrades:
39
<pre>
40
pg_dump openatlas_demo > /var/lib/postgresql/openatlas_demo.sql
41
pg_dump openatlas_demo_dev > /var/lib/postgresql/openatlas_demo_dev.sql
42
</pre>
43
* Test demo
44
* Post news
45
* Upgrade CRAWS, ACDH-CH and NHM instances
46
<pre>
47
git pull origin main
48
python3 install/upgrade/database_upgrade.py
49
</pre>
50
** Download newest database dump
51
** Send newsletter
52
** Raise version in the online versions list
53
54
h2. Post release
55
56
* Check if GitHub tests passed (restart if not)
57
* Update Redmine roadmap: close version after adding release date
58
* Add news at openatlas.eu
59
* Git tag
60
* Push main and tags to GitHub, GitLab and Bitbucket
61
* Update GitHub latest release
62
* Update stats in wiki
63
* Post news in chat