Commit graph

5522 commits

Author SHA1 Message Date
Joseph Schorr
c29f9ccc7f Fix TTL on heartbeat in etcd
Until now, once the heartbeat has expired, we would issue a TTL that is negative, which causes etcd to either raise an exception or simply ignore the expiration (depending on the version of etcd). This change ensures that once the key is expired, it is removed immediately via a set of a TTL of 0. Also adds tests for this case and the normal expiration case.
2016-08-03 11:15:03 -04:00
josephschorr
abce6a8dbc Merge pull request #1657 from coreos-inc/redis-reconnect
Change user events tutorial Redis error to be an inline box
2016-07-27 16:11:58 -07:00
josephschorr
98bfdc7244 Merge pull request #1656 from coreos-inc/stupid-ff
Fix enter key in password dialogs in Firefox
2016-07-27 16:11:51 -07:00
Joseph Schorr
cb9a99fc7b Change user events tutorial Redis error to be an inline box
Fixes #1653
2016-07-27 13:41:26 -07:00
Joseph Schorr
c60f441d87 Fix enter key in password dialogs in Firefox
Fixes #1655
2016-07-27 13:12:37 -07:00
josephschorr
d240ad9a2c Merge pull request #1652 from coreos-inc/custom-link
Add support for custom commit links in the build UI
2016-07-26 16:37:21 -07:00
Joseph Schorr
dcebd61dde Add support for custom commit links in the build UI
Fixes #1251
2016-07-26 16:06:41 -07:00
josephschorr
46a28617e8 Merge pull request #1651 from coreos-inc/fix-branches
Fix handling of multi-part branches in the build triggers
2016-07-26 16:00:21 -07:00
josephschorr
0162d3da30 Merge pull request #1645 from coreos-inc/gc-query-optimize
Optimize GC query for looking up deletable storages
2016-07-26 16:00:17 -07:00
Joseph Schorr
9e4f8cac03 Optimize GC query for looking up deletable storages 2016-07-26 13:47:15 -07:00
Joseph Schorr
06d52f2c83 Fix handling of multi-part branches in the build triggers
Fixes #1360
2016-07-26 13:41:13 -07:00
josephschorr
9d48bcd0f1 Merge pull request #1650 from coreos-inc/no-custom-get
We cannot use `customGET` for resources, as it builds an invalid URL
2016-07-26 11:51:23 -07:00
josephschorr
bb2edc5ac4 Merge pull request #1648 from coreos-inc/invalid-tag
Prevent invalid tags on builds
2016-07-26 11:47:32 -07:00
Joseph Schorr
7ac37a3813 We cannot use customGET for resources, as it builds an invalid URL 2016-07-26 11:46:58 -07:00
josephschorr
47b3c60b80 Merge pull request #1649 from coreos-inc/fix-resource-loading
Fix AsResource method loading
2016-07-26 11:33:10 -07:00
Joseph Schorr
6432f28df7 Fix AsResource method loading 2016-07-26 11:21:02 -07:00
josephschorr
98106be690 Merge pull request #1646 from coreos-inc/fresh-login-fix
Fixes for fresh login check in API
2016-07-26 11:14:23 -07:00
Joseph Schorr
0fe3e6510a Prevent invalid tags on builds
Fixes #1632
2016-07-25 17:50:35 -07:00
Joseph Schorr
1655e79a74 Fixes for fresh login check in API
- Fixes enter key causing two requests
- Makes sure fresh login is handled for resources as well

