Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-02-09 | Expose Transport interface wrapper | Jaime Martinez | |
2021-02-09 | Revert "Export MeteredRoundTripper" | Jaime Martinez | |
This reverts commit de481bad5878862ae6f693190c3aa3d85242b2c9. | |||
2021-02-08 | Export MeteredRoundTripper | Jaime Martinez | |
Exports the struct so that it can be asserted and adds a method that is called by the zip VFS. | |||
2021-02-08 | Refactor http client usage in httprage | Jaime Martinez | |
Moves the http.Client initialization inside the `httprange` package to the zip VFS. This makes the type `Resource` depend on an http.Client that needs to be passed on initialization. It also makes the zip VFS initialize the client. It's possible to reconfigure it to register a file protocol by calling vfs.Reconfigure explicitly. | |||
2021-01-12 | Merge branch 'ajwalker/zip-path' into 'master' | Vladimir Shushlin | |
Optimize zip file finding See merge request gitlab-org/gitlab-pages!414 | |||
2021-01-11 | Add vfs deflate reader poolajwalker/deflate-pool | Arran Walker | |
2021-01-11 | Optimize zip file findingajwalker/zip-path | Arran Walker | |
2020-11-30 | Add Reconfigure to serving and VFS interfaces | Jaime Martinez | |
2020-11-30 | Increase time for flaky test | Jaime Martinez | |
Cleanup | |||
2020-11-30 | Move flag definition to main | Jaime Martinez | |
Add zip config to appConfig | |||
2020-11-30 | Log zip config | Jaime Martinez | |
2020-11-30 | Move zip flags to config | Jaime Martinez | |
2020-11-30 | Use default config for tests | Jaime Martinez | |
2020-11-30 | Add default config | Jaime Martinez | |
Use DefaultConfig as global | |||
2020-11-30 | Add zip config flags | Jaime Martinez | |
Adds a config package with specific zip configuration structure that can be shared between packages. | |||
2020-11-10 | Allow to refresh an existing cached archives when accessed | Kamil Trzciński | |
If archive is broken (which should in fact never happen) we fail the first request and mark the cache entry as invalid. It will be refreshed on a next try. | |||
2020-10-29 | Refactor cache refresh tests469-negative-cache | Jaime Martinez | |
2020-10-29 | Update test with configurable refresh | Jaime Martinez | |
remove commented test | |||
2020-10-29 | Do not refresh errored archives | Jaime Martinez | |
Remove to-do and update test | |||
2020-10-28 | Merge branch 'make-cache-configurable' into 'master' | Vladimir Shushlin | |
Make timeouts for ZIP configurable See merge request gitlab-org/gitlab-pages!385 | |||
2020-10-28 | Rename openTiemoutmake-cache-configurable | Jaime Martinez | |
2020-10-27 | Make timeouts for ZIP configurable | Kamil Trzciński | |
2020-10-27 | Properly handle processing failures with `5xx` | Kamil Trzciński | |
Prior to this change ALL processing failures unrelated to "file missing" would return `404`. This is inaccurate. Processing failures are failure of GitLab Pages and `500` should be returned in such cases. | |||
2020-10-15 | Metrics miss `op` configuredfix-metrics-missing-op | Kamil Trzciński | |
2020-10-15 | Merge branch 'fix-zip-directories' into 'master' | Vladimir Shushlin | |
Fix support for archives without directory structure Closes #482 See merge request gitlab-org/gitlab-pages!373 | |||
2020-10-14 | Add a sleep to ensure that cache item is evictedfix-flaky-cache-evict | Kamil Trzciński | |
2020-10-14 | Apply 2 suggestion(s) to 1 file(s)fix-zip-directories | Kamil Trzciński | |
2020-10-13 | This workarounds a bug in `patrickmn/go-cache` | Kamil Trzciński | |
If an expired item is set, it will not be evicted. This workarounds a known bug: https://github.com/patrickmn/go-cache/issues/48 | |||
2020-10-13 | Fix support for archives without directory structure | Kamil Trzciński | |
In case of archives that do not store directories we would fail to automatically serve `index.html` for a `/` type of request. This makes us create directories when traversing the file list. ``` Archive: public-without-dirs.zip Length Date Time Name --------- ---------- ----- ---- 40 2020-09-15 02:47 public/subdir/hello.html 14 2020-09-15 03:35 public/subdir/2bp3Qzs9CCW7cGnxhghdavZ2bJDTzvu2mrj6O8Yqjm3YMRozRZULxBBKzJXCK16GlsvO1GlbCyONf2LTCndJU9cIr5T3PLDN7XnfG00lEmf9DWHPXiAbbi0v8ioSjnoTqdyjELVKuhsGRGxeV9RptLMyGnbpJx1w2uECiUQSHrRVQNuq2xoHLlk30UAmis1EhGXP5kKprzHxuavsKMdT4XRP0d79tie4tjqtfRsP4y60hmNS1vSujrxzhDa 33 2020-09-15 02:47 public/subdir/linked.html 31 2020-09-15 02:47 public/404.html 33 2020-09-15 02:47 public/index.html 258 2020-10-13 12:40 public/bad_symlink.html 18 2020-10-13 12:40 public/symlink.html ``` | |||
2020-10-13 | Bump data-offset/readlink expiration to 1hlru-cache-offsets | Kamil Trzciński | |
2020-10-13 | Update LRU cache values | Kamil Trzciński | |
2020-10-13 | Rename `namespace` to `cacheNamespace` | Kamil Trzciński | |
2020-10-13 | Apply 1 suggestion(s) to 1 file(s) | Kamil Trzciński | |
2020-10-13 | Improve LRU cache tests and implementation | Kamil Trzciński | |
2020-10-13 | Update metrics | Kamil Trzciński | |
2020-10-13 | Reduce the number of items to prune | Jaime Martinez | |
2020-10-13 | Split cache set/get and add metrics | Jaime Martinez | |
2020-10-13 | Use ccache/v2 | Jaime Martinez | |
2020-10-13 | Remove extra : from cache key | Kamil Trzciński | |
2020-10-13 | Try to LRU cache offsets and symlinks | Kamil Trzciński | |
2020-10-01 | Move ZipCachedArchives closer | Kamil Trzciński | |
2020-10-01 | Rerun goimports | Jaime Martinez | |
2020-10-01 | Move metrics.ZipOpened to readArchive() | Jaime Martinez | |
2020-10-01 | Rename all zip and httprange metrics | Jaime Martinez | |
Renames all metrics to make them easier to understand. Adds a missing metric for number of open requests made by httprange. | |||
2020-10-01 | Move onEvicted to zipArchive | Jaime Martinez | |
2020-09-30 | Add correct measure | Jaime Martinez | |
2020-09-30 | Add extra metric for currently cached files per archive | Jaime Martinez | |
2020-09-30 | Use histograms instead of gauges for transport durations | Jaime Martinez | |
2020-09-30 | Rename metrics and update types | Jaime Martinez | |
2020-09-30 | Add more metrics for zip serving | Jaime Martinez | |
Adds a bunch of new metrics related to https://gitlab.com/gitlab-org/gitlab-pages/-/issues/423. It uses [httptrace.ClienTrace](https://golang.org/src/net/http/httptrace/trace.go) to add a bunch of very granular metrics that happen when an http connection is established. |