testing: glob out number of bytes sent in Apache logs in tests (Bug 1727339) r=zeid
authorConnor Sheehan <sheehan@mozilla.com>
Tue, 24 Aug 2021 16:03:46 +0000
changeset 7721 8f8a4f1301d3e52d05c33871a34a256abc8b2ad6
parent 7720 7de4cb0e90382f4940c5e665c32c3b5d9eace725
child 7722 af87b4de9db82d9e7f20cd0389e375de5f8f521f
push id3863
push usercosheehan@mozilla.com
push dateTue, 24 Aug 2021 16:05:52 +0000
treeherderversion-control-tools@177006efefb3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerszeid
bugs1727339
testing: glob out number of bytes sent in Apache logs in tests (Bug 1727339) r=zeid These values frequently go up/down by a few bytes when updating versions of Mercurial, causing us to update them to their new values each time. Sending a few extra bytes isn't a huge deal, and as long as the wire protocol commnands are taking place in the same order we don't care about the slight bandwidth increases. Depends on D123477 Differential Revision: https://phabricator.services.mozilla.com/D123478
hgserver/tests/test-push-basic.t
--- a/hgserver/tests/test-push-basic.t
+++ b/hgserver/tests/test-push-basic.t
@@ -174,23 +174,23 @@ Upgrade notice is advertised to clients 
   remote: https://mozilla-version-control-tools.readthedocs.io/en/latest/hgmozilla/installing.html
   remote: ****************************************************************************************
   remote: 
   remote: recorded changegroup in replication log in \d+\.\d+s (re)
 
 Check logs for errors
 
   $ hgmo exec hgweb0 cat /var/log/httpd/hg.mozilla.org/access_log
-  * - - [*/*/*:*:*:* +0000] "GET /mozilla-central?cmd=capabilities HTTP/1.1" 200 516 "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
-  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=batch HTTP/1.1" 200 42 "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
-  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=getbundle HTTP/1.1" 200 82 "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
-  * - - [*/*/*:*:*:* +0000] "GET /mozilla-central?cmd=capabilities HTTP/1.1" 200 516 "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
-  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=batch HTTP/1.1" 200 43 "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
-  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=listkeys HTTP/1.1" 200 15 "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
+  * - - [*/*/*:*:*:* +0000] "GET /mozilla-central?cmd=capabilities HTTP/1.1" 200 * "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
+  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=batch HTTP/1.1" 200 * "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
+  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=getbundle HTTP/1.1" 200 * "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
+  * - - [*/*/*:*:*:* +0000] "GET /mozilla-central?cmd=capabilities HTTP/1.1" 200 * "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
+  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=batch HTTP/1.1" 200 * "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
+  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=listkeys HTTP/1.1" 200 * "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
   * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=listkeys HTTP/1.1" 200 - "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
-  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=unbundle HTTP/1.1" 401 22 "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
-  * - - [*/*/*:*:*:* +0000] "GET /mozilla-central/json-rev/77538e1ce4be HTTP/1.1" 200 350 "-" "-" (glob)
-  * - - [*/*/*:*:*:* +0000] "GET /mozilla-central/json-pushes HTTP/1.1" 200 116 "-" "-" (glob)
+  * - - [*/*/*:*:*:* +0000] "POST /mozilla-central?cmd=unbundle HTTP/1.1" 401 * "-" "mercurial/proto-1.0 (Mercurial *)" (glob)
+  * - - [*/*/*:*:*:* +0000] "GET /mozilla-central/json-rev/77538e1ce4be HTTP/1.1" 200 * "-" "-" (glob)
+  * - - [*/*/*:*:*:* +0000] "GET /mozilla-central/json-pushes HTTP/1.1" 200 * "-" "-" (glob)
   $ hgmo exec hgweb0 cat /var/log/httpd/hg.mozilla.org/error_log
 
 Cleanup
 
   $ hgmo clean