Commit Graph

516 Commits

Author SHA1 Message Date
Ghanshyam Mann 77474eb9bb Retire the Qinling project
As announced in openstack-discuss ML[1], Qinling project
is retiring in Wallaby cycle.

This commit retires this repository as per process deinfed in
project-guide[2]. Anyone would like to maintain it again, please
revert back this commit and propose the re-adding of Qinling
to governance.

The community wishes to express our thanks and appreciation to all of
those who have contributed to the Qinling project over the years.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/764520
Needed-By: https://review.opendev.org/c/openstack/governance/+/764523
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018638.html
[2] https://docs.openstack.org/project-team-guide/repository.html#retiring-a-repository

Change-Id: Ic9e422dfbba6d23cf83576ece34bb5071cc89377
2020-11-27 21:06:10 -06:00
OpenStack Release Bot ab0a85b605 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I458721cfeb9f54405c56f729a5db8e7d6727f94b
2020-09-21 22:31:19 +00:00
OpenStack Release Bot 5f7bf152c6 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: Ifcb2c57a9b598ef61f29aa05752bb61b5b913ab3
Sem-Ver: feature
2020-09-21 22:31:15 +00:00
wu.chunyang 8787d06d41 remove unnecessary module constraint
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.

Change-Id: Iae39b223a627bb4ce370f3cf307570b65a4a05a7
2020-09-19 23:28:32 +08:00
zhoulinhui ad501acc9b Remove all usage of six library
Convert all code to not require six library and instead
use python 3.x logic.

Change-Id: I3aba1299172eda0d4212177ccb794ab20dc41334
2020-09-17 15:44:56 +00:00
Lukas Piwowarski 942c75ef02 Use the 'all' tox env instead of 'all-plugin'
As the 'all-plugin' tox env is deprecated it is recommended to use
'all' tox env instead.

[1] https://review.opendev.org/#/c/543974/
Related-Bug: #1862240

Change-Id: Icc95ceadcd380aefe6b1cd9a5db4d200c24196cd
2020-09-14 23:08:25 +00:00
Prankul Mahajan 92b9cfa30c [goal] Fixing pep8 testing for Ubuntu Focal
As per victoria cycle testing runtime and community goal,
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing pep8 for Focal, failure can be seen in
- https://review.opendev.org/#/c/744363/1

Depends-On: https://review.opendev.org/#/c/738328/

Story: #2007865
Task: #40211

Change-Id: I0accb29b5d041f12fa840eacda8f2e70cad07f09
Signed-off-by: Prankul Mahajan <prankul.mahajan88@gmail.com>
2020-09-15 09:57:12 +12:00
Hervé Beraud 56e8555ad6 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I41603a01231477cad7af9c4ed14ba88a32063ca5
2020-06-09 12:06:45 +02:00
Hervé Beraud ec07bb0f92 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ib53d957262f26ef777bde428aca28156bea84687
2020-06-02 20:55:03 +02:00
Andreas Jaeger f1f9e61fd4 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I301ebb5ae44e9e5f1848e59865cc1d9dcdeffd8b
2020-06-01 15:33:57 +02:00
Zuul 456a7a9666 Merge "Bump default tox env from py37 to py38" 2020-04-24 23:30:59 +00:00
Sean McGinnis 984d6b91a3
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I5d8872b8470edfaf472757d517450dd0fca94bcb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:26:00 -05:00
Sean McGinnis 96387690db
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I6199faffe4c189bb08f41084bee5e9e926578ab2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:19 -05:00
OpenStack Release Bot 137b037ba1 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I5787077ed5f6253e332d0e4fc4833ea8da8fc59d
2020-04-22 12:53:57 +00:00
OpenStack Release Bot a9f9b96579 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I44a64d9d6a4111bf5ea9fadd286593ef3b74afdc
Sem-Ver: feature
2020-04-22 12:53:54 +00:00
Sean McGinnis 9a186fc483
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I0425e8d85decf9106a533639bba1f5a4a7dc5b21
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 12:00:00 -05:00
Andreas Jaeger 2c649d319e Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers

