be09ccc584
The original cgcs-patch is rpm based which requires a complete re-write to work on ostree/dpkg systems like Debian. The code has been forked, since the older Centos env and python2.7 are end-of-life. Forking the code allows all new development to not require re-testing on Centos. The debian folder under cgcs-patch has been moved under sw-patch Renaming and refactoring will be done in later commits. pylint is un-clamped in order to work on python3.9 Some minor pylint suppressions have been added. Test Plan: Verify that this builds on Debian Verify that the ISO installs the new content on Debian without breaking packages that import cgcs_patch. Verify patching service runs on Debian Co-Authored-By: Jessica Castelino <jessica.castelino@windriver.com> Story: 2009101 Task: 43076 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I3f1bca749404053bae63d4bcc9fb2477cf909fcd |
||
---|---|---|
.. | ||
README.txt | ||
patch_id_allocator.py | ||
patch_id_allocator_client.py | ||
patch_id_allocator_server.conf | ||
patch_id_allocator_server.py |
README.txt
Intended to run on a single build server. Currently yow-cgts2-lx # On other build servers mkdir -p /localdisk/designer/jenkins/bin cp patch_id_allocator_client.py /localdisk/designer/jenkins/bin # On the intended server: e.g. yow-cgts2-lx mkdir -p /localdisk/designer/jenkins/bin cp *py /localdisk/designer/jenkins/bin/ mkdir -p /localdisk/designer/jenkins/patch_ids sudo cp patch_id_allocator_server.conf /etc/init sudo initctl reload-configuration sudo start script # Change to a different server edit patch_id_allocator_client.py change the line ... server = 'yow-cgts2-lx.wrs.com' # TODO: Need to back up the /localdisk/designer/jenkins/patch_ids directory # Quick test Point your browser at this url: http://yow-cgts2-lx:8888/get_patch_id expected result is: CGCS_None_PATCH_0000 on each reload of the page, the number increments: CGCS_None_PATCH_0001 CGCS_None_PATCH_0002 ....