From cbe36e4552065ad3fef0e3fdbddd8bc9a481938a Mon Sep 17 00:00:00 2001 From: Marco Mascheroni Date: Wed, 22 Jan 2025 06:54:24 -0800 Subject: [PATCH] gfdiff tool revamp 1) Fixed issue with mergely interface 2) Improved command line interface 3) Diff algorithm changes --- doc/factory/troubleshooting.html | 48 +++++-- factory/tools/gfdiff.py | 211 ++++++++++++------------------- 2 files changed, 116 insertions(+), 143 deletions(-) diff --git a/doc/factory/troubleshooting.html b/doc/factory/troubleshooting.html index c33a96e309..a988a02ea4 100644 --- a/doc/factory/troubleshooting.html +++ b/doc/factory/troubleshooting.html @@ -790,22 +790,44 @@

If the glideins are still running

Checking differences in entries configuration

- The gfdiff tool can be used to check differences among entries in the - xml configuraiton. For example: + The gfdiff tool has been improved to use positional arguments instead of options. You can use it to check differences among entries in the XML configuration. For example:
- bash-4.1$ gfdiff --debug --confA=data/automatically_generated.xml - --confB=/etc/osg-gfactory/10-cmst1-uscmst2-all.xml - --entryA=CMSHTPC_T2_US_Florida_slurm - --entryB=CMSHTPC_T2_US_Florida_slurm Checking entry attributes: Key - proxy_url(OSG) not found in CMSHTPC_T2_US_Florida_slurm Checking inner - xml: GLIDEIN_MaxMemMBs: Key glidein_publish is different: (True vs - False) GLIDEIN_MaxMemMBs: Key job_publish is different: (False vs - True) CONDOR_ARCH: not present in CMSHTPC_T2_US_Florida_slurm - GLIDEIN_Max_Walltime: not present in CMSHTPC_T2_US_Florida_slurm - GLIDEIN_SEs: not present in CMSHTPC_T2_US_Florida_slurm +
+            [0618] gfactory@gfactory-2 ~/mmascher/gfdiff$ ./gfdiff 10-hosted-ces.auto.xml.new 10-hosted-ces.auto.xml.bak241121 OSG_US_CHTC-Spark-CE1-gpu
+            --- text_a
+            +++ text_b
+            @@ -1,6 +1,6 @@
+             
+                     
+            -            
+            +            
+                           
+                           
+                           
+            @@ -13,9 +13,9 @@
+                           
+                              
+                              
+            +                  
+                              
+                              
+            -                  
+                           
+                        
+                     
+            @@ -31,7 +31,7 @@
+                        
+                        
+                        
+            -            
+            +            
+                     
+                     
+                     
+          
- +