Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-14Revert "Remove serving.Handler"371-refactor-domain-packageJaime Martinez
This reverts commit 0fcc0667e6f2e78ca85abdb5c9f631a964dd77c2.
2020-10-14Remove serving.HandlerJaime Martinez
2020-10-13Log serving type used for requestslog-serving-typeKamil Trzciński
This extends our structured logging with information about how the given request was served
2020-10-01Move tracer to httptransportJaime Martinez
2020-09-25Do not trim Path on fabricateKamil Trzciński
2020-09-24Restore prefix validationJaime Martinez
2020-09-24Rebase from base branchJaime Martinez
Add vfs.VFS implementation for zip Fix build errors Clean zip vfs Add tests for Root Add zip serving metric Return a zip.Instance() when source == zip Add simple acceptance test for zip serving Use correct contents No need to start testServer in go routine
2020-09-15Apply suggestions from feedbackJaime Martinez
Update metric name
2020-09-03Abstract `VFS` `Root`Kamil Trzciński
2020-09-02Rename `disk.Instance()` to `local.Instance()`move-disk-to-localKamil Trzciński
Make `local` to be a special style of disk serving, using the `local.VFS`
2020-09-02Merge branch 'fix/gb/gitlab-api-cache-test-races' into 'master'Vladimir Shushlin
Fix race condition in tests for domains API cache Closes #436 See merge request gitlab-org/gitlab-pages!339
2020-09-01Fix a bug that leads to blocking retrieval on canceled contextfix/gb/gitlab-api-cache-test-racesGrzegorz Bizon
2020-09-01Simplify API cache tests by making channel size relevantGrzegorz Bizon
2020-08-31Fix race condition in tests for domains API cacheGrzegorz Bizon
2020-08-28Revert "Start reading when disk is initialized"Jaime Martinez
This reverts commit 621dcafd3d1f75b846e67a77ed17dc0d704f10e3.
2020-08-27Start reading when disk is initializedJaime Martinez
Removes need to call `Read` when the app is initialized and begins reading from disk when `disk.New` is called.
2020-08-27Update to-dosJaime Martinez
2020-08-20Rename `serving/disk/New()` to `serving/disk/Instance()`rename-disk-new-to-instanceKamil Trzciński
The `Instance()` is a correct name for this, as we do not allocate a `Disk` each time, rather return a singleton object.
2020-08-07Update error log on polling failure435-use-exponential-backoffJaime Martinez
2020-08-07Remove unused codeJaime Martinez
2020-08-07Fix test assertionsJaime Martinez
2020-08-07Use exponential backoff for pollingJaime Martinez
Introudce github.com/cenkalti/backoff/v4 library to use exponential backoff when polling the Status API.
2020-08-07Revert "Merge branch 'revert-a3365a7b' into 'master'"revert-185e0a0Jaime Martinez
This reverts commit 185e0a0e5c621f350335495291c535e5c05df89b, reversing changes made to a3365a7b1b41b3dee206cbcf27e915ee45d556a5.
2020-08-06Revert "Merge branch 'revert-b3bf3ac4' into 'master'"revert-84c3866Jaime Martinez
This reverts commit 84c3866ba69e2ca0ca7d512b09ae66458f5c1c5c, reversing changes made to 185e0a0e5c621f350335495291c535e5c05df89b.
2020-08-04Revert "Merge branch 'add-polling-to-domain-package' into 'master'"revert-b3bf3ac4Vladimir Shushlin
This reverts merge request !306
2020-08-04Revert "Merge branch 'use-domain-config-source-disk' into 'master'"revert-a3365a7bVladimir Shushlin
This reverts merge request !305
2020-08-04Increase client_test timeoutJaime Martinez
2020-08-04Use IsReady insteadJaime Martinez
2020-07-28Replace checker in gitlab packageJaime Martinez
Add `Status` back to the Gitlab struct and the interfaces it needs. Remove checker interface.
2020-07-27Update default max retries and intervalJaime Martinez
2020-07-27Fix lintJaime Martinez
2020-07-27Use isReady flag in Gitlab structJaime Martinez
2020-07-24Move checker mock to the right test fileJaime Martinez
2020-07-24Add checker interface to type GitlabJaime Martinez
Add a new checker interface that only calls Status from the Client to stop polluting the cache and the retriever implementations. Move domain changes out of this MR.
2020-07-24Move polling out of the clientJaime Martinez
Let the `package gitlab` handle the polling instead of the client.
2020-07-24Increase polling test timeoutJaime Martinez
2020-07-24Enable polling in the source domainsJaime Martinez
Enables gitlabClient.Poll in the domain source init.
2020-07-24Add simple polling to the GitLab clientJaime Martinez
2020-07-24Remove resp.body closeJaime Martinez
2020-07-24Add Status to GitLab clientJaime Martinez
2020-06-01Enable the remaining lintersJaime Martinez
- ineffassign - misspell - structcheck - typecheck - unconvert - unused - varcheck - whitespace
2020-05-19Rename flag to domain-config-sourceJaime Martinez
2020-05-18Add domain-source config flagJaime Martinez
This is an incremental step for adding `-domain-source` as described in https://gitlab.com/gitlab-org/gitlab/-/issues/217912. We are only adding the flag here but it's not doing anything at the moment. Add TODO for implementation
2020-05-12Merge branch 'fix/gb/gitlab-api-reuse-http-connections' into 'master'Vladimir Shushlin
Ensure that we always close GitLab API response body See merge request gitlab-org/gitlab-pages!275
2020-05-12Ensure that we always close GitLab API response bodyGrzegorz Bizon
This change is important because in case of receiving a JSON payload from GitLab API that is invalid, and is larger than 512, deserializer will stop reading it after 512 bytes and will not close the reader. This will result in HTTP connection not being reused. This commit ensures that we always read reasponse body until EOF and that we close the reader afterwards.
2020-04-30change back to internal-gitlab-server as per @@vshushlinIgor Wiedler
2020-04-30rename GitlabServerURL to GitlabAPIServerURL (as per @@krasio)Igor Wiedler
2020-04-30rename internal-gitlab-server to gitlab-api-server (as per @@krasio)Igor Wiedler
2020-04-29introduce separate config flag internal-gitlab-serverIgor Wiedler
2020-03-30Remove obsolete test case for gitlab source cacheGrzegorz Bizon