Commit Graph

10 Commits

Author SHA1 Message Date
Tony Breeds 056184c363 Add a tool to update the releases repo
Change-Id: I216b77823281abe390e35395ac8d9ccc7f3064b9
2023-07-13 16:39:46 +10:00
Andreas Jaeger 8843e43329 Small cleanups
* Remove usage of six, this repo is using python3 only.
* Remove settings from conf.py that are default in
  newer openstackdocstheme versions.
* Remove obsolete build_sphinx sections from setup.cfg, sphinx-build
  does not need this. Remove ignored warnerror.

Change-Id: I7b0625a71d81305d90157e42fc6a5065c9be47d1
2020-02-23 16:24:13 +01:00
Tony Breeds c36fe29624 Update requirements
We use jinja in our docs builds and those functions are going to be used
more widely so lets make it clear we need Jinja2

Change-Id: I0d23a8633b90665787c303420c534ab4391f7b1d
2018-09-05 10:08:05 +10:00
Tony Breeds 81b79183d8 Use election_type configuration to display correct candidates
Now that we have the election_type in configuration.yaml we can stop
manually switching the include in index.rst as we open the election.

Depends-On: https://review.openstack.org/561075
Change-Id: I33fbbc9e2c0e2dfcdf38290bc103b126cffdea0a
2018-05-15 14:28:43 +10:00
Tony Breeds f8a5d5bdbb Update requirements to be in line with current versions
Change-Id: I48a39a91921255784bc9635da2f2e06acab593ea
2017-10-02 09:07:47 +11:00
Tony Breeds a3ac4a90f8 Support for running tools under python3
If we run the tools (create-directories or check-all-candidacies) under
python3 they'll fail with silly errors (like[1]).  This is because we
have a number of assumptions they we'll be running under python2 like:

 - pickle.protocol: we done specify one so if we write a pickle file
   from python3 we can't read it in python2.
 - urllib and urlparse: those modules change paths in python 2 or 3 so
   use the six helpers to get the bits we want.
 - Explicitly write files in binary format
 - Various str vs bytes issues
 - dict().keys() returns dict_keys under python3 explictly cast that to
   list()

After addressing these issues we can run the tools under either python2
or python3.  To make this easy to check create explicit ven2 and venv3
test environments, leaving all other testenvs to use the system default.

[1] http://paste.openstack.org/show/593823/
Change-Id: I20334a52500847c810b486c9c8b108e75a5d6303
2017-01-05 12:57:03 +11:00
Tony Breeds 544bcd41a3 [tools] Render historical stats for TC elections
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
2016-10-09 23:56:34 +00:00
Tony Breeds cb6504e9af Refactor candidacy checking tools
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
2016-09-09 21:04:16 +10:00
Tony Breeds ad1744671d Add updates from global-requirements
Change-Id: I5766cb59650a9fa6fb8e2326c7986316d37bcc1c
2016-03-11 13:45:45 +11:00
Tony Breeds cdbc906dc9 Validate extra-atcs
Change-Id: I7c3324d73a4fc18329270f845aba6904d3f9a539
2016-03-11 13:45:10 +11:00