-
Notifications
You must be signed in to change notification settings - Fork 3
Best Practices
Elizabeth Lee edited this page Feb 28, 2022
·
16 revisions
Checklist to run through when running a map on cholera-mapping-pipeline
.
- You and at least one other member of the team should review the config file that will be run.
- Commit the reviewed config file to
cholera-configs
. - Check which branch you are on in
cholera-configs
,cholera-mapping-pipeline
, andcholera-covariates
in the directories from which the model will be run. - Git pull in
cholera-configs
,cholera-mapping-pipeline
, andcholera-covariates
in the directories from which the model will be run. - Revert uncommitted changes to files
git reset --hard
- Remove uncommitted files
git clean -fxd
- Re-create
database_api_key.R
- Review the
cholera-configs
Github Kanban board and issues for notes on the run you plan to launch. - Reinstall taxdat.
- Check for and remove old data files in the data folder that might be related to your model run.
- Review the shell (.sh) script that will be used to launch your model run.
- Record the branch name(s) for all repos, commit hash for
cholera-mapping-pipeline
, the config settings, and other model launch notes in the Github issue of thecholera-configs
Kanban board. - Update the Kanban board status
- Review the model logs to see if the run finished successfully.
- Commit the model logs to the appropriate
cholera-configs
folder. - Commit the Stan-generated model files to the appropriate
cholera-mapping-output
folder (Only perform this step for report/manuscript final runs). - Update the Kanban board status
As of 25 Feb 2022, model diagnostic reports include: data comparison report and country data report RMD files
- Commit the html diagnostic files to the appropriate
cholera-configs
folder. - Commit intermediate model output files to the appropriate
cholera-mapping-output
folder (Only perform this step for report/manuscript final runs). There may not be intermediate model output files for the model diagnostic reports. However, there were intermediate model output files generated in the creation of the Dec 2021 Gavi report and these should be committed tocholera-mapping-output
. - Update the Kanban board status
- Post the diagnostic reports in
cholera-taxonomy
Slack channel.
Checklist for Github workflow and merging branches. For additional detail, we are roughly following the Integration-Manager workflow described here except individuals work on branches and not forks.
For the following checklist, assume that dev
is the production branch and you're making updates on dev_a
. You will start by making a new branch called dev_a
from dev
. All of your code changes will be made in dev_a
. Test that dev_a
works as expected, ideally by writing unit tests or running a map or both.
- Submit a PR for
dev
intodev_a
and review changes. After reviewing and resolving conflicts, mergedev
intodev_a
. - Submit a PR for
dev_a
intodev
and review changes. - Test that
dev_a
works as expected, ideally by running unit tests, integration tests, a map, or one or more of the above. - If tests produce the expected results, merge the pull request.
- If you no longer intend to make changes to
dev_a
, delete the branch. If there are more changes to make, continue working indev_a
and follow these steps again from the top when ready to merge.