Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-10-14 | Add a sleep to ensure that cache item is evictedfix-flaky-cache-evict | 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 | 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. | |||
2020-09-25 | Simplify after code review | Kamil Trzciński | |
2020-09-25 | Return early if openArchive is already done | Jaime Martinez | |
2020-09-25 | Apply suggestions from review | Jaime Martinez | |
2020-09-24 | Add test for multiple concurrent requests | Jaime Martinez | |
2020-09-24 | Restore prefix validation | Jaime Martinez | |
2020-09-24 | Add Name to the VFS interface to use with metrics | Jaime Martinez | |
2020-09-24 | Improve code layout | Jaime Martinez | |
2020-09-24 | Rebase from base branch | Jaime 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-22 | Pass context to httprange Reader | Jaime Martinez | |
Assert that if a context is canceled the read request will fail. Add missing ctx to zip | |||
2020-09-21 | Apply suggestions from feedback | Jaime Martinez | |
2020-09-21 | Add test for context cancelation | Jaime Martinez | |
2020-09-21 | Read archive with its own timeout | Jaime Martinez | |
2020-09-21 | Add to-do references | Jaime Martinez | |
2020-09-21 | New ctx from parentCtx before opening archive | Jaime Martinez | |
2020-09-21 | WIP: apply some of the suggestions | Jaime Martinez | |
2020-09-21 | Update deflate_reader docs | Jaime Martinez | |
2020-09-21 | Add zip package that implements vfs.Root | Jaime Martinez | |
Adds a zip package capable of reading zip files from an httprange.Resource. It reads archive file contents into memory per archive that is requested from the vfs.Root. WIP: add simple test for archive reader WIP: fix build WIP: update archive test WIP: adding tests for archive WIP: print more info WIP: update zip file correct symlink WIP: use correct file Add bad symlink file to zip Update handling long symlinks update documentation and reorg code fix up stuff | |||
2020-09-09 | Fix handling of absolute paths for `vfs/local`fix-symlink-specs | Kamil Trzcinski | |
This resolves absolute paths to be relative if within a `rootPath` or absolute if outside. The `EvalSymlink` and the later usage of `VFS` will ensure that path is sanitised | |||
2020-09-08 | Fix `symlink` specs on OSX | Kamil Trzcinski | |
The fix is a little unconventional: - we treat the absolute paths as local to `rootPath` - this actually makes sense, given that this VFS should only work in this context | |||
2020-09-08 | Fix `TestVFSRoot` and `TestReadlinkAbsolutePath`fix-osx-specs | Kamil Trzcinski | |
2020-09-03 | Abstract `VFS` `Root` | Kamil Trzciński | |
2020-08-13 | Add VFS for local disk | Jacob Vosmaer | |