This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #711 from sardana-org/release-Jan18
Release Jan18
- Loading branch information
Showing
101 changed files
with
3,856 additions
and
1,391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[flake8] | ||
# E129 is ignored to fulfill with PEP8 which allow the same indentation of | ||
# multi conditional lines ("if" statement) and the code nested inside of the | ||
# "if" statment. More details in: | ||
# https://github.com/sardana-org/sardana/pull/551#issuecomment-338572275 | ||
# | ||
# The default configuration ignores: E121, E123, E126, E133, E226, E241, | ||
# E242, E704 and W503 so ignore them here as well. See more details in: | ||
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes | ||
ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704 and W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
# How to release (draft) | ||
|
||
This is a guide for sardana release managers: it details the steps for making | ||
an official release, including a checklist of stuff that should be manually | ||
tested. | ||
|
||
## The release process | ||
|
||
1. During all the development, use the Milestones to keep track of the intended | ||
release for each issue. | ||
2. Previous to the release deadline, re-check the open issues/PR and update | ||
the assignation issues/PR to the release milestone. Request feedback from | ||
the devel community. | ||
3. Work to close all the PR/issues remaining open in the milestone. This can | ||
be either done in develop or in a release branch called `release-XXX` | ||
(where `XXX` is the milestone name, e.g. `Jul17`). If a release branch is | ||
used, `develop` is freed to continue with integrations that may not be | ||
suitable for this release. On the other hand, it adds a bit more work | ||
because the release-related PRs (which are done against the `release-XXX` | ||
branch), may need to be also merged to develop. | ||
Note: the `release-XXX` branch *can* live in the sardana-org repo or on a | ||
personal fork (in which case you should do step 4.iv **now** to allow other | ||
integrators to push directly to it). | ||
4. Create the release branch if it was not done already in the previous step | ||
and: | ||
1. Review and update the CHANGELOG.md if necessary. See [this](http://keepachangelog.com). | ||
2. Bump version using `bumpversion <major|minor|patch> && bumpversion release` | ||
(use [semver](http://semver.org/) criteria to choose amongst `major`, | ||
`minor` or `patch`. OPTIONAL: Sardana depends on Taurus, and the | ||
required version of Taurus may need to be bumped as well. Taurus and | ||
other dependencies are specified in: `setup.py` (requires list of | ||
strings) and `src/sardana/requirements.py` (`__requires__` dictionary | ||
and taurus.core value). | ||
3. The version numbers used in the man pages of the Sardana scripts are | ||
bumped (you may use `taurus/doc/makeman` script executing it from the | ||
doc directory e.g. `sardana/doc`) and committing the changes. | ||
4. Create a PR to merge the `release-XXX` against the **`master`** branch | ||
of the sardana-org repo | ||
5. Request reviews in the PR from at least one integrator from each | ||
participating institute. The master branch is protected, so the reviews need | ||
to be cleared (or dismissed with an explanation) before the release can be | ||
merged. | ||
6. Perform manual tests (see checklist below). You may use the CI artifacts | ||
(e.g., from appveyor) and post the results in the comments of the PR. | ||
7. Once all reviews are cleared, update the date of the release in the | ||
CHANGELOG.md, merge the PR and tag in master. | ||
8. Merge also the `release-XXX` branch into develop, and bump the version of | ||
develop with `bumpversion patch` | ||
|
||
## Manual test checklist | ||
|
||
This is a check-list of manual tests. It is just orientative. Expand it | ||
at will. This list assumes a clean environment with all Sardana dependencies | ||
already installed and access to a Tango system with the TangoTest DS running. | ||
|
||
Hint: this list can be used as a template to be copy-pasted on a release PR | ||
|
||
### Installation | ||
- [ ] Install Sardana from the tar.gz : `pip install <tarball_artifact_URL>` | ||
|
||
### Create testing environment and run testsuite | ||
- [ ] Start Pool demo2. In a console do `Pool demo2`. | ||
- [ ] Start MacroServer demo2 and connect to the Pool demo2. | ||
In another console do: `MacroServer demo2` | ||
- [ ] Set MacroServer's MacroPath to point to the macro examples. | ||
In another IPython console do: | ||
`PyTango.DeviceProxy('macroserver/demo1/1').put_property({'MacroPath':'<path_to_sardana_installation_dir>/macroserver/macros/examples'})` | ||
- [ ] Restart MacroServer e.g. Ctrl+C in the MacroServer's console and | ||
start it again. | ||
- [ ] Create spock profile demo2. In another console do `spock --profile=demo2` | ||
- [ ] In spock run `sar_demo` macro. | ||
- [ ] Edit `<path_to_sardana_installation_dir>/sardanacustomsettings.py` | ||
to point to the demo2 door e.g. `UNITTEST_DOOR_NAME = "door/demo2/1"` | ||
- [ ] Run testsuite. In another console do `sardanatestsuite` | ||
|
||
### Test Sardana using Spock | ||
- [ ] Test interactive macros from spock e.g. `ask_for_moveable`, `ask_peak` | ||
- [ ] Execute `umvr` macro and verify that the position updates arrives. | ||
- [ ] Test `expconf`: | ||
1. Configure scan files using expconf set ScanDir to: `/tmp/` and | ||
ScanFile to: `demo1.h5, demo1.dat`. | ||
2. Configure online plot to show counters. | ||
3. Configure snapshot group: with a motor and the `sys/tg_test/1/ampli` | ||
attribute. | ||
4. Add the `sys/tg_test/1/double_scalar` attribute to the measurement | ||
group. | ||
5. Open online plot. | ||
6. Set JsonRecorder to true. In spock do `senv JsonRecorder True` | ||
7. Run step scan and verify if: | ||
- Records appear in spock output. | ||
- Records were stored in scan files. | ||
- Records were plotted on the online plot | ||
- [ ] Run `showscan` and access to the last scan data. | ||
- [ ] Test `edmac`: | ||
1. Modify existing macro: `ask_peak` and run it to verify that the change | ||
was applied. | ||
2. Create new macro in a new macro library: | ||
`edmac my_macro <path_to_sardana_installation_dir>/macroserver/macros/examples/my_macros.py | ||
and run it. | ||
|
||
### Test Sardana with TaurusGUI | ||
|
||
- [ ] Create the GUI using this [guide](https://sourceforge.net/p/sardana/wiki/Howto-GUI_creation) | ||
|
||
#### PMTV (PoolMotorTaurusValue) | ||
- [ ] Move motors from the slit panel in absolute and relative modes. | ||
- [ ] Show expert view. | ||
- [ ] Show compact mode. | ||
|
||
#### macroexecutor | ||
- [ ] Execute `ascan` macro | ||
- [ ] Pause it in the middel and resume | ||
- [ ] Abort it | ||
- [ ] Add it to favorites | ||
- [ ] Run `lsm` macro | ||
- [ ] Execute `ascan` from favorites | ||
- [ ] Run `lsmac` macro | ||
- [ ] Execute `ascan` from history | ||
- [ ] Edit `dscan` macro in spock yellow line and run it | ||
- [ ] Restart macroexecutor application | ||
- [ ] Run `lsm` from history | ||
- [ ] Run `ascan` from favorites | ||
|
||
#### sequencer | ||
- [ ] Add `ascan` macro to the sequence | ||
- [ ] Add `lsct` macro as a `post-acq` hook of `ascan` | ||
- [ ] Add `dscan` macro to the sequence | ||
- [ ] Run the sequence | ||
- [ ] Save sequence to a file | ||
- [ ] Start new sequence | ||
- [ ] Load sequence from a files | ||
- [ ] Run the loaded sequence | ||
|
||
#### sardanaeditor | ||
- [ ] Open sardanaeditor with macroserver name as argument. | ||
- [ ] Browse macro libraries and open an existing macro. | ||
- [ ] Edit existing macro and save & apply chaneges. | ||
- [ ] Execute macro to see if changes were aplied. | ||
- [ ] Create a new macro using template. | ||
- [ ] Execute the newly created macro. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.