Commit Graph

20 Commits

Author SHA1 Message Date
Tom Weininger e150e032e9 Add pre-commit
Change-Id: I3fda3d18cea0e22e2999481551429122619b2144
2022-09-29 13:18:26 +02:00
Tom Weininger d556c622b1 Documentation updates
Minor corrections and update of the remote debugging guide.

Change-Id: I0d08aaf4f02f5575f1a68b65ebc16aafad8a0270
2022-03-23 10:00:47 +01:00
Michael Johnson 399331b01a Ussuri contributor docs community goal
This patch updates the Octavia contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>
Story: 2007236
Task: 38542
Change-Id: I5f109a4e9ac2e31939ff28b655ffb00c1c02b417
2020-03-25 16:55:48 -07:00
lingyongxu 4b8e1b9a40 Update the documentation link for doc migration
This patch is proposed according to the Direction 10 of doc
migration(https://etherpad.openstack.org/p/doc-migration-tracking).

Change-Id: Id8328262529ca427aac0627322e630c4e929e581
2017-09-22 00:45:56 +00:00
Michael Johnson c3754dbf5a Fix a bad revert method and add hacking check
This patch fixes a revert method that was not handling extra parameters
being passed to it.
It also adds a hacking check to make sure this does not happen in the
future.
The patch also breaks the bad habit of compiling regex strings for every
line of code in the project.

Change-Id: If29e377204432e215bfea97f9d76bce0a442f4c8
2017-08-14 12:03:37 -07:00
Michael Johnson e86414bb76 Add some hacking checks borrowed from neutron
- [O343] Python 3: do not use basestring.
- [O344] Python 3: do not use dict.iteritems.
- [O345] Usage of Python eventlet module not allowed

Change-Id: I0d70bbc4608cc08f0944b836814462acdcf7269f
2017-05-04 03:32:12 +00:00
e dc882e9d27 Remove log translations from octavia
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

This patch also adds hacking rules for the translation tags.

See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Change-Id: Ic95111d09e38b3f44fd6c85d0bcf0355c21ef545
2017-05-03 20:30:47 -07:00
Sergey Belous b44619e55a Drop support for SQL Schema Downgrades
SQL Schema Downgrades are no longer supported. This commit removes
downgrade function from octavia-db-manage.

Related cross-project spec: https://review.openstack.org/152337
Partial-Bug: #1434103

Change-Id: I0304d19ebb2de3a596c9f62825e664267ad60dd8
2016-06-08 18:45:34 +03:00
Tin Lam 8d0b16292d Add hacking check to ensure not use xrange()
Added hacking check to ensure not to use xrange.  Also,
fixed issues with EoF missing newline [W391].

Change-Id: Iba8d240c042e46cb34eb6ed057534d62efb6f903
Closes-Bug: #1538118
2016-03-11 07:49:25 -06:00
zhang.lei de41db2755 Replace deprecated LOG.warn with LOG.warning
Python 3 deprecated the logger.warn method, see:
https://docs.python.org/3/library/logging.html#logging.warning
so we prefer to use warning to avoid DeprecationWarning.

Change-Id: I49544d1370e7fe083eb23752227567d8d6f24020
Closes-Bug: #1508442
2016-03-08 14:54:24 +08:00
Bertrand Lallau 88a62cfecb Use assertIs(Not)None instead of assert(Not)Equal
Instead of using assert(Not)Equal(None, ***), developers should
use assertIs(Not)None(***) to have more clear messages in case of failure.

Change-Id: I20dd008badde8a3e87a367e7ab791ace4e117fb7
2015-11-09 20:48:07 +01:00
Bertrand Lallau 76e1e02e15 Removes the use of mutables as default args
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this. This commit changes mutable default args with
None, then use 'arg = arg or {}', 'arg = arg or []'. For unit code which
doesn't use the args , just set with None. This commit also adds hacking
check.

Change-Id: Ib4f195c9c00ca2c49579f9d62648bff7c8109fcf
Closes-Bug: #1327473
2015-11-09 09:42:32 +01:00
Bertrand Lallau 456a07f60a Update HACKING.rst to reflect real syntax checks
In the past HACKING.rst file has not been updated when needed,
this patch update HACKING.rst file for all missing syntax checks.
Furthermore rules checks have been reorder in octavia/hacking/checks.py file.

Change-Id: I34bdcca5d4cc9abad797aff118fbf4e563c42757
2015-11-07 21:37:33 +01:00
Bertrand Lallau f7a540b156 Set Hacking rules to check some tests assert
Octavia doesn't have hacking rules to check "assert" usages like:

- assertTrue(isinstance(A, class A))
- assertEqual(A, None) or assertEqual(None, A)
- assertEqual(False, A) or assertEqual(True, A)
- assertEqual(a in b, True) or assertEqual(a in b, False)

This patch introduce hacking rules just above.

Change-Id: If64402508226608b5700c8bb11e924dbc778fec3
Closes-Bug: #1511368
2015-11-04 16:18:59 +01:00
Bertrand Lallau 734d61c51c Change assertTrue(isinstance()) by optimal assert
Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.

Change-Id: I2ce6f9afeaf2c55fb781d3ba397cb8f7cbf8b686
2015-10-27 22:32:06 +01:00
Stephen Balukoff 6d88d6a347 Fixing a couple minor terminology errors
Since I'm updating documentation anyway, and as these fixes don't
fit well into v1 or v2 design documents, I figured a small commit
here to correct the 'VM' terminology to be 'amphora' where
appropriate is called for.

Change-Id: I5f62f9fb62534f48de3d761c64419c08c66fed64
2015-08-03 15:24:01 -07:00
Jorge Miramontes 7a3f947081 Added versioning and migration mandates
Updated HACKING.rst to include mandates
around API versioning and seamless migrations.

Change-Id: Iafb33d7a698b22a84a7b6167792e4d37aed110de
2014-12-05 17:37:38 -06:00
Brandon Logan 507ff77b29 Hacking fixes in CONSTITUTION, ROADMAP, & HACKING
Change-Id: I6f075284731139cd9611938178ee998ad3a075c0
2014-08-16 00:13:00 -05:00
Stephen Balukoff 3324e1219a Documenting project direction and design
This commit adds documentation around project direction and conventions.
Additionally, I've added doc8 checks to make sure or .rst and .txt files
in this repository follow good conventions, and fixed a check related to
graphviz external .dot files.

Change-Id: I1b73b3839b86198f3d56587ca3fb2644dc231f00
2014-08-02 17:08:10 +00:00
Stephen Balukoff f77df1766c Populate repository with common initial files
Every repo needs a first commit, eh? Most of this
is based on the neutron and neutron-specs project layouts.

Change-Id: I17a41fc30f8f8499c679afad14019c0755582bc6
2014-07-02 20:30:14 -07:00