Change-Id: Idc93d9004edfb89c3c28bfed06af93ec75b2b644
2020-04-07 18:42:52 +02:00
Lingxian Kong a6f9577141 [Community goal] Add contributor and PTL guide
Change-Id: I1d37aa87e7d09d2a45bfbeaac9a564771989f88d
Story: #2007236
Task: #38553
2020-02-26 16:31:21 +13:00
Ghanshyam Mann 40ac336d30 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

qinling is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: Icfaa8e59840406b5fddbde55a1cac67035a22935
2020-02-19 10:17:57 +13:00
msidana a48673d54d Fix the CLI in Quick Start Guide
Fix CLI example to include --function argument
Story: 2006957
Task: 37647

Change-Id: Ie1db022aba3d7b1d3b0ed4485ab9e715b87434b5
2019-11-28 09:07:33 +05:30
xuanyandong 815ec7764c Stop testing python2.7
Change-Id: I82e9b43ba70313ccf94badccc6d607c3b8920e4e
2019-10-26 18:17:37 +08:00
qiufossen 1fc0b4a996 Switch to Ussuri jobs
Change-Id: I725cdc0dc1617357bcd00ebf8de81c7185ad10a9
2019-10-22 02:01:57 -04:00
OpenStack Release Bot f8bbfdb279 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I01ce64aaec679d261632f49736f5048891f57cd0
Sem-Ver: feature
2019-09-25 08:32:47 +00:00
Zuul 5329b79525 Merge "Replace git.openstack.org URLs by opendev.org URLs" 2019-08-11 22:18:26 +00:00
Gaëtan Trellu 33cd4863b7 Replace git.openstack.org URLs by opendev.org URLs
Change-Id: I4f9a11daad8eaeabc16f008649c3184b987599c3
2019-08-11 12:42:50 -04:00
Gaëtan Trellu 9696b34288 Improve function_alias integration
When creating webhook using function_alias, the function id
and function version should be updated dynamically. For example,
a function alias A1 is created for function_1 and version 1,
a job is created using A1.

When the user updates A1 with function 1 and version 2, the webhook
should pick up the new version automatically.

For function execution, the execution has to make sure if an alias
is provided then the function id and the function version should be
the same as the one from the alias.

Change-Id: I17320a2a4f55cda8884de928c69ceba366c37f2e
Story: 2006337
Task: 36085
2019-08-10 19:40:02 +12:00
Zuul 32a68d1bfc Merge "Build different etcd client depending protocol" 2019-07-27 01:19:18 +00:00
Lingxian Kong 930004e24d Release note for function alias in job
Change-Id: Ic998e1fec8c8807993d695273e3822e652793a51
Story: 2005921
Task: 34263
2019-07-21 22:40:05 +12:00
pengyuesheng 37958efd1b Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I1331abaf1c99a4631ccde3e9fbb70085ca3dcd4e
2019-07-19 15:49:17 +08:00
Gaëtan Trellu fb929a526e Fix link into release note for Apache WSGI
URL is wrong and need to be fixed.

Change-Id: Ifc829667f81a7395873aa817ed97aec86f5fc67d
2019-07-18 22:29:04 -04:00
Zuul 4c4a78c0af Merge "Add Apache/uWSGI configuration examples" 2019-07-18 21:56:06 +00:00
Zuul 15979c4293 Merge "Add Python 3 Train unit tests" 2019-07-18 21:52:29 +00:00
Zuul 05387ff01a Merge "Parse function alias when job is running" 2019-07-18 13:21:54 +00:00
Gaëtan Trellu adba9605ac Build different etcd client depending protocol
etcd should not looking for TLS certificates when http protocol
is used.

