13 Commits

Author SHA1 Message Date
Reed, Joshua
99d4652354 Correct trigger for metadata job in .zuul.yaml
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>
2024-02-06 09:47:00 -07:00
Reed, Joshua
82d9009b0e Update app Zuul Check Jobs.
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>
2023-12-15 12:44:37 -07:00
Davlet Panech
d4f0cb3286 Fix github mirroring for this repo
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>
2023-04-28 12:38:52 -04:00
Leonardo Fagundes Luz Serrano
f5cf584d8d Standardize app configs
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
2023-03-01 16:32:28 -03:00
Leonardo Fagundes Luz Serrano
aa03f479f2 Cleanup tox and zuul
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
2023-02-28 12:33:53 -03:00
Al Bailey
1e58027156 Update tox.ini to work with tox 4
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
2022-12-30 14:11:59 +00:00
Al Bailey
baccc223f0 Fix zuul failures during setup
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
2022-10-28 14:02:38 +00:00
Bernardo Decco
58cb03c5cd Removing py36 gates from zuul for platform-armada-app
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
2021-09-30 10:29:52 -03:00
Charles Short
c550e402bf Enable py39 tox gate/test for app plugins
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
2021-09-13 11:37:39 -04:00
Charles Short
57ec63d970 Fix pylint gate
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
2021-09-01 10:51:00 -04:00
Robert Church
086a81deea Enable Zuul tox jobs for platform plugin validation
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>
2020-12-15 16:42:40 +00:00
Bin Qian
d7474cf309 Adding job to upload commits to GitHub
Add job to publish platform-armada-app repo to GitHub

Change-Id: Ibfe937e4682f29ae3466bcca5e8f3d0f72e89e17
Story: 2007252
Task: 38691
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2020-02-06 14:22:35 -05:00
Al Bailey
20a9033190 Adding zuul jobs for new repo
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>
2019-09-09 14:47:45 -05:00