r78616 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78615‎ | r78616 | r78617 >
Date:03:18, 20 December 2010
Author:rfaulk
Status:deferred
Tags:
Comment:
Changed paths in bash scripts to use working copy on grosley. Fixed run_plots.py call bash script. Increased number of line types for plotting in fundraiser_reporting.py
Modified paths:
  • /trunk/fundraiser-statistics/bash/clear_logs.sh (modified) (history)
  • /trunk/fundraiser-statistics/bash/load_logs.sh (modified) (history)
  • /trunk/fundraiser-statistics/bash/log_copy.sh (modified) (history)
  • /trunk/fundraiser-statistics/bash/plot_build_day.sh (modified) (history)
  • /trunk/fundraiser-statistics/bash/plot_build_hr.sh (modified) (history)
  • /trunk/fundraiser-statistics/bash/report_data_daily.sh (modified) (history)
  • /trunk/fundraiser-statistics/bash/report_data_hourly.sh (modified) (history)
  • /trunk/fundraiser-statistics/bash/report_data_minutely.sh (modified) (history)
  • /trunk/fundraiser-statistics/bash/run_test.sh (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/fundraiser_reporting.py (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/run_plots.py (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/fundraiser_reporting.py
@@ -462,7 +462,7 @@
463463 pylab.figure(num=None,figsize=[26,14])
464464 count_keys = counts.keys()
465465
466 - line_types = ['b-o','g-o','r-o','c-o','m-o','k-o','b--o','g--o','r--o','c--o','m--o','k--o']
 466+ line_types = ['b-o','g-o','r-o','c-o','m-o','k-o','y-o','b--d','g--d','r--d','c--d','m--d','k--d','y--d','b-.s','g-.s','r-.s','c-.s','m-.s','k-.s','y-.s']
467467
468468 count = 0
469469 for key in counts.keys():
Index: trunk/fundraiser-statistics/fundraiser-scripts/run_plots.py
@@ -27,4 +27,4 @@
2828 blpr.run('LP', 'don_per_view')
2929 blpr.run('BAN', 'don_per_imp')
3030 blpr.run('BAN', 'click_rate')
31 -blpr.run('BAN', 'conversion_rate')
\ No newline at end of file
 31+blpr.run('LP', 'conversion_rate')
\ No newline at end of file
Index: trunk/fundraiser-statistics/bash/plot_build_hr.sh
@@ -1,6 +1,6 @@
22 #!/bin/bash
33
4 -cd /home/rfaulk/fundraiser-scripts
 4+cd /home/rfaulk/fundraiser-statistics/fundraiser-scripts
55
66 python run_plots.py
77
Index: trunk/fundraiser-statistics/bash/report_data_daily.sh
@@ -1,7 +1,7 @@
22 #!/bin/bash
33
4 -cd /home/rfaulk/fundraiser-scripts
 4+cd /home/rfaulk/fundraiser-statistics/fundraiser-scripts
55
66 python run_test_reporting_daily.py
77
8 -cp /home/rfaulk/fundraiser-scripts/html/report_impressions_country.html /srv/org.wikimedia.fundraising/stats/
 8+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/html/report_impressions_country.html /srv/org.wikimedia.fundraising/stats/
Index: trunk/fundraiser-statistics/bash/report_data_hourly.sh
@@ -1,11 +1,11 @@
22 #!/bin/bash
33
4 -cd /home/rfaulk/fundraiser-scripts
 4+cd /home/rfaulk/fundraiser-statistics/fundraiser-scripts
55
66 python run_test_reporting_hourly.py
77 # python run_test_reporting_hourly.py 24
88
9 -cp /home/rfaulk/fundraiser-scripts/html/report_campaign_ecomm.html /srv/org.wikimedia.fundraising/stats/
10 -cp /home/rfaulk/fundraiser-scripts/html/report_campaign_logs.html /srv/org.wikimedia.fundraising/stats/
 9+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/html/report_campaign_ecomm.html /srv/org.wikimedia.fundraising/stats/
 10+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/html/report_campaign_logs.html /srv/org.wikimedia.fundraising/stats/
1111 # cp /home/rfaulk/fundraiser-scripts/html/report_campaign_ecomm_by_hr.html /srv/org.wikimedia.fundraising/stats/
1212 # cp /home/rfaulk/fundraiser-scripts/html/report_campaign_logs_by_hr.html /srv/org.wikimedia.fundraising/stats/
Index: trunk/fundraiser-statistics/bash/clear_logs.sh
@@ -1,5 +1,5 @@
22 #!/bin/bash
3 -cd /home/rfaulk/fundraiser-scripts/logs
 3+cd /home/rfaulk/fundraiser-statistics/fundraiser-scripts/logs
44 D=$(date +%Y-%m-%d)
55 rm bannerImpressions-$D*
66 rm landingpages-$D*
Index: trunk/fundraiser-statistics/bash/plot_build_day.sh
@@ -1,5 +1,5 @@
22 #!/bin/bash
33
4 -cd /home/rfaulkner/trunk/projects/fundraiser-scripts
 4+cd /home/rfaulkner/fundraiser-statistics/fundraiser-scripts
55
66 python run_plot_total_amount_day.py
Index: trunk/fundraiser-statistics/bash/report_data_minutely.sh
@@ -1,12 +1,12 @@
22 #!/bin/bash
33
4 -cd /home/rfaulk/fundraiser-scripts
 4+cd /home/rfaulk/fundraiser-statistics/fundraiser-scripts
55
66 python run_tracking_report.py 5
77
8 -cp /home/rfaulk/fundraiser-scripts/html/report_contribution_tracking.html /srv/org.wikimedia.fundraising/stats/
 8+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/html/report_contribution_tracking.html /srv/org.wikimedia.fundraising/stats/
99
1010 python run_test_reporting_hourly.py 10
1111
12 -cp /home/rfaulk/fundraiser-scripts/html/report_campaign_logs_by_hr.html /srv/org.wikimedia.fundraising/stats/
13 -cp /home/rfaulk/fundraiser-scripts/html/report_campaign_ecomm_by_hr.html /srv/org.wikimedia.fundraising/stats/
 12+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/html/report_campaign_logs_by_hr.html /srv/org.wikimedia.fundraising/stats/
 13+cp /home/rfaulk/fundraiser-statistics/fundraiser-scripts/html/report_campaign_ecomm_by_hr.html /srv/org.wikimedia.fundraising/stats/
Index: trunk/fundraiser-statistics/bash/log_copy.sh
@@ -51,7 +51,7 @@
5252 #echo $T
5353
5454
55 -cd /home/rfaulk/fundraiser-scripts/logs
 55+cd /home/rfaulk/fundraiser-statistics/fundraiser-scripts/logs
5656
5757 sftp rfaulk@hume.wikimedia.org:/a/static/uncompressed/udplogs/landingpages-$T*
5858 sftp rfaulk@hume.wikimedia.org:/a/static/uncompressed/udplogs/bannerImpressions-$T*
Index: trunk/fundraiser-statistics/bash/load_logs.sh
@@ -1,6 +1,6 @@
22 #!/bin/bash
33
4 -cd /home/rfaulk/fundraiser-scripts
 4+cd /home/rfaulk/fundraiser-statistics/fundraiser-scripts
55
66 # get date from command line args
77 day=$1 # start day
Index: trunk/fundraiser-statistics/bash/run_test.sh
@@ -2,7 +2,7 @@
33
44 # RUN DONATION PROCESS TESTS HOURLY
55
6 -cd /home/rfaulk/fundraiser-scripts
 6+cd /home/rfaulk/fundraiser-statistics/fundraiser-scripts
77
88 D=$(date +%Y%m)
99 day=$(date +%d)

Status & tagging log