Commit graph

8933 commits

Author SHA1 Message Date
Joseph Schorr
924b386437
Merge pull request #3286 from quay/extra-gc-check
Add an extra check in garbage collection to ensure we don't delete manifests referenced by other new-style tags
2018-11-05 12:43:02 -05:00
Joseph Schorr
5b089653d1 Add an extra check in garbage collection to ensure we don't delete manifests referenced by other new-style tags 2018-11-02 15:56:18 -04:00
Joseph Schorr
d0e1f464ff
Merge pull request #3285 from quay/fix-change-tag-expiration
Fix NPE in changing the expiration of a tag
2018-11-02 14:55:00 -04:00
Joseph Schorr
4779e05f55 Fix NPE in changing the expiration of a tag 2018-11-02 14:54:13 -04:00
Joseph Schorr
417b3f9fc2
Merge pull request #3284 from quay/switch-tag-basic-to-ascii
Switch Tag name field back to ASCII
2018-11-02 14:39:45 -04:00
Joseph Schorr
0c83e1272b Switch Tag name field back to ASCII
Because we run MySQL 5.6 in production, making this field a utf-8 went outside the 767 byte max size for indexes on the `tag_repository_id_name_lifetime_end_ms` index.
2018-11-02 14:35:39 -04:00
Joseph Schorr
876ebc9b2f
Merge pull request #3278 from quay/joseph.schorr/QUAY-1124/new-data-model
Begin work on the new registry data model implementation
2018-11-02 14:04:14 -04:00
Joseph Schorr
3cd6a4ae84
Merge pull request #3282 from kleesc/handle-missing-build-phase-case
Build phase message: add missing case
2018-11-02 13:46:38 -04:00
Joseph Schorr
e8ed43b46f Fix name of reversion field in new Tag table and add a test 2018-11-01 17:59:10 -04:00
Joseph Schorr
114e2c3bf2 Have all tag code add, modify and delete both old and new style tags
This preps us for being able to use the new data model with existing repositories
2018-11-01 17:59:10 -04:00
Joseph Schorr
36db133b86 Pull out common shared code in the data model interface 2018-11-01 17:59:10 -04:00
Joseph Schorr
c0653ef2ad Add Tag, TagKind and ManifestChild tables in prep for new data model 2018-11-01 17:59:09 -04:00
Joseph Schorr
053d918d67 Rename pre oci model tests in preparation for the new model (the tests will be applicable to both models) 2018-11-01 17:59:09 -04:00
Joseph Schorr
6c29baf3fc
Merge pull request #3281 from quay/georep-fix
Fixes for georeplication
2018-11-01 17:58:32 -04:00
Joseph Schorr
ebc57da843 Tiny fixes found in review 2018-11-01 17:45:39 -04:00
Joseph Schorr
0fb3d6847e Add a script for verifying the placements of blobs in storage. If a blob is not present in storage, its placement will be removed. 2018-11-01 11:44:49 -04:00
Kenny Lee Sin Cheong
8805d64eca Build phase message: add missing case 2018-11-01 11:22:59 -04:00
Joseph Schorr
859bbec3dc
Merge pull request #3272 from quay/joseph.schorr/QUAY-1171/registry-jwt-tests
Implement a basic test suite for jwtutil and add extra checks to the decode method
2018-10-31 17:03:49 -04:00
Joseph Schorr
6a9634dffb Harden the storage replication worker to failures by explicitly catching certain errors, having better backoff and explicitly ensuring a layer has been replicated to a region before adding the placement into the database
Also adds tests for the various failure cases
2018-10-31 14:13:25 -04:00
Joseph Schorr
088a301754 Add extra exception handling around stream_write in verbs 2018-10-31 12:46:58 -04:00
Joseph Schorr
3a0adfcb11 Fix stream_write to properly raise an exception on failure, instead of just silently failing
This was causing problems for customers using georeplication over unstable storage engines

