update/sw-patch/cgcs-patch/cgcs_patch_id
Al Bailey 37cf948743 Cleanup tox targets for debian patching
- Removed the py27 target for sw-patch since it is
python3 only.
- Set the base python in tox.ini to python3.
- Removed the site-packages directive for pylint since
site level rpm component no longer needs to be installed.
- Added the pep8 target (it just calls flake8).
- Removed redundant settings already set at testenv level.
- Cleaned up bandit suppressions that were not needed.
- Cleaned up the flake8 suppressions that were not needed.
- Cleaned up the pylint suppressions that were not needed.
- Minor code cleanup to reduce number of flake8 suppressions
- Minor code cleanup to reduce number of pylint suppressions
- Updated the copyright dates for updated source files

Test Plan:
  Tox

Story: 2009969
Task: 45209
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Ifccf2a274530b14bacb6ce2dc32f8cca01e26217
2022-04-28 21:35:30 +00:00
..
patch_id_allocator_client.py Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
patch_id_allocator_server.conf Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00
patch_id_allocator_server.py Cleanup tox targets for debian patching 2022-04-28 21:35:30 +00:00
patch_id_allocator.py Cleanup tox targets for debian patching 2022-04-28 21:35:30 +00:00
README.txt Fork cgcs-patch package as sw-patch for Debian 2022-03-29 20:35:14 +00:00

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
       ....