Merge lp:~savoirfairelinux-openerp/lp-community-utils/openerp_review into lp:lp-community-utils
Status: | Work in progress |
---|---|
Proposed branch: | lp:~savoirfairelinux-openerp/lp-community-utils/openerp_review |
Merge into: | lp:lp-community-utils |
Prerequisite: | lp:~savoirfairelinux-openerp/lp-community-utils/nag_refactor |
Diff against target: |
515 lines (+496/-0) (has conflicts) 2 files modified
lp.py (+38/-0) openerp_review (+458/-0) Text conflict in openerp-nag |
To merge this branch: | bzr merge lp:~savoirfairelinux-openerp/lp-community-utils/openerp_review |
Related bugs: | |
Related blueprints: |
First review script
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Community Reviewer/Maintainer | Pending | ||
Review via email: mp+214447@code.launchpad.net |
Description of the change
The intent for this script is to be like Travis CI for github.
When run, this script will use some of openerp-nag's functions to identify OCA addon MPs.
To these, it will comment on the MP providing information about the and review according to http://
Here's a description of the behaviour expected
Gather information about an OpenERP addon MP
* Has this MP been reviewed before by an automated script?
* Does it contain message identifying as automated?
* Has there been a new commit since last automated message?
* Does it merge cleanly?
* Is this a new module?
* Add of a directory and an __openerp__.py file
* AGPL-3 license check
* Does it include tests?
* Does it include demo data?
* Does it include security files?
* Does the module version have 2 digits (1.0)
* Has the .pot file been generated
* Run flake8 on the entire module
* Check for deprecated code
* Check for TODO and FIXME comments
* Check for debugging breakpoints (ipdb, pdb, set_trace())
* Test install the module on its own, run tests
* Does it follow all OpenERP conventions
* Is this a modification of an existing module
* Which modules are involved?
* What kind of changes are made?
* Code behaviour
* Model changes
* Has the version been bumped?
* Any migration scripts included?
* View changes
* Tests
* New tests
* Added tests
* Removed tests
* Demo data
* Data
* Translation
* TODO, FIXME comments
* Added comments
* Removed comments
* Check for debugging breakpoints (ipdb, pdb, set_trace())
* Evaluate if changes create a net improvement
* Run flake8 before and after merge
* Check for deprecated code before and after merge
* Run tests before and after
* Are they fixed?
* Are they broken?
* Are they unchanged?
* Which tests results have changed? Are they new/removed?
* Check conventions before and after merge
* Is this a mixture of both?
* Separate code of new and modified
* Is this a removal?
* Provide link to http://
* Identify points of concern from the pad
* Vote on MP (or don't)
Unmerged revisions
- 36. By Sandy Carter (http://www.savoirfairelinux.com)
-
Implement checking pep8 in review
- 35. By Sandy Carter (http://www.savoirfairelinux.com)
-
Implement been_reviewed() check
Check if there exists a comment older than the last change of the MP which
matches the automated message - 34. By Sandy Carter (http://www.savoirfairelinux.com)
-
[IMP] Review project and series implemented
Add logging
Add more options to ls_bzr_repo(), notably the missing recursive option
Separate review_project() into review_series()
Implement skip based on non-addon repo, empty MP repo - 33. By Sandy Carter (http://www.savoirfairelinux.com)
-
Check target for openerp addons manifest files
Parse options to target project merge proposals
- 32. By Sandy Carter (http://www.savoirfairelinux.com)
-
Function to list contents of local or remote bzr repository
Given a path, return a list of tracked files in bzr using code for `bzr ls`
Give the list of files without checking out. Useful for scanning launchpad
repos.Example usgae:
>>>> lp.list_bzr_repo( 'lp-community- utils')
['lp:lp-community-utils/README.rst',
'lp:lp-community-utils/checkout-flake8.sh',
'lp:lp-community-utils/clone_mp_to_community.py',
'lp:lp-community-utils/merge_mp.py',
'lp:lp-community-utils/openerp-nag',
'lp:lp-community-utils/projects',
'lp:lp-community-utils/replay_missing.py']May be expanded to support revnos and other flags. The cmd_ls.run() function
signature has the following arguments:
revision
verbose
recursive
from_root
unknown
versioned
ignored
null
kind
show_ids
path
directory
Currently, only path is used. - 31. By Sandy Carter (http://www.savoirfairelinux.com)
-
[IMP] added stub functions
- 30. By Sandy Carter (http://www.savoirfairelinux.com)
-
[ADD] stub script for openerp_review along with details in description
- 29. By Sandy Carter (http://www.savoirfairelinux.com)
-
Moved common code out of openerp-nag into lp.py so it can be used by other scripts