Commit Graph

9 Commits

Author SHA1 Message Date
zhangbailin 891c1de79a tools: Allow check-cherry-picks.sh to be disabled by an env var
The checks performed by this script aren't always useful to downstream
consumers of the repo so allow them to disable the script without having
to make changes to tox.ini.

We use the $commit_hash variable for the check for stable-only patches,
else it will incorrectly fail because it is checking the merge patch's
commit message.

Change-Id: I553fdda626b8afb8949d5ae9fc170caf87d31032
2021-03-24 19:14:45 +08:00
Zuul 9fa4e71c1f Merge "improve pep8 check logic" 2020-11-19 10:57:07 +00:00
Zuul 02180ece20 Merge "Add fast8 check for cybrog" 2020-10-24 04:13:32 +00:00
zhangbailin bb4fd104a3 improve pep8 check logic
Introduce the json file check, cherry-pick patches check, and use flake8
shell instead of flake8 command.

Change-Id: I94e1554028535a361cb9f9e6e73c15702e459e4f
2020-10-09 05:55:58 +00:00
zhangbailin c61e8ef3fc Add fast8 check for cybrog
Add "tox -e fast8" command, that we can check the changes file whether
is ok of it's PEP8 format.

Change-Id: I370bc8449321932831df4fe783be5c9ff0ed65df
2020-09-29 10:45:40 +08:00
Ghanshyam Mann af49d0b30a Change default policy file from JSON to YAML
As Cyborg is switching to new policy, this is required
to avoid breaking the existing deployment using policy
file in json format and relying on default value of
'CONF.oslo_policy.policy_file'.

Default value of 'CONF.oslo_policy.policy_file' config option
has been changed from 'policy.json' to 'policy.yaml'. If new default
file 'policy.yaml' does not exist but old default 'policy.json' exist
then fallback to use old default file.

An upgrade checks is added to check the policy_file format and
fail upgrade checks if it is JSON formatted.

Added a warning in policy doc about JSON formatted file is deprecated,
also removed all the reference to policy.json file in doc as well as
in tests.

Related Blueprint: https://blueprints.launchpad.net/oslo.policy/+spec/policy-json-to-yaml

Change-Id: I865227e516dc7505c463ac279309169d95ea6a22
2020-09-18 14:16:31 +00:00
wangzh21 ae87683acd Fix tox -egenconfig
1.Imply the namespace cyborg
2.Remoeve unused namespace oslo.reports

Change-Id: I61de79aa3b8a97c4a4dd6d92ef7bce951f6efd55
Story: #2002200
Task: #21685
2018-06-10 16:37:40 +08:00
zhuli a1e4b44797 Auto generate cyborg.conf with oslo-config-generator
Change-Id: If7cbf3701bb7b5ef0e0536339f8c1df9557f0688
2017-12-08 10:58:25 +08:00
zhuli c6c5ca042f add policy support
Add policy support to determine which user can access which objects
in which way

Change-Id: If959089366ec252d4a7904d0e78733a2bf52fff5
2017-09-03 21:04:20 +08:00