Also adds tests for stream_write and copy,  to ensure we detect failure
2018-10-31 12:46:49 -04:00
Joseph Schorr
a048ff3633
Merge pull request #3279 from quay/fix-torrent-info-bug
Fix NPE bug in torrentinfo set call
2018-10-31 11:33:11 -04:00
Joseph Schorr
366bddd20a Fix NPE bug in torrentinfo set call
Fixes https://sentry.io/coreos/backend-production/issues/747494304
2018-10-30 16:47:59 -04:00
Joseph Schorr
4868f17832 Implement a basic test suite for jwtutil and add extra checks to the decode method 2018-10-30 16:45:30 -04:00
Kenny Lee Sin Cheong
436e8cb760
Merge pull request #3275 from kleesc/fix-tag-ui-function-name
Fix tag ui function name
2018-10-30 14:07:55 -04:00
Kenny Lee Sin Cheong
9cf74227ee typo 2018-10-30 13:21:14 -04:00
Sida Chen
203bffbbbb
Merge pull request #3276 from KeyboardNerd/about_page
Add dependent packages in about page
2018-10-30 12:57:18 -04:00
Sida Chen
c7730d2438 Add copying bill-of-materials.json before compiling javascript files 2018-10-30 09:53:03 -04:00
Sida Chen
79a7b9f617 Update bill-of-materials 2018-10-30 09:53:03 -04:00
Sida Chen
1dcc5d9d64 Add dependent packages in about page
Content of bill-of-materials.json is added to about page as a table.

Fixes https://jira.coreos.com/browse/QUAY-1170
2018-10-30 09:53:03 -04:00
Kenny Lee Sin Cheong
e61551d6b9 Show loader when tags are loading instead of empty msg 2018-10-29 19:25:19 -04:00
Kenny Lee Sin Cheong
1cda2e1a62 Fix undefined function name 2018-10-29 19:25:19 -04:00
Joseph Schorr
0666e0bedc
Merge pull request #3265 from quay/joseph.schorr/QUAY-1030/interfacing-part-10
Change V2 registry code to use new registry data model
2018-10-29 12:49:20 -05:00
Joseph Schorr
88f19ee0b9 Make blob upload errors more specific 2018-10-29 12:21:18 -04:00
Kenny Lee Sin Cheong
60048f6da1
Force reload on any change to repositoryTags (#3273) 2018-10-24 13:28:55 -04:00
Sida Chen
f76d153764
Merge pull request #3270 from KeyboardNerd/readme
Update Quay architecture diagram
2018-10-23 18:19:52 -04:00
Sida Chen
14e14eb359
Merge pull request #3271 from KeyboardNerd/bug/null-path
Fix null path exception when checking path
2018-10-23 16:39:50 -04:00
Kenny Lee Sin Cheong
8b25d5b77b
Fix UI rendering issue when creating/deleting tags from the UI (#3269)
### Description of Changes

Tag operations in UI would not be rendered properly when using the paginated tags endpoint.
When a user would create/delete a tag from the repo-panel-tags, `digest` would be called. This caused the `$scope.repository.tags` to be removed.

To fix this:
* Bind the tags directly to the scope instead of the repository
* Change references to scope.repository.tags to use scope.repositoryTags

---
2018-10-23 13:26:40 -04:00
Sida Chen
08a86f46fd Update Quay architecture diagram
Fixes https://jira.coreos.com/browse/QUAY-1175
2018-10-23 13:17:53 -04:00
Sida Chen
d0d44605a9 Fix null path exception when checking path
tsc compiles default parameter to have `path === void 0`, which doesn't
catch the case of path is null.
2018-10-22 23:50:40 -04:00
Joseph Schorr
d18a7935e1 Fix pytest fixture import issue with hashability of tmpdir_factory 2018-10-18 14:42:54 -04:00
Joseph Schorr
4a7b4ad06a Fix disabled namespace check 2018-10-18 14:25:40 -04:00
Joseph Schorr
cbf0edb164 Address remaining usage of the old data interface 2018-10-18 14:25:40 -04:00
Joseph Schorr
3a8a913ad3 Convert V2's catalog endpoint to use the new data model interface 2018-10-18 14:25:40 -04:00
Joseph Schorr
e91ba98e1b Convert V2's tag endpoints to use the new data model interface 2018-10-18 14:25:40 -04:00
Joseph Schorr
6b5064aba4 Convert V2's manifest endpoints to use the new data model interface 2018-10-18 14:25:40 -04:00
Joseph Schorr
a172de4fdc Reimplement cache support for blobs in the registry data model 2018-10-18 14:25:40 -04:00
Joseph Schorr
7a68c41f1c Convert V2 to use the blob uploader interface 2018-10-18 14:25:40 -04:00
Joseph Schorr
0ae062be62 Add manifest creation to new registry data model interface 2018-10-18 14:25:39 -04:00
Joseph Schorr
818ed32f87 Add function in data interface for mounting blobs into other repositories 2018-10-18 14:25:39 -04:00