Change-Id: I91122cc56bf1f11be1700d09ff03cdff15badf91
Story: 2005935
Task: 34281
2019-07-18 08:56:25 -04:00
Gaëtan Trellu 3b1529cb43 Add Apache/uWSGI configuration examples
This change[1] allowed Qinling API to be used with Apache mod_wsgi and uWSGI.

Using Apache/uWSGI is the best approach for a production environment,
Apache virtualhost and uWSGI examples are available into
etc/{apache2|uwsgi} directory.

[1] https://review.opendev.org/#/c/661851/

Change-Id: I052ff1a674529539db82947150b32ed564e939f8
Story: 2005920
Task: 34194
2019-07-18 08:55:08 -04:00
Lingxian Kong 49830445c9 Fix CI failure
Correct params for the following functions when using kubernetes=9.0.0:
- delete_namespaced_pod
- delete_namespaced_service
- create_namespaced_deployment

Incease the timeout when waiting for the runtime created.

Change-Id: I74fd74a5a02811442c9eaff3f25fc03ee9312100
Story: #2006225
Task: #35824
2019-07-18 20:04:39 +12:00
Corey Bryant b461066ac2 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I0674980fb9803875e3034f352499a973beb4242a
Story: #2005924
Task: #34239
2019-07-05 15:51:06 -04:00
Lingxian Kong b04ccacf9f Parse function alias when job is running
When creating jobs using function alias, the job should pick up the
correct function(version) when it's running.

Story: #2005921
Task: #34186

Change-Id: I356ae998eed162b1f10537f3cd569dcca5ee71bd
2019-06-22 11:39:34 +12:00
Zuul 4d196948a3 Merge "Add Kolla integration release note" 2019-06-21 10:41:47 +00:00
Zuul 812b669216 Merge "Add NodeJS 10.16 runtime" 2019-06-21 08:54:10 +00:00
Gaëtan Trellu 4a04c9ebed Add Kolla integration release note
Qinling as been fully integrated to Kolla, it deserves a
release note :)

Change-Id: I42c3b4d4f45f94f5f344529aae1d6be06be23c7a
2019-06-21 08:22:27 +00:00
Zuul a011cd57e4 Merge "Add release notes for Docker and API guide" 2019-06-20 22:53:47 +00:00
Zuul 7e91169e43 Merge "Add function_alias column in jobs table" 2019-06-20 22:53:43 +00:00
Gaëtan Trellu 814640128b Add release notes for Docker and API guide
Docker developers tool and API documentation
have been added to Qinling.

Change-Id: I4a11baf2eb7177462e22270e93ff81d775c92ae2
2019-06-20 09:19:29 -04:00
Lingxian Kong 50c9399d53 Add function_alias column in jobs table
Story: #2005921
Task: #34185

Change-Id: I6ec192fb90a06f9c728b3ee6adac7bb3902c58c2
2019-06-20 20:51:10 +12:00
Gaëtan Trellu 982c45c978 Add function_alias to execution, webhook and job
executions, webhooks and jobs endpoints are able to
take function_alias as a parameter.

An alias point to a function and a specific version of
this one.

Change-Id: I2e28a4e08fa80109767c28f77da7887a8603f2ec
2019-06-18 16:40:25 -04:00
Zuul 1df4688d10 Merge "Fix date format to be compliant with UTC" 2019-06-17 22:49:29 +00:00
Zuul ee7d3a6c15 Merge "Add Docker support for testing purpose" 2019-06-17 22:46:49 +00:00
Zuul e8ee8659f1 Merge "update git.openstack.org to opendev" 2019-06-17 21:46:40 +00:00
Gaëtan Trellu b1e07fc109 Add NodeJS 10.16 runtime
NodeJS 10.16 is the latest LTS version.

Change-Id: I5e5b07428468aab8526021fc79d03d86734a46b5
Story: 2005905
Task: 34159
2019-06-17 16:03:48 -04:00