View -
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mxfile userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" version="5.5.6.2" editor="www.draw.io" type="device"><diagram>7V1vc5s4t/80mem9M+1gY4P9MkmTts82u3maTrv31R1iE5utbbyYtM1++j3COjI6CCMZgXEav7ENQsDRT0fnv87cy+XPd0mwnt/E03Bx1nemP8/ct2f9fs/1PPhiR562R/we/GMHZkk05Y12B+6if0J+0OFHH6NpuJEapnG8SKO1fHASr1bhJJWOBUkS/5CbPcQL+a7rYIZ33B24mwSL4tGv0TSd86M9b7w78T6MZnO8tTfkL3gfTL7NkvhxxW941ncfss/29DLAzvibbubBNP6RO+ReAWGTOIae2a/lz8twwYiLdNted11yVjx4Eq74s+2/wOWPkT7hu4dTIAX/GyfpPJ7Fq2BxtTt6kb1eyDpw4N88XS7gZw9+/hWm6RMfzeAxjeHQroePcbzm7eDZkqc/2fVvhvj3/3h3xRdAAATJLOSHOLzYo+ba8Dd8F8bLEHqEBkm4CNLouzyqAQfHTLQTl97GEdy17yCQEY8cxj2H/8cuts/Er8pTmXTkupzOvKMB6WcTPyaTsNDPeZIE7DWw2Zo12Ox73qHqNrw3+LHtEP/lSLU7lOFDjZXBSWLFbwcr7lge4tGhUCH9DOtCJTf8pgPO0WRnwMOfUcrGEX9ng5iNaWtQGLUDBW9siW0Mhq2wDW/cKNvgK+P3YPHIKXrW9xYwJBebNIlXM/g3Y/9m09VmiqegU/ksnphG3+khueH5I0AnidLtCPadt7/fVXYKJ6R+Cep3mGYw/DGP0vBuHUzY2R8gAMk4L0Xi9zBJQ+TUauCVLBcoLPzIySJ4bJ4TQ1yCjzxUJTawZ7S4hHMCTH6Lfkkg |
View -
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mxfile type="device" userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36" version="5.2.8.0" editor="www.draw.io"><diagram>7R3bduI48mtyTvYhOTbGJjyS23R2OjPZkO2ZfdrjgAOeBpy2TXdnvn5KoFLskgwylo1JwgMXI0tyqe4qVR05F/Ofv8T+8/Q2Ggezo441/nnkXB51Oj3vDN7ZhZf1ha7TX1+YxOF4fcl+vTAM/w74RYtfXYbjIMk1TKNolobP+YujaLEIRmnumh/H0Y98s6dolh/12Z/giK8XhiN/Jl/9IxynU37V9vhjsD8+BeFkikN7Llxm/zz6o6+TOFou+IBHHedp9Vr/Pfexs9WTOlcAxDiKoBv2bf7zIpgxQCKQ1uC4LvhXzDIOFnwim29w1jck6Qs+aDCG5+Y/ozidRpNo4c+uXq+er54lYB1Y8Guazmfw1YavfwVp+sKXzl+mEVx67eFzFD3zdjC3+OVPdv+piz//x7uTHwBX248nAb/krS+xqWba8Cf8JYjmAfQIDeJg5qfh9/wS+hwTJqKduPUuCmHUjsWR1kbk4zhrW/w3drGeE78rC2XSkeNwOCPyk36SaBmPAqmfQRz77DGw2TNrkGyar6sahvcGX9Yd4q8MqF4vrfBDjSvdg8SVXjO44vTzS3y2K6qQftyqqJJZ/rILzrHJzIIHP8OUrSN+Xy3iak0bQwUugupGBa9viG103UbYhtevlW1wMfjdny05RI863gyW5DxJ42gxgV8T9msyXiRj/As6zf+Lf4zD7/RSvuFgCagTh+l6BTvW5W/DrZ3CH7l+Cda/4jRDwx/TMA2Gz/6I/fsDlJ08nhdi4vcgTgPk1GrEKxAXXIZbPzKKB16bZnQOh+BHFlVzbGDDanF15gCY/Br7cwpB |
View puppet_compiler_submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/puppet_compiler/prepare.py b/puppet_compiler/prepare.py | |
index 6a61b21..81f18a9 100644 | |
--- a/puppet_compiler/prepare.py | |
+++ b/puppet_compiler/prepare.py | |
@@ -2,6 +2,7 @@ from contextlib import contextmanager | |
import json | |
import subprocess | |
import os | |
+import re | |
import shutil |
View puppet_compiler_submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/puppet_compiler/prepare.py b/puppet_compiler/prepare.py | |
index 6a61b21..81f18a9 100644 | |
--- a/puppet_compiler/prepare.py | |
+++ b/puppet_compiler/prepare.py | |
@@ -2,6 +2,7 @@ from contextlib import contextmanager | |
import json | |
import subprocess | |
import os | |
+import re | |
import shutil |
View puppet_compiler_submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/puppet_compiler/prepare.py b/puppet_compiler/prepare.py | |
index 6a61b21..7548c78 100644 | |
--- a/puppet_compiler/prepare.py | |
+++ b/puppet_compiler/prepare.py | |
@@ -2,6 +2,7 @@ from contextlib import contextmanager | |
import json | |
import subprocess | |
import os | |
+import re | |
import shutil |
View puppet_compiler_submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/puppet_compiler/prepare.py b/puppet_compiler/prepare.py index 6a61b21..7548c78 100644 --- a/puppet_compiler/prepare.py +++ b/puppet_compiler/prepare.py @@ -2,6 +2,7 @@ from contextlib import contextmanager import json import subprocess import os +import re import shutil import requests from puppet_compiler import _log @@ -128,20 +129,63 @@ class ManageCode(object): json_data = change.text.split("\n")[-2:][0] res = json.loads(json_data) revision = res["revisions"].values()[0]["_number"] + project = res["project"] ref = 'refs/changes/%02d/%d/%d' % ( self.change_id % 100, self.change_id, revision) _log.debug( - 'Downloading patch for change %d, revision %d', - self.change_id, revision) - git.fetch('-q', 'https://gerrit.wikimedia.org/r/operations/puppet', - ref) - git.checkout('FETCH_HEAD') - git.pull('--rebase', 'origin', 'production') + 'Downloading patch for project %s, change %d, revision %d', + project, self.change_id, revision) + + # Assumption: + # Gerrit suported repo names and branches: + # |
View puppet_compiler_submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/puppet_compiler/prepare.py b/puppet_compiler/prepare.py | |
index 6a61b21..76ab043 100644 | |
--- a/puppet_compiler/prepare.py | |
+++ b/puppet_compiler/prepare.py | |
@@ -2,6 +2,7 @@ from contextlib import contextmanager | |
import json | |
import subprocess | |
import os | |
+import re | |
import shutil |
View varnishkafka_logline.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
old mode 100644 | |
new mode 100755 | |
diff --git a/config.c b/config.c | |
index 3987fe2..f15b227 100644 | |
--- a/config.c | |
+++ b/config.c | |
@@ -191,10 +191,6 @@ static int conf_set (const char *name, const char *val, | |
} | |
} else if (!strcmp(name, "logline.data.copy")) |
View EventLogging.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mxfile type="device" userAgent="" version="5.2.8.3" editor="www.draw.io"><diagram>7V1tc6u6Ef41mZ5+SMYYYzsf83rS3pyZtGnvbT/dUWzFVgPGBZzE99ffFWgFCIF5EbaTE8/4BQECtLuPdh+t5BP7ynv/HpD18oc/p+7JcDB/P7GvT4bDyXgKn7xgmxSM7POkYBGweVJkpQWP7A8qCgeidMPmNMwdGPm+G7F1vnDmr1Z0FuXKSBD4b/nDnn03f9U1WeAV04LHGXGLpb+xebQUpdZYPAbfcUfZYikuPR2Okx1PZPayCPzNSlzvZGg/x69kt0ewrvhB7Rtow8D3oRb+y3u/oi5vR2yjpDVuS/bKmwzoStxH9Qmwi5/wStyNeM6T4diFUy+f4MeC/5AFgVoC1RaOmrPXwontaoIyTWWHqF9X3ZHc2r7qv3nlCjUc3PuLBVst4NedH0Zhk4twPQujLdpTbBGUq6EFu9+WLKKPazLje98AQKBsGXmu2L12CVudbkF3/beiigutf6VBRAXcxEVC5b9T36NRsIVDxF5nIEAFsWgqtt9Sy7aF5QyWGaO2RqKQCDRZyLpTI4Mfws70NmcXbO7WD95IMKcBNKjSTC55Ahzd2UDEZYsV/J5Bo9AACnhjMECvC7HjyY8i34MdIdQBErynz/yZBmnJpTjiegRlzAM4w3NlpXHpr0rNkc/vJd4FW8wD5biduQwEBApz+52S4HdrOH2H99kaNMe+fGaue+W7PtQIT4hgCPcRBf4LzewZxC+pPN1EjuIUIncGTkHkqAVZiU8MCFxcKSPwh8Cf0TD0vwTem8DHhxT4SNOtKnKmc3AvxKYfREt/4a+Ie5OWXqYIyZskI/v/0SjaCg+JbCIfitIa7n0unvg4aLxg+x9xfrzxX75x5vDNdxbFu84muBnvrGr80N8EsTry5k2K+FNUSiOgLonYa96J0rWtOPXBZ3FHI6Q4dYTUEKkRubGKiAQLGomzUgldBAHhl |