Joseph Schorr
4f5bf8185a
Add version checking to the python side
2014-12-01 12:11:23 -05:00
Jimmy Zelinskie
09cc4ba4c1
LOGGER -> logger.
...
While logger may be a global variable, it is not constant. Let the
linters complain!
2014-11-30 17:48:38 -05:00
Joseph Schorr
a8473db87f
Make sure the realm is connected before heartbeat checks start.
2014-11-26 17:02:49 -05:00
Joseph Schorr
52b7896835
Further fixes to make everything work nicely with Github Enterprise
2014-11-26 12:54:02 -05:00
Joseph Schorr
b7a489813a
Fix build system to work with Github Enterprise
2014-11-26 12:37:20 -05:00
Joseph Schorr
d91829dc3c
Only start the build manager if building is enabled
2014-11-26 11:28:29 -05:00
Joseph Schorr
9d675b51ed
- Change SSL to only be enabled via an environment variable. Nginx will be terminating SSL for the ER.
...
- Add the missing dependencies to the requirements.txt
- Change the builder ports to non-standard locations
- Add the /b1/socket and /b1/controller endpoints in nginx, to map to the build manager
- Have the build manager start automatically.
2014-11-25 18:08:18 -05:00
Joseph Schorr
04fc6d82a5
Add support for SSL if the certificate is found in the config directory
2014-11-25 16:36:21 -05:00
Joseph Schorr
660a640de6
Better organize the source file structure of the build manager and change it to choose a lifecycle manager based on the config
2014-11-25 16:14:44 -05:00
Jimmy Zelinskie
c48559ee3d
Better status message for internal error.
...
This also trims whitespace in app.js.
2014-11-23 15:45:55 -05:00
Joseph Schorr
b8e873b00b
Add support to the build system for tracking if/when the build manager crashes and make sure builds are restarted within a few minutes
2014-11-21 14:27:06 -05:00
Joseph Schorr
25b5062bb6
Merge branch 'bagger' of https://bitbucket.org/yackob03/quay into bagger
2014-11-20 17:32:57 -05:00
Joseph Schorr
300473e7ad
Partial fix for high CPU on build status pages
2014-11-20 17:30:57 -05:00
Jimmy Zelinskie
872c135205
Make ping method static.
...
Without being static or passing a self parameter, the worker will
receive a runtime WAMP error when they attempt to ping during a
health check, this marks them unhealthy every single time you
attempt a health check.
2014-11-20 16:19:02 -05:00
Jimmy Zelinskie
d2be37dbde
remove shebang from local scripts
2014-11-20 15:25:13 -05:00
Jimmy Zelinskie
290c8abeb5
Make empty token more readable in logs.
...
Enterprises use "" for tokens. This was confusing to read in the logs
without making things more clear by adding quotes around the value.
2014-11-20 15:22:34 -05:00
Jimmy Zelinskie
d0763862b1
Simple code review changes.
...
I sneakily also added local-test.sh and renamed run-local to
local-run.sh.
2014-11-20 14:36:22 -05:00
Jimmy Zelinskie
0763f0d999
Initialize BaseComponent members in constructor
2014-11-19 13:17:53 -05:00
Joseph Schorr
a9fd516dad
Disable WAMP debug
2014-11-18 16:35:03 -05:00
Joseph Schorr
63f2e7794f
Various small fixes
2014-11-18 16:34:09 -05:00
Jimmy Zelinskie
6df6f28edf
Lint BuildManager
2014-11-18 15:45:56 -05:00
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