The metadata job previously would only trigger when
a file in the python3-* repo was changed. This means
one could get a change to the metadata.yaml submitted
without the proper pipeline job checking the file. This
change corrects that.
Test Plan:
PASS: Verify metadata job runs.
Story: 2010929
Task: 49489
Change-Id: Ie81411fbc6e8debc2f1b8f4050c7bb72b3b2c3fd
Signed-off-by: Reed, Joshua <Joshua.Reed@windriver.com>
Modify code to conform to flake8 and pylint.
Jobs are now flake8, pylint, py39 and metadata.
Test Plan
PASS - All zuul jobs pass as expected.
Story: 2010929
Task: 49278
Change-Id: Idab7faf2a4957edd95f0985c3dd4a70a2a95ecba
Signed-off-by: Reed, Joshua <Joshua.Reed@windriver.com>
Updating the rsa ssh host key based on:
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
Note: In the future, StarlingX should have a zuul job and
secret setup for all repos so we do not need to do this
for every repo.
Needed to rename the secret, because zuul fails if like-named
secrets have diffent values in different branches of the same
repo.
Partial-Bug: #2015246
Change-Id: I1ebaccd444d78478d99450bf5a06a92ebae768f8
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Fixed versioning and adjusted some build files
to bring them as close to a standard as possible.
- Removed centos files
- Added version tracking via GITREVCOUNT
- Fixed mismatch in plugin name, set to python3-k8sapp-<app>
- Standardized plugin debian files (rules, *.install)
- Plugin wheels saved to /plugin instead of /plugin/<app>
Test Plan:
PASS - Build-pkgs -a
PASS - Build-image
PASS - Install, bootstrap, unlock
PASS - app tarball contains wheel file
PASS - wheel versioning updated properly
Story: 2010542
Task: 47193
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I601800969134661ff40d6fb6277ffad3ce403eb7
tox changes:
- remove python2.7 and python3.6 unit test targets
from tox.ini since only python 3.9 is supported
- tox jobs are now setup for python 3.9
- Added additional suppressions for new pylint codes.
Zuul changes:
- remove py27 job from zuul
- set the parent zuul jobs to be the jobs defined under
openstack-zuul-jobs rather than just zuul-jobs
- Specify debian-bullseye (python3.9) as the nodeset.
ubuntu-jammy is python3.10, ubuntu-focal is python3.8
- override tox constraints file to use the STX constraints
This means starlingx/root needs to be a required project
Notes:
- these changes do not affect runtime.
Test Plan:
pass tox
pass build-pkgs
Story: 2010531
Task: 47511
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I4649c60e669b546ff8b31df832e6e16b348f2fee
This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943
Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals
Zuul is pinned to use tox < 4 in order for the py39
unit tests to pass. Additional changes for skipsdist
may be required in order to work properly with tox 4.
Partial-Bug: #2000399
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Iab988c50b18d683a0d0967cbcc31bbad621005f8
The ubuntu-jammy nodeset gets selected by default
and is causing problems during setup.
Collecting cffi>=1.1
Failed to build cffi
ubuntu-focal seem to work fine.
Will specify the nodeset to be focal to resolve this.
Need to update a file under python-k8sapp-platform in
order to trigger the failing zuul jobs.
Partial-Bug: 1994843
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I18235473c04fbcf97dd5df676f054f34cd18b8b8
Removing redundant py36 Zuul jobs since we now have py39 Zuul jobs in
place with the debian nodeset
Story: 2006796
Task: 43493
Signed-off-by: Bernardo Decco <bernardo.deccodesiqueira@windriver.com>
Change-Id: I7cf62d671c48d45f6ddff3ecad7fa013744001a5
Add support for tox testing under Debian Bullseye by enabling
a python 3.9 gate and tox target for exercising plugin unit tests.
Also fix the pylint gate failure.
Story: 2009101
Task: 43129
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Iac6eb206724bccb0e6897e1877e77d4e712f71b6
Nodeset was not set so it tries to run the gate on the default
host, since the pylint gate is running in python2.7 it fails.
So set it to ubuntu-xenial. Also fix python2.7 because it
was failing as well.
Story: 2009101
Task: 43149
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I7b3430fbf9a77ba6796e0b12136d0a266cba078e
NOTE: As part of enabling this, --use-deprecated legacy-resolver was
required. This is a result of a new version of pip installed on Dec 3,
2020. A followup commit is required to remove this a deal with the
fallout.
Change-Id: I29d9484f1f3ffbb7b949c5d4177f95e7a60a99f4
Story: 2008162
Task: 41347
Related-Bug: #1907125
Signed-off-by: Robert Church <robert.church@windriver.com>
This job adds a single linters tox target.
The linters target is an aggregation of linters for
this repo including:
- bashate
Other linters such as yamllint can be added to this
repo by later commits.
This commit also adds basic contributing and hacking docs.
Change-Id: Ic17f5604f493b3aae6b25648201d2807864c1df8
Story: 2006166
Task: 36547
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>