Joseph Schorr
043a30ee96
Add a heartbeat to the build status, so we know if a manager crashed
2014-11-14 15:31:02 -05:00
Joseph Schorr
01dc10b8fc
Remove server hostname hack
2014-11-14 15:05:49 -05:00
Joseph Schorr
cfc6b196a4
- Extra the build component statuses into an enum
...
- Add a ping method so the workers can verify the state of the controller
- Fix a bug with current_step and 0 values
- Rename the build status var to phase, to make it more distinct from the controller status
2014-11-14 14:53:35 -05:00
Joseph Schorr
4322b5f81c
Get the new build system working for enterprise
2014-11-13 19:41:17 -05:00
Joseph Schorr
f93c0a46e8
WIP: Get everything working except logging and job completion
2014-11-12 14:03:07 -05:00
Joseph Schorr
eacf3f01d2
WIP: Start implementation of the build manager/controller. This code is not yet working completely.
2014-11-11 18:23:15 -05:00
Jake Moshenko
2ccbea95a5
Merge remote-tracking branch 'origin/emp'
2014-11-10 13:35:57 -05:00
Joseph Schorr
72fedef097
Move the robot deletion code into a delete_instance method on the User object
2014-11-10 13:18:17 -05:00
Joseph Schorr
870d5ed0c5
Fix NPE
2014-11-10 11:37:52 -05:00
Joseph Schorr
9408138230
Fix NPE
2014-11-10 11:36:47 -05:00
Joseph Schorr
a1147236ea
Fix OAuth login to try usernames until it finds a valid username
2014-11-10 11:30:47 -05:00
Joseph Schorr
158acd4f41
- Turn on foreign key constraint checking in the tests
...
- Change all ForeignKeyField's that refer to users to use our custom class, and mark those that allow robots
- Change robot delete to only execute the subset of queries necessary to actually delete robots
2014-11-07 12:05:21 -05:00
Joseph Schorr
8548538516
Fix _ping endpoint to match the new spec
2014-11-07 10:05:05 -05:00
Joseph Schorr
9d1b6d829a
Make sure the external login link for GHE links to the enterprise GitHub and not the hosted version
2014-11-06 20:35:52 -05:00
Joseph Schorr
d7efb7cf7a
Handle missing config in a nicer manner
2014-11-05 17:17:38 -05:00
Joseph Schorr
3e79379942
- Make the OAuth config system centralized
...
- Add support for Github Enterprise login
2014-11-05 16:43:37 -05:00
Joseph Schorr
6deafe8c86
Move grunt npm install before ADDs, so we don't have to download all the packages on every build
2014-11-05 12:45:14 -05:00
Joseph Schorr
408fd229a7
Remove the DBURI from the log statement
2014-11-03 21:10:10 -05:00
Joseph Schorr
29c30b336e
Move the uncompressed image size migration call outside of alembic, since it will sometimes deadlock with certain kinds of DBs (because alembic is running things inside a transaction)
2014-11-03 21:01:41 -05:00
Joseph Schorr
6adf4644b4
Remove unneeded extra logging call
2014-11-03 17:17:05 -05:00
Joseph Schorr
8bffbde4ae
Make sure to log a proper exception when an email error occurs
2014-11-03 17:16:36 -05:00
Joseph Schorr
6dfdb2fe03
Make sure to filter out the build-related notification events when build support is turned off
2014-11-03 17:12:39 -05:00
Joseph Schorr
9aa72c5cc2
Fix migration issues:
...
- MySQL 5.5 doesn't support the now() call as a default
- Postgres migration isn't auto-committed, so we have to check if the table exists first
2014-11-03 15:25:55 -05:00
Joseph Schorr
225c2be355
Add OS X .DS_Store to the .dockerignore
2014-11-02 16:36:10 -05:00
Joseph Schorr
aed7e67a17
Clarify the health checking logic and remove the accidental inclusion of the override
2014-11-02 15:42:59 -05:00
Joseph Schorr
98602a2d0c
Add a new configurable health check, to make sure production instances are not taken down by Redis or non-local DB issues
2014-11-02 15:06:17 -05:00
Joseph Schorr
7349d9d4cf
Add a new tool for parsing build packs and make sure reparsedockerfile writes it out as well
2014-11-02 14:05:27 -05:00
Joseph Schorr
4eedd54b66
- Make usage language more accurate by stating "repositories"
...
- Have usage counter be based on a 4 weeks TTL
- Add a simple usage counter breakage test
2014-10-30 13:26:02 -04:00
Joseph Schorr
79e4864eb2
Move the the track_and_log code into its own module. This breaks a dependency chain between index -> common -> api -> subscribe -> common again.
2014-10-30 12:49:51 -04:00
Joseph Schorr
aba48c5f42
The initialize block in the new repo view should be behind the build feature flag as well.
2014-10-29 19:01:01 -04:00
Joseph Schorr
c1398c6d2b
- Add a log entry for repo verb handling and make the container usage calculation take it into account
...
- Move all the repo push/pull/verb logging into a central track_and_log method
- Readd images accidentally deleted in the last CL
- Make the uncompressed size migration script better handle exceptions
2014-10-29 15:42:44 -04:00
Joseph Schorr
c65031eea5
Add a throbber when loading repo permissions
2014-10-29 14:21:08 -04:00
Joseph Schorr
dfe143270c
Add is_testing value to the status endpoint
2014-10-29 13:51:05 -04:00
Joseph Schorr
57810ba36f
Fix bug when viewing the repo view in smaller browser windows
2014-10-29 12:07:39 -04:00
Joseph Schorr
e7f98d991f
Fix bug which caused manual builds to always build the master branch
2014-10-29 12:04:34 -04:00
Joseph Schorr
e9c2e54dbc
Change delete to once again not perform everything under a transaction. A recent revision accidentally moved everything back under it.
2014-10-29 11:59:02 -04:00
Joseph Schorr
109850b428
Add a basic usage counter for enterprise
2014-10-28 16:33:13 -04:00
Joseph Schorr
93cd7de0e0
Handle email errors in a better manner
2014-10-28 12:10:44 -04:00
Joseph Schorr
793b6f543c
Make github trigger setup a bit nicer when there are a lot of repos
2014-10-27 17:05:16 -04:00
Joseph Schorr
6e25eaaa99
Add a faster and more accurate level size calculation to the tree. This (hopefully) fixes the problems with super wide trees in prod.
2014-10-27 14:54:10 -04:00
Joseph Schorr
c06f57a6e7
Make sure builders close the db handle when no work comes in and make the metrics transaction smaller in scope
2014-10-24 11:40:02 -04:00
Joseph Schorr
fb2470615b
Add support for filtering based on tags, in addition to branches
2014-10-23 16:39:10 -04:00
Joseph Schorr
94c24a93c2
Merge branch 'master' of https://bitbucket.org/yackob03/quay
2014-10-22 19:02:03 -04:00
Joseph Schorr
5db9cd948b
Add better (jinja-based) messaging to the notifications and add some fixes for the email templates
2014-10-22 19:01:56 -04:00
Jake Moshenko
1ccd6a9c5d
Change the max_instances for the workers to only allow one parallel job execution.
2014-10-22 18:09:00 -04:00
Joseph Schorr
ea96dbb2ad
Remove the pushed_image_count since we aren't getting the data anyway
2014-10-22 15:26:29 -04:00
Joseph Schorr
208c97776f
Make sure builds are queued under a transaction. This should prevent a queue item from existing without its repository build object (or vice versa).
2014-10-22 15:20:53 -04:00
Joseph Schorr
8b331b453e
Make the contact page dynamic so that enterprise customers can configure it however they like
2014-10-22 14:49:33 -04:00
Joseph Schorr
1df936350a
Merge branch 'master' of https://bitbucket.org/yackob03/quay
2014-10-22 14:15:05 -04:00
Joseph Schorr
612a5e5102
Fix the updated_tags information by storing it in the session
2014-10-22 14:14:56 -04:00