Update the URLs in various templates and generated content to
consistently use https:// instead of a mix of that and http://, and
while we're at it set the homepage for the Python package of this
repo to the election site rather than the OpenStack Foundation site.
Change-Id: I4fa53076ed9bcdf1545d9c4aa5e80dc5dad95210
Right now this script includes the data and needs to be updated after
each election.
We could factor out the data in the future
Change-Id: I60ba91efabb280e91b2481d20df0b16ec5471036
./doc/source/_exts/candidates.py:20:1: H306 imports not in alphabetical order (jinja2.filesystemloader, jinja2.environment.environment)
./doc/source/_exts/events.py:17:1: H306 imports not in alphabetical order (os, calendar)
./doc/source/_exts/events.py:21:1: H306 imports not in alphabetical order (jinja2.filesystemloader, jinja2.environment.environment)
./openstack_election/check_candidacy.py:62:29: E126 continuation line over-indented for hanging indent
./openstack_election/utils.py:27:1: H306 imports not in alphabetical order (yaml, re)
./openstack_election/cmds/close_election.py:90:9: H232 Python 3.x incompatible octal 755 should be written as 0o755
./openstack_election/tests/test_utils.py:25:21: E126 continuation line over-indented for hanging indent
./tools/new-election.py:18:31: H301 one import per line
./tools/new-election.py:27:5: H233 Python 3.x incompatible use of print operator
./tools/new-election.py:31:5: H233 Python 3.x incompatible use of print operator
./tools/new-election.py:41:5: H233 Python 3.x incompatible use of print operator
Co-Authored-By: Nguyen Hung Phuong <phuongnh@vn.fujitsu.com>
Change-Id: Idd9bc1f1f92da1658e6da2af588c575ee0ba2cb0
Currently the code in this repo is half modular have series of scripts.
Migrate the code to be more modular. The main benefit to this is
testing is easier.
Testing is added in a followup patch
Change-Id: Ic1262436147ecdb818ee259e2e85fca8df09d722
The linters tox environment will run yamllint and flake8.
Also fix a few trivial issues so the new target passes
Change-Id: Ifa1e9379f7d1d1996f2cfb84233bce8b502979bb
The argument is currently omited and validation is currently using
un-tagged governance projects list. This change adds the --tag
argument with the correct default value to check-new-candidacy too
Change-Id: I2a4a33f7c105365800d95055195c2584c1130575
This is a large change as it does several things
1. Moves to using the gerrit REST API to collecting open reviews (as
opposed to ssh)
2. Moves the selection of validating commits from scraping git logs to
the gerrit REST API
3. Uses the new utils.py function for getting the project data
4. Avoids any git checkouts/downloads during the validation process
5. tools/check-new-candidacy still checks all open changes
6. tools/check-ptl-candidacy.py checks a single change, now specified as
a change ID rather then a file path
Work to be done in follow-up commits
1. Add testing, now that this is more modular we can mock json blobs to
test code and avoid regressions
2. Add a manual toll to specify a project and community member and check
that, even if it doesn't match data in an open review
3. Add quality tools such as flake8 / yamllint to keep code/data neat
4. Modify the docs generation to understand that files are now IRC nicks
and to get the change author as the candidate.
Change-Id: Ibd7fad3eb4d39f1edca624b981fa602d2b4c4d40
This change reverse the directory name creation to find
projects name back from projects.yaml.
Directories were created using:
for project in projects.keys():
os.mkdir(project.title().replace(' ', '_'))
Also fix DATE_MAX to match Liberty-Mitaka timeframe.
Change-Id: I51cb272807e2b68f794b939319c198736722f340
If the TC election hasn't been opened then render-wiki-list will fail with:
---
Traceback (most recent call last):
File "tools/render-wiki-list.py", line 31, in <module>
main(sys.argv)
File "tools/render-wiki-list.py", line 17, in main
candidates_list['projects'].remove('TC')
ValueError: list.remove(x): x not in list
---
Fix that
Change-Id: I5292655d14871b2b3047be0d2720423acfdab9e3
Due to the election setup and we can't trivially map the directory
names to project keys. This wasn't caught during creation of the
election. Rather then rename directories while the election is in
progress reverse the look up direction to map project keys =>
directories.
Change-Id: Ib9595d20202328f111bb9cce3c97147cd393f7b7