MarkTraceur has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/53687


Change subject: Add some more Parsoid tests for other components
......................................................................

Add some more Parsoid tests for other components

Testing, now, the API, the parse.js tool, and the roundtrip-test utility.
More to come, maybe, in the future.

Change-Id: I06a184d87b1bf8eaf7bd9db07893b6c7020fdef7
---
M parsoid.yaml
1 file changed, 49 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/integration/jenkins-job-builder-config 
refs/changes/87/53687/1

diff --git a/parsoid.yaml b/parsoid.yaml
index 5132504..417acd2 100644
--- a/parsoid.yaml
+++ b/parsoid.yaml
@@ -88,6 +88,52 @@
               - failed:
                     failurenew: 1
 
+job-template:
+    name: parsoid-server-sanity-check
+    defaults:
+        use-zuul
+    builders:
+        - shell: |
+            # If any of these commands fail, something is wrong
+            set -e
+            cd js/api
+            # Build a unique string so we can kill the process later
+            UNIQUESTRING="$ZUUL_UUID $ZUUL_COMMIT"
+            nohup node server.js $UNIQUESTRING &
+            cd ../..
+            # Pull the standard test article
+            curl localhost:8000/fr/Barack_Obama -D headers.html > output.html
+            # Kill that process we started (and don't catch the grep processes)
+            kill `ps ax | grep "node server.js" | grep "$UNIQUESTRING" | sed 
"s/ .*//"`
+            # Make sure the response from the server was a 200 OK.
+            grep "^HTTP.*200 OK" headers.txt
+
+job-template:
+    name: parsoid-parse-tool-check
+    defaults:
+        use-zuul
+    builders:
+        - shell: |
+            # If any of these commands fail, something is wrong
+            set -e
+            cd js/tests
+            echo "[[Link]]s" | node parse --wt2wt | grep "\\[\\[Link\\]\\]s"
+            echo "[[Category:{{echo|blah}}]]" | node parse --wt2wt | grep 
"\\[\\[Category:{{echo|blah}}\\]\\]"
+            echo "'''ueoa''aoeu'''ueoa''aoeu" | node parse --wt2wt | grep 
"'''ueoa''aoeu'''ueoa''aoeu"
+
+job-template:
+    name: parsoid-roundtrip-test-check
+    defaults:
+        use-zuul
+    builders:
+        - shell: |
+            # If any of these commands fail, something is wrong
+            set -e
+            cd js/tests
+            node roundtrip-test.js "Barack Obama"
+            node roundtrip-test.js --wiki fr "Chope"
+            node roundtrip-test.js --xml "Parkour"
+
 - project:
     name: parsoid
     gerrit-name: mediawiki/extensions/Parsoid
@@ -95,3 +141,6 @@
         - parsoid-parsertests
         - parsoid-parsertests-run
         - parsoid-regressions
+        - parsoid-server-sanity-check
+        - parsoid-parse-tool-check
+        - parsoid-roundtrip-test-check

-- 
To view, visit https://gerrit.wikimedia.org/r/53687
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I06a184d87b1bf8eaf7bd9db07893b6c7020fdef7
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins-job-builder-config
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to