This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| """ | |
| Show a graph of external contributions - that is, commits from usernames | |
| not listed as "collaborators" on github. | |
| Example: ./contribs.py --since=2011-01-31 | |
| Outputs: | |
| JSON data suitable for graphing in flot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import shlex | |
| import re | |
| from cStringIO import StringIO | |
| c1 = 'jobname|1d|4:30' | |
| c2 = 'jobname | 1d | 4:30' | |
| def tokenize(t): | |
| if re.match('(\d+)d', t): return 'DAY' | |
| if re.match('(\d+)h', t): return 'HOUR' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python | |
| """ | |
| Create, prepare and load schema for Socorro PostgreSQL database. | |
| """ | |
| import psycopg2 | |
| import psycopg2.extensions | |
| from psycopg2 import ProgrammingError | |
| import sys | |
| import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def test_execute_postgres_with_acceptable_errors(self): | |
| config_manager = self._setup_config_manager() | |
| with config_manager.context() as config: | |
| with setupdb_app.PostgreSQLManager('postgres') as db: | |
| db.execute('CREATE DATABASE blah', ['not so good things']) | |
| calls = self.psycopg2.mock_calls | |
| self.assertEqual(calls[1], mock.call().set_isolation_level(0)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Makefile b/Makefile | |
| index abf4037..010be88 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -25,10 +25,10 @@ test: setup-test phpunit | |
| phpunit: | |
| phpunit webapp-php/tests/ | |
| -install: java_analysis reinstall | |
| +install: java_analysis reinstall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Makefile b/Makefile | |
| index 89cb22b..9cb81eb 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -25,9 +25,9 @@ test: setup-test phpunit | |
| phpunit: | |
| phpunit webapp-php/tests/ | |
| -thirdparty: | |
| +thirdparty: virtualenv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Makefile b/Makefile | |
| index 89cb22b..0e590d8 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -26,6 +26,7 @@ phpunit: | |
| phpunit webapp-php/tests/ | |
| thirdparty: | |
| + virtualenv $(VIRTUALENV) | |
| # install production dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Installing a Socorro dev environment on Mac OS X 10.6 (Snow Leopard) | |
| # | |
| # Note that this installs DB, UI and Middleware only - collection and processing are not supported. | |
| # | |
| ----------------- PostgreSQL 9.0 ----------------- | |
| Install PostgreSQL from: http://get.enterprisedb.com/postgresql/postgresql-9.0.7-1-osx.dmg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/config/crontabber.ini b/config/crontabber.ini | |
| index 3421e42..72c2ed9 100644 | |
| --- a/config/crontabber.ini | |
| +++ b/config/crontabber.ini | |
| @@ -14,7 +14,9 @@ database_class=socorro.external.postgresql.connection_context.ConnectionContext | |
| # name: jobs | |
| # doc: None | |
| # converter: class_list_converter | |
| -jobs='''socorro.cron.jobs.weekly_reports_partitions.WeeklyReportsPartitionsCronApp|7d''' | |
| +jobs='''socorro.cron.jobs.weekly_reports_partitions.WeeklyReportsPartitionsCronApp|7d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/config/crontabber.ini b/config/crontabber.ini | |
| index 3421e42..72c2ed9 100644 | |
| --- a/config/crontabber.ini | |
| +++ b/config/crontabber.ini | |
| @@ -14,7 +14,9 @@ database_class=socorro.external.postgresql.connection_context.ConnectionContext | |
| # name: jobs | |
| # doc: None | |
| # converter: class_list_converter | |
| -jobs='''socorro.cron.jobs.weekly_reports_partitions.WeeklyReportsPartitionsCronApp|7d''' | |
| +jobs='''socorro.cron.jobs.weekly_reports_partitions.WeeklyReportsPartitionsCronApp|7d |