Commit graph

7590 commits

Author SHA1 Message Date
Antoine Legrand
cdb3722c17 Use $QUAYPATH and $QUAYDIR in conf and init files 2017-07-05 16:23:54 +02:00
Antoine Legrand
334a08d90b Merge pull request #2714 from coreos-inc/alegrand/QUAY-670/push_ci-images_prodrepo
Push CI images to quay/quay
2017-06-30 17:51:49 +02:00
josephschorr
5f5b1ae6ad Merge pull request #2735 from coreos-inc/dockerignore
Add conf/stack and static/build to .dockerignore
2017-06-29 23:20:42 +03:00
josephschorr
89ab94ffbb Merge pull request #2720 from coreos-inc/gc-opt
GC optimizations
2017-06-29 20:55:14 +03:00
josephschorr
a96555511b Merge pull request #2743 from coreos-inc/joseph.schorr/QUAY-663/gcworker-interface
Change GC worker to use new data interface style
2017-06-29 20:54:04 +03:00
Jimmy Zelinskie
ee30191d88 Merge pull request #2747 from jzelinskie/v1-interfaces
endpoints.v1: new fs layout for data interface
2017-06-29 13:49:14 -04:00
Jimmy Zelinskie
92e978fa0f endpoints.v2: yapf format 2017-06-29 13:24:00 -04:00
Jimmy Zelinskie
ecd5996386 endpoints.v2: new fs layout for data interface
Fixes QUAY-656
2017-06-29 13:19:53 -04:00
Charlton Austin
570c72db17 Merge pull request #2733 from charltonaustin/create_data_interface_for_subsystem_api/tag_632
refactor(data/model/tag_interface): adding in new support for tags api
2017-06-29 11:48:26 -04:00
Charlton Austin
fdb63632b0 Merge branch 'master' into create_data_interface_for_subsystem_api/tag_632 2017-06-29 10:33:15 -04:00
Antoine Legrand
121ef26f31 Push CI images to quay/quay 2017-06-29 14:51:36 +02:00
Antoine Legrand
13002abfd6 Merge pull request #2745 from coreos-inc/fix-missed-file
Fix file I forgot to update
2017-06-29 11:55:34 +02:00
Joseph Schorr
fcaf309ce6 Fix file I forgot to update 2017-06-29 10:50:59 +03:00
josephschorr
0e702c72f2 Merge pull request #2739 from coreos-inc/joseph.schorr/QUAY-664/verbs-interface-refactor
Refactor Verbs model definitions to match new style
2017-06-29 10:07:36 +03:00
Joseph Schorr
d07cc91dc6 yapf 2017-06-29 09:57:39 +03:00
josephschorr
04114cf105 Merge pull request #2742 from coreos-inc/joseph.schorr/QUAY-665/securityworker-interface
Data interface for securityworker
2017-06-29 09:56:48 +03:00
Joseph Schorr
27ed3bedcc yapf 2017-06-29 09:43:04 +03:00
Joseph Schorr
138881dab8 yapf format 2017-06-29 09:40:39 +03:00
Joseph Schorr
76c9339453 Rename GC worker package to gc 2017-06-29 09:37:32 +03:00
Charlton Austin
400b346953 test(endpoints/api): add in test for tag
this adds tests for the pro oci model

Issue: https://coreosdev.atlassian.net/browse/QUAY-632

- [ ] It works!
- [ ] Comments provide sufficient explanations for the next contributor
- [ ] Tests cover changes and corner cases
- [ ] Follows Quay syntax patterns and format
2017-06-28 15:14:03 -04:00
Jimmy Zelinskie
80c9b611a4 Merge pull request #2730 from jzelinskie/v2-interface
endpoints.v2: new fs layout for data interface
2017-06-28 13:51:43 -04:00
Jimmy Zelinskie
5a651544bc Merge pull request #2716 from jzelinskie/secscan-catch-all
util.secscan.api: add catch all for API failures
2017-06-28 13:42:33 -04:00
Jimmy Zelinskie
1d2640e012 util.secscan.fake: add test for unexpected status 2017-06-28 13:40:04 -04:00
Joseph Schorr
420a5e5a3a Change GC worker to use data interface 2017-06-28 15:13:11 +03:00
Joseph Schorr
38f1752a2d Move gcworker into its own package 2017-06-28 15:04:10 +03:00
Joseph Schorr
1ddb09ac11 Change security worker to use data interface 2017-06-28 14:50:52 +03:00
Joseph Schorr
ec81148d73 Add super basic security worker test 2017-06-28 14:03:57 +03:00
Joseph Schorr
8b4958dbcc Move verbs model into new file structure 2017-06-28 13:05:02 +03:00
Joseph Schorr
8ac20edfb2 Move verbs security tests into pytest style 2017-06-28 12:48:02 +03:00
Joseph Schorr
2f018046ec Move conduct_call into a common test lib for all endpoints 2017-06-28 11:38:36 +03:00
Alec Merdler
91d2cb1ec1 Merge pull request #2736 from alecmerdler/fix-remove-typings
Remove References to Typings Package
2017-06-27 14:44:27 -07:00
alecmerdler
ae0ed04621 remove reference to typings NPM package in Dockerfile 2017-06-27 12:05:17 -07:00
Alec Merdler
7ffbd31174 Merge pull request #2717 from alecmerdler/tslint
TSLint
2017-06-27 11:49:36 -07:00
Joseph Schorr
aba2805016 Add conf/stack and static/build to .dockerignore
If they get included into the container by accident, everything starts exploding
2017-06-27 21:40:20 +03:00
alecmerdler
41e7e559a6 added TSLint for TypeScript code style checking, fixed associated errors 2017-06-27 11:37:13 -07:00
Charlton Austin
337b68abdc style(endpoints/api/tag*): ran yapf
### Description of Changes