Fixes #1625
2016-07-25 15:29:55 -07:00
josephschorr
640012103c Merge pull request #1639 from coreos-inc/swift-logging
Add better logging to blob uploads
2016-07-22 17:34:30 -04:00
josephschorr
062e0334b2 Merge pull request #1644 from coreos-inc/ldap-fix
Fix LDAP DN building for empty RDN list
2016-07-22 14:45:04 -04:00
Joseph Schorr
5de1e98d3c Fix LDAP DN building for empty RDN list 2016-07-22 14:40:53 -04:00
josephschorr
a8618b63bf Merge pull request #1642 from coreos-inc/setup-timeout
Fix decreased setup timeout on ephemeral build manager
2016-07-22 13:38:49 -04:00
Joseph Schorr
428a7cb435 Fix decreased setup timeout on ephemeral build manager 2016-07-22 13:35:38 -04:00
josephschorr
53e22b4afb Merge pull request #1641 from coreos-inc/fix-buildman-more
Another fix for the record keeping in buildman
2016-07-22 12:01:50 -04:00
Joseph Schorr
392242d20b Another fix for the record keeping in buildman
Adds some more mocked tests as well
2016-07-22 12:01:30 -04:00
josephschorr
040977a35f Merge pull request #1640 from coreos-inc/fix-buildman
Fix cross-manager handling of realm components
2016-07-21 15:53:21 -04:00
Joseph Schorr
68baa51d55 Fix cross-manager handling of realm components 2016-07-21 15:47:25 -04:00
josephschorr
cf630838f0 Merge pull request #1624 from coreos-inc/builder-cleanup-tests
Bug fixes, refactoring and "new" tests for the build manager
2016-07-21 13:50:41 -04:00
Joseph Schorr
cbf7c2bf44 Add better logging to blob uploads
Fixes #1635
2016-07-20 17:53:43 -04:00
Joseph Schorr
4420b1bac9 Add temporary back-compat shims for the build manager 2016-07-20 13:41:01 -04:00
Joseph Schorr
4d6f96cd6c Add missing pass keyword 2016-07-19 22:24:27 -04:00
josephschorr
2ba1f5435a Merge pull request #1633 from coreos-inc/duplicate-replication
Don't raise an error on duplicate placements
2016-07-19 21:55:12 -04:00
josephschorr
b3e1f7375e Merge pull request #1634 from coreos-inc/swift-timeout
Add swift configuration options and default connection timeout
2016-07-19 21:55:07 -04:00
Joseph Schorr
13a30d45b1 Add swift configuration options and default connection timeout
Fixes #1627
2016-07-19 17:19:11 -04:00
Joseph Schorr
b8d2570725 Don't raise an error on duplicate placements
This can happen if two pushes are racing on the same storage.
2016-07-19 16:44:05 -04:00
Jimmy Zelinskie
5c9d55ecbd Merge pull request #1626 from coreos-inc/queuetestfix
test_secscan: add a second before reads from queue
2016-07-18 14:21:30 -04:00
Jimmy Zelinskie
2ed5723ca9 test_secscan: add a second before reads from queue
Because of the granularity of MySQL's clock, we need to wait a second
before an item becomes available.
2016-07-18 14:19:36 -04:00
Joseph Schorr
2c1880b944 Bug fixes, refactoring and "new" tests for the build manager
- Fixes various bugs introduced in the most recent build system commit
- Refactors state management in the build manager to be cleaner and more contained
- Adds back in the mock-based tests, fixed to not use threads and adjusted for the refactoring
- Adds some more simplified unit tests around non-etch related flows
2016-07-18 13:46:48 -04:00
josephschorr
9f6b47ad1f Merge pull request #1622 from coreos-inc/rid-fix
Various small fixes around SQL and testing
2016-07-15 13:42:02 -04:00
Joseph Schorr
b0b7b63be9 Fix queue tests for MySQL
MySQL's date time's appear to have a 1 second threshold, so we need to make sure the queue items added for the tests are available as soon as they are added. Before this change, the available_after was set to `datetime.utcnow()`, and, if the `get` was called within 1 second, then its check would fail.
2016-07-15 13:27:50 -04:00
Joseph Schorr
4e1259b58a Fix the Repository ID in pagination problem once and for all
But.... ONCE AND FOR ALL!

Note: Tested on SQLite, Postgres and MySQL
2016-07-14 17:09:52 -04:00
Joseph Schorr
1ed1bc9ed3 Disable prometheus in tests 2016-07-14 15:48:21 -04:00
Jimmy Zelinskie
7c727dfc9d Merge pull request #1621 from coreos-inc/queuefix
Fix race condition in Queue
2016-07-14 15:35:34 -04:00
Jimmy Zelinskie
64d0c5b675 data.queue: fix race condition
It's possible that multiple consumers will acquire a queue item if they
race on an expired item. To mitigate this, we check that the
processing_expires time hasn't been changed since we last read.
2016-07-14 15:34:22 -04:00
Jimmy Zelinskie
609f4fccd8 data.queue: simplify put method 2016-07-14 15:34:22 -04:00
josephschorr
e02891ef0c Merge pull request #1620 from coreos-inc/build-cleanup-logs
Build manager cleanup and more logging
2016-07-14 14:35:04 -04:00
Joseph Schorr
74b87fa813 Build manager cleanup and more logging 2016-07-14 14:33:14 -04:00
josephschorr
65bbdda545 Merge pull request #1619 from coreos-inc/disable-aci-tests
Disable ACI tests when build under Docker
2016-07-13 14:24:52 -04:00
Joseph Schorr
3d558f6090 Disable ACI tests when build under Docker
We need to figure out why they fail on our build fleet
2016-07-13 14:23:30 -04:00