Skip to content

Commit

Permalink
Qa4sm 2 (#400)
Browse files Browse the repository at this point in the history
* 'old_ui' changed to django

* release procedure updated

* release notes and version number updated

* docker image names updated
  • Loading branch information
sheenaze authored Feb 17, 2022
1 parent eb2d843 commit 7ab971a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 28 deletions.
8 changes: 4 additions & 4 deletions docker/compose/prod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
image: "rabbitmq"

web:
image: "awst/qa4sm:1.8.2"
image: "awst/qa4sm:2.0.0"
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
PGPASSWORD: "${POSTGRES_PASSWORD}"
Expand All @@ -43,14 +43,14 @@ services:
target: /var/lib/qa4sm-web-val/valentina/data

proxy:
image: "awst/qa4sm-proxy:1.8.2"
image: "awst/qa4sm-proxy:2.0.0"
ports:
- "8080:80"
ui:
image: "awst/qa4sm-ui:1.8.2"
image: "awst/qa4sm-ui:2.0.0"

worker-1:
image: "awst/qa4sm-worker:1.8.2"
image: "awst/qa4sm-worker:2.0.0"
environment:
QA4SM_DB_HOST: "${QA4SM_DB_HOST}"
QA4SM_CELERY_WORKERS: "${QA4SM_WORKER_THREAD_PER_NODE}"
Expand Down
14 changes: 6 additions & 8 deletions docs/release_procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Updating dependency versions can be done at any time during the development but

## Dependency version management

1. Create a new environment, e.g. with the `environment/recreate_environment_file.sh` script or by updating single python packages in `environment/qa4sm_env.yml`.
1. Create a new environment, e.g. with the `environment/create_conda_env.sh` script or by updating single python packages in `environment/qa4sm_env.yml`.
2. Activate the new environment `conda activate new_env` (if the path has not been changed: new_env = /var/lib/qa4sm-conda).
3. Test for regressions/problems by running all integration/unit tests with `pytest -m ""` and fix all issues (in particular those coming from updated dependencies).
4. Test for regressions manually by inspecting all pages and all major functionality of the webapp.
Expand Down Expand Up @@ -54,7 +54,7 @@ If you have access to the AWST buildserver, you can do steps 1-4 by running buil
* The app has changed significantly so much so that backward compatibility with older versions gets broken.
* Large set of new features
* At times, new UI can also be released as major release.
* minor: Indicates the release of one or more newer features or major enhancements representing a set of bug fixes on previous major release. Minor releases do not break the backward compatibility of the product.
* minor: Indicates the release of one or more new features or major enhancements representing a set of bug fixes on previous major release. Minor releases do not break the backward compatibility of the product.
* patch: Indicates one or more bug fixes related with one or more existing features which need to be released in between minor releases. Patch release never releases a new functionality.

Source: <https://vitalflux.com/software-build-release-versioning-strategy/>
Expand All @@ -63,12 +63,10 @@ If you have access to the AWST buildserver, you can do steps 1-4 by running buil

6. Update the version number in `valentina/version.py`. Commit your release notes and version increase.

7. Commit your changes again and create an annotated tag using the following command:

git tag -a v1.1.1 -m "Version 1.1.1, created YYYY-mm-dd"

8. Deploy on the ops system from the tag
9. Don't forget to set the data paths again using the `python manage.py setdatasetpaths` command.
7. Update the `docker/compose/prod/docker-compose.yml` file with the new version number. You need to change the image version for the web, proxy and worker-1 containers at line number 22, 46 and 50. For example: `awst/qa4sm-proxy:1.2.3`. All 3 mentioned containers should have the same version. The db, redis and rabbitmq containers should be left untouched.
8. Commit your changes and create a git tag with the chosen version number. e.g.: `v1.2.3`.
9. Update Jenkins jobs with the current version number.
10. Run QA4SM_Build_Prod_base_image and then QA4SM_Deploy_to_prod job. Restart the instance.


## Release notes template
Expand Down
19 changes: 5 additions & 14 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
QA4SM v1.8.2 - Release notes 2022-01-07
QA4SM v2.0.0 - Release notes 2022-02-17
=======================================================

# Improvements
# Major changes

1. Pytesmo and Numpy versions updated

QA4SM v1.8.1 - Release notes 2021-12-01
=======================================================

# Improvements

1. Memory issues handled

QA4SM v1.8.0 - Release notes 2021-11-30
=======================================================
1. New User Interface

# New features

1. Sentinel-1 radar high resolution data now available for validation.
1. Automatic update of validation progress
2. Possibility of copying a validation belonging to another user
2 changes: 1 addition & 1 deletion valentina/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

urlpatterns = [
path('', RedirectView.as_view(url=settings.SITE_URL+'/ui/home/')),
path('old_ui/', include('validator.urls')),
path('django/', include('validator.urls')),
path('api/', include('api.urls')),
# redirection to the new result page, it is needed for old published validations
path('result/<uuid:result_uuid>/', redirect_result_page),
Expand Down
2 changes: 1 addition & 1 deletion valentina/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
APP_VERSION = '1.8.2'
APP_VERSION = '2.0.0'

0 comments on commit 7ab971a

Please sign in to comment.