Issue: https://coreosdev.atlassian.net/browse/QUAY-632

## Reviewer Checklist

- [ ] It works!
- [ ] Comments provide sufficient explanations for the next contributor
- [ ] Tests cover changes and corner cases
- [ ] Follows Quay syntax patterns and format
2017-06-27 14:24:23 -04:00
Charlton Austin
941cb4b4ee refactor(endpoints/api/tag*): adding in new support for tags api
this creates an interface for hidding details of the data model for pre oci and post oci code

Issue: https://coreosdev.atlassian.net/browse/QUAY-632

- [ ] It works!
- [ ] Comments provide sufficient explanations for the next contributor
- [ ] Tests cover changes and corner cases
- [ ] Follows Quay syntax patterns and format
2017-06-27 13:53:11 -04:00
josephschorr
6a7722cadb Merge pull request #2731 from coreos-inc/notification-enable-event
Fix log for reenabling a notification
2017-06-27 18:36:25 +03:00
Joseph Schorr
8dcea30d58 Fix build by pre-calling the caches
They were being called in a test-dependent order, which caused any tests which relied on query count to fail
2017-06-27 18:11:46 +03:00
Joseph Schorr
cdd7cb9321 Remove directly referenced images from the candidate set before starting GC iteration
Makes the lookup query underneath the transaction smaller if there are a lot of images referenced directly by tag. We still must do the direct referenced check within the transaction, but this should reduce the scope of the search space a bit.
2017-06-27 17:33:58 +03:00
Joseph Schorr
45c7008078 Change Repo GC to be iterative
This prevents us from creating a massive join when there are a large number of tags in the repository, which can result in locking the entire DB for long periods of time. Instead of the join, we just iteratively lookup any images found to be directly referenced by a tag or found as a parent of another image, both of which should be indexed lookups. Once done, we only remove those images and then iterate until the working set stops changing.
2017-06-27 17:33:58 +03:00
Joseph Schorr
e9a95874ee Move GC tests into pytest 2017-06-27 17:33:58 +03:00
Joseph Schorr
11659f73bf Fix log for reenabling a notification
We forgot to log the event and method names
2017-06-27 15:26:40 +03:00
Alec Merdler
e45ffb39d1 Merge pull request #2726 from alecmerdler/fix-cor-tabs-back-button
Fix UI Tabs To Play Nicely with Browser Back Button
2017-06-26 16:55:14 -07:00
alecmerdler
f78e1fb679 added end-to-end tests for cor-tabs in image repo view 2017-06-26 16:53:42 -07:00
alecmerdler
8c03a6be31 cor-tab-panel emits first registered tab ID if active tab is undefined
adding e2e tests for cor-tabs
2017-06-26 16:53:12 -07:00
Jimmy Zelinskie
b1434b0380 endpoints.v2: yapf format 2017-06-26 18:22:17 -04:00
Jimmy Zelinskie
0e26a03f7e endpoints.v2: new fs layout for data interface
Fixes QUAY-658
2017-06-26 18:21:35 -04:00
Jimmy Zelinskie
46087d5e64 util.secscan.api: more robust API failures cases
Addresses QUAY-672 by handling all status codes that are not 404 and 5xx
and moving response decoding inside the try/except block to ensure that
the response object is in scope.
2017-06-26 17:13:51 -04:00
Antoine Legrand
7efd222a19 Merge pull request #2729 from coreos-inc/ci-docker
use-docker host dns for CI
2017-06-26 19:42:49 +02:00