Krinkle has uploaded a new change for review.

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

Change subject: Add temporary rl-test.php entry point
......................................................................

Add temporary rl-test.php entry point

This is used on mw1017 to gather some statistics while investigating
the impact of bug T105255 and subsequently to confirm whether
the suggested fix works.

This was manually put on mw1017 but got removed due to scap.

Bug: T105255
Change-Id: Ic7c9a8acb37238ab43c1888011cc1d596bf1951e
---
A w/rl-test.php
1 file changed, 19 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/58/227358/1

diff --git a/w/rl-test.php b/w/rl-test.php
new file mode 100644
index 0000000..998ceae
--- /dev/null
+++ b/w/rl-test.php
@@ -0,0 +1,19 @@
+<?php
+
+date_default_timezone_set( 'UTC' );
+header( 'Access-Control-Allow-Origin: *' );
+header( 'Content-Type: text/plain; charset=utf-8' );
+
+$version = isset( $_GET['version'] ) && is_numeric( $_GET['version'] ) ? 
intval( $_GET['version'] ) : '-';
+$date = date( 'r' );
+
+$uname = posix_uname();
+if ( !isset( $uname['nodename'] ) || $uname['nodename'] !== 'mw1017' ) {
+       header( 'HTTP/1.0 404 Not Found' );
+       echo "/* nooo */\n";
+       exit;
+}
+
+$ok = file_put_contents( '/tmp/rl-test.log', "[$date] version: $version\n", 
FILE_APPEND );
+echo $ok ? "/* yep */\n" : "/* nope */\n";
+exit;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7c9a8acb37238ab43c1888011cc1d596bf1951e
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>

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

Reply via email to