Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #599 from rhelmer/master

(no bug) bump dates in sample data
  • Loading branch information...
commit 357df7a56f6f32694ccff49af73e6be0992b60e0 2 parents 6ee9a0c + f938e4f
@rhelmer rhelmer authored
View
3  socorro/external/postgresql/setupdb_app.py
@@ -139,6 +139,7 @@ def main(self):
db.execute('DROP DATABASE %s' % self.database_name,
['database "%s" does not exist' % self.database_name])
+ db.execute('DROP SCHEMA pgx_diag', ['schema "pgx_diag" does not exist'])
db.execute('CREATE DATABASE %s' % self.database_name,
['database "%s" already exists' % self.database_name])
@@ -155,7 +156,7 @@ def main(self):
if not self.no_schema:
with open('sql/schema.sql') as f:
- db.execute(f.read())
+ db.execute(f.read(), ['schema "pgx_diag" already exists'])
db.execute('SELECT weekly_report_partitions()')
else:
View
4 tools/dataload/import.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-TABLES="daily_crash_codes os_names os_name_matches process_types products release_channels product_release_channels raw_adu release_channel_matches releases_raw uptime_levels windows_versions reports os_versions productdims product_productid_map"
+TABLES="daily_crash_codes os_names os_name_matches process_types products release_channels product_release_channels raw_adu release_channel_matches releases_raw uptime_levels windows_versions reports os_versions productdims product_productid_map release_repositories"
for table in $TABLES
do
@@ -13,5 +13,5 @@ do
fi
done
-psql -c "SELECT backfill_matviews('2012-04-02', '2012-04-03')" breakpad
+psql -c "SELECT backfill_matviews('2012-05-15', '2012-05-16')" breakpad
psql -c "UPDATE product_versions SET featured_version = true" breakpad
View
64 tools/dataload/raw_adu.csv
@@ -1,33 +1,33 @@
adu_count,date,product_name,product_os_platform,product_os_version,product_version,build,build_channel,product_guid
-17,2012-04-02 00:00:00,WaterWolf,Linux,,1.0,20120401000001,release,{waterwolf@example.org}
-8,2012-04-02 00:00:00,WaterWolf,Mac OS/X,,1.0,20120401000001,release,{waterwolf@example.org}
-22,2012-04-02 00:00:00,WaterWolf,Other,,1.0,20120401000001,release,{waterwolf@example.org}
-98,2012-04-02 00:00:00,WaterWolf,Windows,,1.0,20120401000001,release,{waterwolf@example.org}
-10,2012-04-02 00:00:00,WaterWolf,Linux,,2.0,20120401000002,beta,{waterwolf@example.org}
-9,2012-04-02 00:00:00,WaterWolf,Mac OS/X,,2.0,20120401000002,beta,{waterwolf@example.org}
-12,2012-04-02 00:00:00,WaterWolf,Other,,2.0,20120401000002,beta,{waterwolf@example.org}
-38,2012-04-02 00:00:00,WaterWolf,Windows,,2.0,20120401000002,beta,{waterwolf@example.org}
-9,2012-04-02 00:00:00,WaterWolf,Linux,,3.0a2,20120401000002,nightly,{waterwolf@example.org}
-10,2012-04-02 00:00:00,WaterWolf,Mac OS/X,,3.0a2,20120401000003,nightly,{waterwolf@example.org}
-14,2012-04-02 00:00:00,WaterWolf,Other,,3.0a2,20120401000003,nightly,{waterwolf@example.org}
-28,2012-04-02 00:00:00,WaterWolf,Windows,,3.0a2,20120401000003,nightly,{waterwolf@example.org}
-3,2012-04-02 00:00:00,WaterWolf,Linux,,4.0a1,20120401000004,nightly,{waterwolf@example.org}
-2,2012-04-02 00:00:00,WaterWolf,Mac OS/X,,4.0a1,20120401000004,nightly,{waterwolf@example.org}
-48,2012-04-02 00:00:00,WaterWolf,Other,,4.0a1,20120401000004,nightly,{waterwolf@example.org}
-4,2012-04-02 00:00:00,WaterWolf,Windows,,4.0a1,20120401000004,nightly,{waterwolf@example.org}
-7,2012-04-03 00:00:00,WaterWolf,Linux,,1.0,20120401000001,release,{waterwolf@example.org}
-18,2012-04-03 00:00:00,WaterWolf,Mac OS/X,,1.0,20120401000001,release,{waterwolf@example.org}
-2,2012-04-03 00:00:00,WaterWolf,Other,,1.0,20120401000001,release,{waterwolf@example.org}
-8,2012-04-03 00:00:00,WaterWolf,Windows,,1.0,20120401000001,release,{waterwolf@example.org}
-1,2012-04-03 00:00:00,WaterWolf,Linux,,2.0,20120401000002,beta,{waterwolf@example.org}
-19,2012-04-03 00:00:00,WaterWolf,Mac OS/X,,2.0,20120401000002,beta,{waterwolf@example.org}
-2,2012-04-03 00:00:00,WaterWolf,Other,,2.0,20120401000002,beta,{waterwolf@example.org}
-8,2012-04-03 00:00:00,WaterWolf,Windows,,2.0,20120401000002,beta,{waterwolf@example.org}
-19,2012-04-03 00:00:00,WaterWolf,Linux,,3.0a2,20120401000003,nightly,{waterwolf@example.org}
-1,2012-04-03 00:00:00,WaterWolf,Mac OS/X,,3.0a2,20120401000003,nightly,{waterwolf@example.org}
-4,2012-04-03 00:00:00,WaterWolf,Other,,3.0a2,20120401000003,nightly,{waterwolf@example.org}
-8,2012-04-03 00:00:00,WaterWolf,Windows,,3.0a2,20120401000003,nightly,{waterwolf@example.org}
-13,2012-04-03 00:00:00,WaterWolf,Linux,,4.0a1,20120401000004,nightly,{waterwolf@example.org}
-12,2012-04-03 00:00:00,WaterWolf,Mac OS/X,,4.0a1,20120401000004,nightly,{waterwolf@example.org}
-8,2012-04-03 00:00:00,WaterWolf,Other,,4.0a1,20120401000004,nightly,{waterwolf@example.org}
-14,2012-04-03 00:00:00,WaterWolf,Windows,,4.0a1,20120401000004,nightly,{waterwolf@example.org}
+17,2012-05-15 00:00:00,WaterWolf,Linux,,1.0,20120515000001,release,{waterwolf@example.org}
+8,2012-05-15 00:00:00,WaterWolf,Mac OS/X,,1.0,20120515000001,release,{waterwolf@example.org}
+22,2012-05-15 00:00:00,WaterWolf,Other,,1.0,20120515000001,release,{waterwolf@example.org}
+98,2012-05-15 00:00:00,WaterWolf,Windows,,1.0,20120515000001,release,{waterwolf@example.org}
+10,2012-05-15 00:00:00,WaterWolf,Linux,,2.0,20120515000002,beta,{waterwolf@example.org}
+9,2012-05-15 00:00:00,WaterWolf,Mac OS/X,,2.0,20120515000002,beta,{waterwolf@example.org}
+12,2012-05-15 00:00:00,WaterWolf,Other,,2.0,20120515000002,beta,{waterwolf@example.org}
+38,2012-05-15 00:00:00,WaterWolf,Windows,,2.0,20120515000002,beta,{waterwolf@example.org}
+9,2012-05-15 00:00:00,WaterWolf,Linux,,3.0a2,20120515000002,nightly,{waterwolf@example.org}
+10,2012-05-15 00:00:00,WaterWolf,Mac OS/X,,3.0a2,20120515000003,nightly,{waterwolf@example.org}
+14,2012-05-15 00:00:00,WaterWolf,Other,,3.0a2,20120515000003,nightly,{waterwolf@example.org}
+28,2012-05-15 00:00:00,WaterWolf,Windows,,3.0a2,20120515000003,nightly,{waterwolf@example.org}
+3,2012-05-15 00:00:00,WaterWolf,Linux,,4.0a1,20120515000004,nightly,{waterwolf@example.org}
+2,2012-05-15 00:00:00,WaterWolf,Mac OS/X,,4.0a1,20120515000004,nightly,{waterwolf@example.org}
+48,2012-05-15 00:00:00,WaterWolf,Other,,4.0a1,20120515000004,nightly,{waterwolf@example.org}
+4,2012-05-15 00:00:00,WaterWolf,Windows,,4.0a1,20120515000004,nightly,{waterwolf@example.org}
+7,2012-05-16 00:00:00,WaterWolf,Linux,,1.0,20120515000001,release,{waterwolf@example.org}
+18,2012-05-16 00:00:00,WaterWolf,Mac OS/X,,1.0,20120515000001,release,{waterwolf@example.org}
+2,2012-05-16 00:00:00,WaterWolf,Other,,1.0,20120515000001,release,{waterwolf@example.org}
+8,2012-05-16 00:00:00,WaterWolf,Windows,,1.0,20120515000001,release,{waterwolf@example.org}
+1,2012-05-16 00:00:00,WaterWolf,Linux,,2.0,20120515000002,beta,{waterwolf@example.org}
+19,2012-05-16 00:00:00,WaterWolf,Mac OS/X,,2.0,20120515000002,beta,{waterwolf@example.org}
+2,2012-05-16 00:00:00,WaterWolf,Other,,2.0,20120515000002,beta,{waterwolf@example.org}
+8,2012-05-16 00:00:00,WaterWolf,Windows,,2.0,20120515000002,beta,{waterwolf@example.org}
+19,2012-05-16 00:00:00,WaterWolf,Linux,,3.0a2,20120515000003,nightly,{waterwolf@example.org}
+1,2012-05-16 00:00:00,WaterWolf,Mac OS/X,,3.0a2,20120515000003,nightly,{waterwolf@example.org}
+4,2012-05-16 00:00:00,WaterWolf,Other,,3.0a2,20120515000003,nightly,{waterwolf@example.org}
+8,2012-05-16 00:00:00,WaterWolf,Windows,,3.0a2,20120515000003,nightly,{waterwolf@example.org}
+13,2012-05-16 00:00:00,WaterWolf,Linux,,4.0a1,20120515000004,nightly,{waterwolf@example.org}
+12,2012-05-16 00:00:00,WaterWolf,Mac OS/X,,4.0a1,20120515000004,nightly,{waterwolf@example.org}
+8,2012-05-16 00:00:00,WaterWolf,Other,,4.0a1,20120515000004,nightly,{waterwolf@example.org}
+14,2012-05-16 00:00:00,WaterWolf,Windows,,4.0a1,20120515000004,nightly,{waterwolf@example.org}
View
14 tools/dataload/release_repositories.csv
@@ -0,0 +1,14 @@
+repository
+mozilla-central
+mozilla-1.9.2
+comm-central
+comm-1.9.2
+comm-central-trunk
+mozilla-central-android
+mozilla-release
+mozilla-beta
+mozilla-aurora
+mozilla-aurora-android
+mozilla-esr10
+mozilla-esr10-android
+release
View
24 tools/dataload/releases_raw.csv
@@ -1,13 +1,13 @@
product_name,version,platform,build_id,build_type,beta_number,repository
-waterwolf,1.0,linux,20120401000001,Release,,mozilla-release
-waterwolf,1.0,macosx,20120401000001,Release,,mozilla-release
-waterwolf,1.0,win32,20120401000001,Release,,mozilla-release
-waterwolf,2.0,linux,20120401000002,Beta,1,mozilla-beta
-waterwolf,2.0,macosx,20120401000002,Beta,1,mozilla-beta
-waterwolf,2.0,win32,20120401000002,Beta,1,mozilla-beta
-waterwolf,3.0a2,linux,20120401000003,Aurora,,mozilla-aurora
-waterwolf,3.0a2,macosx,20120401000003,Aurora,,mozilla-aurora
-waterwolf,3.0a2,win32,20120401000003,Aurora,,mozilla-aurora
-waterwolf,4.0a1,linux,20120401000004,Nightly,,mozilla-central
-waterwolf,4.0a1,macosx,20120401000004,Nightly,,mozilla-central
-waterwolf,4.0a1,win32,20120401000004,Nightly,,mozilla-central
+waterwolf,1.0,linux,20120515000001,Release,,mozilla-release
+waterwolf,1.0,macosx,20120515000001,Release,,mozilla-release
+waterwolf,1.0,win32,20120515000001,Release,,mozilla-release
+waterwolf,2.0,linux,20120515000002,Beta,1,mozilla-beta
+waterwolf,2.0,macosx,20120515000002,Beta,1,mozilla-beta
+waterwolf,2.0,win32,20120515000002,Beta,1,mozilla-beta
+waterwolf,3.0a2,linux,20120515000003,Aurora,,mozilla-aurora
+waterwolf,3.0a2,macosx,20120515000003,Aurora,,mozilla-aurora
+waterwolf,3.0a2,win32,20120515000003,Aurora,,mozilla-aurora
+waterwolf,4.0a1,linux,20120515000004,Nightly,,mozilla-central
+waterwolf,4.0a1,macosx,20120515000004,Nightly,,mozilla-central
+waterwolf,4.0a1,win32,20120515000004,Nightly,,mozilla-central
View
16 tools/dataload/reports.csv
@@ -1,9 +1,9 @@
id,client_crash_date,date_processed,uuid,product,version,build,signature,url,install_age,last_crash,uptime,cpu_name,cpu_info,reason,address,os_name,os_version,email,user_id,started_datetime,completed_datetime,success,truncated,processor_notes,user_comments,app_notes,distributor,distributor_version,topmost_filenames,addons_checked,flash_version,hangid,process_type,release_channel,productid
-1,2012-04-02 10:34:45-07,2012-04-02 23:35:06.262196,0ac2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,1.0,20120401000001,FakeSignature1,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-04-02 00:35:16.368154,2012-04-02 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,release,{waterwolf@example.org}
-2,2012-04-02 10:34:45-07,2012-04-02 23:35:06.262196,0bc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,2.0,20120401000002,FakeSignature2,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-04-02 00:35:16.368154,2012-04-02 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,beta,{waterwolf@example.org}
-3,2012-04-02 10:34:45-07,2012-04-02 23:35:06.262196,0cc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,3.0a2,20120401000003,FakeSignature3,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-04-02 00:35:16.368154,2012-04-02 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,aurora,{waterwolf@example.org}
-4,2012-04-02 10:34:45-07,2012-04-02 23:35:06.262196,0dc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,4.0a1,20120401000004,FakeSignature4,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-04-02 00:35:16.368154,2012-04-02 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,nightly,{waterwolf@example.org}
-5,2012-04-03 10:34:45-07,2012-04-03 23:35:06.262196,1ac2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,1.0,20120401000001,FakeSignature1,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-04-03 00:35:16.368154,2012-04-03 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,release,{waterwolf@example.org}
-6,2012-04-03 10:34:45-07,2012-04-03 23:35:06.262196,1bc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,2.0,20120401000002,FakeSignature2,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-04-03 00:35:16.368154,2012-04-03 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,beta,{waterwolf@example.org}
-7,2012-04-03 10:34:45-07,2012-04-03 23:35:06.262196,1cc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,3.0a2,20120401000003,FakeSignature3,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-04-03 00:35:16.368154,2012-04-03 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,aurora,{waterwolf@example.org}
-8,2012-04-03 10:34:45-07,2012-04-03 23:35:06.262196,1dc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,4.0a1,20120401000004,FakeSignature4,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-04-03 00:35:16.368154,2012-04-03 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,nightly,{waterwolf@example.org}
+1,2012-05-15 10:34:45-07,2012-05-15 23:35:06.262196,0ac2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,1.0,20120515000001,FakeSignature1,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-05-15 00:35:16.368154,2012-05-15 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,release,{waterwolf@example.org}
+2,2012-05-15 10:34:45-07,2012-05-15 23:35:06.262196,0bc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,2.0,20120515000002,FakeSignature2,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-05-15 00:35:16.368154,2012-05-15 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,beta,{waterwolf@example.org}
+3,2012-05-15 10:34:45-07,2012-05-15 23:35:06.262196,0cc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,3.0a2,20120515000003,FakeSignature3,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-05-15 00:35:16.368154,2012-05-15 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,aurora,{waterwolf@example.org}
+4,2012-05-15 10:34:45-07,2012-05-15 23:35:06.262196,0dc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,4.0a1,20120515000004,FakeSignature4,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-05-15 00:35:16.368154,2012-05-15 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,nightly,{waterwolf@example.org}
+5,2012-05-16 10:34:45-07,2012-05-16 23:35:06.262196,1ac2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,1.0,20120515000001,FakeSignature1,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-05-16 00:35:16.368154,2012-05-16 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,release,{waterwolf@example.org}
+6,2012-05-16 10:34:45-07,2012-05-16 23:35:06.262196,1bc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,2.0,20120515000002,FakeSignature2,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-05-16 00:35:16.368154,2012-05-16 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,beta,{waterwolf@example.org}
+7,2012-05-16 10:34:45-07,2012-05-16 23:35:06.262196,1cc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,3.0a2,20120515000003,FakeSignature3,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-05-16 00:35:16.368154,2012-05-16 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,aurora,{waterwolf@example.org}
+8,2012-05-16 10:34:45-07,2012-05-16 23:35:06.262196,1dc2e16a-a718-43c0-a1a5-6bf922111017,WaterWolf,4.0a1,20120515000004,FakeSignature4,,391578,,25,x86,GenuineIntel family 6 model 23 stepping 10 | 2,EXCEPTION_ACCESS_VIOLATION_READ,0x66a0665,Windows NT,5.1.2600 Service Pack 3,,"",2012-05-16 00:35:16.368154,2012-05-16 00:35:18.463317,t,f,"",,,,,"",t,9.0.124.0,,,nightly,{waterwolf@example.org}
Please sign in to comment.
Something went wrong with that request. Please try again.