Dimitri Herzog
1ead31464a
add mock
2023-04-04 12:02:59 +02:00
Dimitri Herzog
2b97d5550b
add mocks
2023-04-04 09:13:10 +02:00
Dimitri Herzog
e238bbe295
WIP: add mocks
2023-04-04 08:35:53 +02:00
Dimitri Herzog
554c6d5a1b
WIP: introduce mockery
2023-04-04 07:52:06 +02:00
Kwitsch
68a8476e48
chore(build): Automation workflows ( #972 )
...
* Added fork sync workflow(syncs the main branch with upstream every 30 minutes)
* Added monthly workflow run deletion(all skipped or canceld and runs older than 30days will be deleted)
* Removed Docker image build for main branch on forks
* Added documentation how to enable sync and docker build workflows
2023-04-03 16:33:16 +02:00
dependabot[bot]
2b1786a42d
build(deps): bump github.com/opencontainers/runc from 1.1.4 to 1.1.5 ( #967 )
...
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc ) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/opencontainers/runc/releases )
- [Changelog](https://github.com/opencontainers/runc/blob/v1.1.5/CHANGELOG.md )
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.4...v1.1.5 )
---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 07:43:37 +02:00
dependabot[bot]
4d01349d69
build(deps): bump github.com/onsi/gomega from 1.27.5 to 1.27.6 ( #968 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.27.5 to 1.27.6.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.27.5...v1.27.6 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 07:42:47 +02:00
ThinkChaos
9b15e4807e
fix: log `startStrategy` instead of deprecated `failStartOnListError`
2023-03-29 10:07:04 -04:00
ThinkChaos
f887e82fdc
fix: support IDNA in lists
...
Not sure this is actually supported by most adblocker, but we might as
well be permissive.
2023-03-29 10:05:50 -04:00
dependabot[bot]
b856837ad9
build(deps): bump github.com/miekg/dns from 1.1.52 to 1.1.53 ( #965 )
...
Bumps [github.com/miekg/dns](https://github.com/miekg/dns ) from 1.1.52 to 1.1.53.
- [Release notes](https://github.com/miekg/dns/releases )
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release )
- [Commits](https://github.com/miekg/dns/compare/v1.1.52...v1.1.53 )
---
updated-dependencies:
- dependency-name: github.com/miekg/dns
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 07:44:18 +02:00
dependabot[bot]
2a2269683f
build(deps): bump github.com/swaggo/swag from 1.8.11 to 1.8.12 ( #964 )
...
Bumps [github.com/swaggo/swag](https://github.com/swaggo/swag ) from 1.8.11 to 1.8.12.
- [Release notes](https://github.com/swaggo/swag/releases )
- [Changelog](https://github.com/swaggo/swag/blob/master/.goreleaser.yml )
- [Commits](https://github.com/swaggo/swag/compare/v1.8.11...v1.8.12 )
---
updated-dependencies:
- dependency-name: github.com/swaggo/swag
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 07:43:50 +02:00
dependabot[bot]
30ead04176
build(deps): bump github.com/abice/go-enum from 0.5.5 to 0.5.6 ( #955 )
...
Bumps [github.com/abice/go-enum](https://github.com/abice/go-enum ) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/abice/go-enum/releases )
- [Changelog](https://github.com/abice/go-enum/blob/master/.goreleaser.yml )
- [Commits](https://github.com/abice/go-enum/compare/v0.5.5...v0.5.6 )
---
updated-dependencies:
- dependency-name: github.com/abice/go-enum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 12:04:01 +02:00
Kwitsch
2496c368e3
GitHub Actions Update ( #951 )
...
* change to actions/setup-go
* test codeql change
* intenten fix
* remove strategy
* comment cleanup
* removed test branch
* convert main branch to development tag
* set development tag on main branch
2023-03-28 11:43:49 +02:00
Dimitri Herzog
3b9fd7bafe
refactor: use groupedCache to optimize cache access ( #944 )
...
* refactor: use groupedCache to optimize cache access
* refactor: fix review findings
2023-03-27 13:23:01 +02:00
Dimitri Herzog
8757dea992
chore(docs): add release alias for docs deployment
2023-03-27 08:52:46 +02:00
Dimitri Herzog
a37861b756
chore(build): use v prefixed release versions ( #858 , #806 ) ( #942 )
2023-03-26 11:33:27 +02:00
Dimitri Herzog
d1988a413d
chore(deps): update opencontainers (CVE-2019-19921) ( #943 )
2023-03-26 11:33:01 +02:00
dependabot[bot]
c74a277aca
build(deps): bump github.com/onsi/gomega from 1.27.4 to 1.27.5 ( #948 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.27.4 to 1.27.5.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.27.4...v1.27.5 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 08:24:54 +01:00
dependabot[bot]
7af43da03c
build(deps): bump actions/stale from 7 to 8 ( #949 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 7 to 8.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v7...v8 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 07:43:09 +01:00
dependabot[bot]
ef0bb78bc4
build(deps): bump github.com/onsi/ginkgo/v2 from 2.9.1 to 2.9.2 ( #947 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.9.1 to 2.9.2.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.9.1...v2.9.2 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 07:42:22 +01:00
dependabot[bot]
f761ad1871
build(deps): bump github.com/swaggo/swag from 1.8.10 to 1.8.11 ( #946 )
...
Bumps [github.com/swaggo/swag](https://github.com/swaggo/swag ) from 1.8.10 to 1.8.11.
- [Release notes](https://github.com/swaggo/swag/releases )
- [Changelog](https://github.com/swaggo/swag/blob/master/.goreleaser.yml )
- [Commits](https://github.com/swaggo/swag/compare/v1.8.10...v1.8.11 )
---
updated-dependencies:
- dependency-name: github.com/swaggo/swag
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-22 07:32:50 +01:00
Kwitsch
ebe3805c9c
disable docs workflow on forks ( #939 )
2023-03-18 23:28:03 +01:00
Dimitri Herzog
0e4d8a34d9
chore(build): update Go to 1.20 ( #937 )
2023-03-16 21:00:35 +01:00
dependabot[bot]
ebad2d1611
build(deps): bump actions/setup-go from 3 to 4 ( #936 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 07:49:56 +01:00
Dimitri Herzog
b44e4146ab
chore(build): update weightedrand to v2 ( #934 )
2023-03-16 07:49:23 +01:00
Dimitri Herzog
8e70b8a975
chore(build): update golangci-lint ( #931 )
2023-03-16 07:49:09 +01:00
Dimitri Herzog
7331e29e0e
chore(deps): remove obsolete replace for testcontainers ( #935 )
2023-03-15 20:32:55 +01:00
Dimitri Herzog
0157f4ce56
refactor: add generics to ExpiringCache ( #933 )
2023-03-15 20:32:35 +01:00
Dimitri Herzog
db1e2fd655
chore(test): fix freezing test ( #932 )
2023-03-15 20:25:52 +01:00
Dimitri Herzog
32d0014a2b
chore(test): exclude mocks from code coverage report
2023-03-15 16:46:51 +01:00
Dimitri Herzog
d61d96399a
build(deps): update github.com/creasty/defaults ( #929 )
2023-03-14 17:45:42 +01:00
dependabot[bot]
2e0b6e4394
build(deps): bump github.com/onsi/gomega from 1.27.3 to 1.27.4 ( #927 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.27.3 to 1.27.4.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.27.3...v1.27.4 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-14 17:37:40 +01:00
Dimitri Herzog
2d8bc470c4
chore(build): run mirror job only on main branch
2023-03-14 07:43:09 +01:00
Dimitri Herzog
c9f0355266
chore: mirror git repo to codeberg
2023-03-13 14:04:18 +01:00
dependabot[bot]
e814eb53a0
build(deps): bump github.com/onsi/ginkgo/v2 from 2.9.0 to 2.9.1 ( #925 )
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.9.0 to 2.9.1.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.9.0...v2.9.1 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 09:08:09 +01:00
dependabot[bot]
50b0c39d34
build(deps): bump github.com/miekg/dns from 1.1.51 to 1.1.52 ( #923 )
...
Bumps [github.com/miekg/dns](https://github.com/miekg/dns ) from 1.1.51 to 1.1.52.
- [Release notes](https://github.com/miekg/dns/releases )
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release )
- [Commits](https://github.com/miekg/dns/compare/v1.1.51...v1.1.52 )
---
updated-dependencies:
- dependency-name: github.com/miekg/dns
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 07:36:36 +01:00
dependabot[bot]
e002f044eb
build(deps): bump gorm.io/driver/postgres from 1.4.8 to 1.5.0 ( #924 )
...
Bumps [gorm.io/driver/postgres](https://github.com/go-gorm/postgres ) from 1.4.8 to 1.5.0.
- [Release notes](https://github.com/go-gorm/postgres/releases )
- [Commits](https://github.com/go-gorm/postgres/compare/v1.4.8...v1.5.0 )
---
updated-dependencies:
- dependency-name: gorm.io/driver/postgres
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 07:36:26 +01:00
dependabot[bot]
ee80208836
build(deps): bump github.com/onsi/gomega from 1.27.2 to 1.27.3 ( #926 )
...
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega ) from 1.27.2 to 1.27.3.
- [Release notes](https://github.com/onsi/gomega/releases )
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/gomega/compare/v1.27.2...v1.27.3 )
---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 07:36:14 +01:00
ThinkChaos
5088c75a78
refactor: configuration rework (usage and printing) ( #920 )
...
* refactor: make `config.Duration` a struct with `time.Duration` embed
Allows directly calling `time.Duration` methods.
* refactor(HostsFileResolver): don't copy individual config items
The idea is to make adding configuration options easier, and searching
for references straight forward.
* refactor: move config printing to struct and use a logger
Using a logger allows using multiple levels so the whole configuration
can be printed in trace/verbose mode, but only important parts are
shown by default.
* squash: rename `Cast` to `ToDuration`
* squash: revert `Duration` to a simple wrapper ("new type" pattern)
* squash: `Duration.IsZero` tests
* squash: refactor resolvers to rely on their config directly if possible
* squash: implement `IsEnabled` and `LogValues` for all resolvers
* refactor: use go-enum `--values` to simplify getting all log fields
* refactor: simplify `QType` unmarshaling
* squash: rename `ValueLogger` to `Configurable`
* squash: rename `UpstreamConfig` to `ParallelBestConfig`
* squash: rename `RewriteConfig` to `RewriterConfig`
* squash: config tests
* squash: resolver tests
* squash: add `ForEach` test and improve `Chain` ones
* squash: simplify implementing `config.Configurable`
* squash: minor changes for better coverage
* squash: more `UnmarshalYAML` -> `UnmarshalText`
* refactor: move `config.Upstream` into own file
* refactor: add `Resolver.Type` method
* squash: add `log` method to `typed` to use `Resolover.Type` as prefix
* squash: tweak startup config logging
* squash: add `LogResolverConfig` tests
* squash: make sure all options of type `Duration` use `%s`
2023-03-12 22:14:10 +01:00
dependabot[bot]
bacb4437da
build(deps): bump github.com/testcontainers/testcontainers-go ( #917 )
...
Bumps [github.com/testcontainers/testcontainers-go](https://github.com/testcontainers/testcontainers-go ) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/testcontainers/testcontainers-go/releases )
- [Commits](https://github.com/testcontainers/testcontainers-go/compare/v0.18.0...v0.19.0 )
---
updated-dependencies:
- dependency-name: github.com/testcontainers/testcontainers-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-09 07:28:39 +01:00
dependabot[bot]
61cc9ebafc
build(deps): bump magnetikonline/action-golang-cache from 3 to 4 ( #919 )
...
Bumps [magnetikonline/action-golang-cache](https://github.com/magnetikonline/action-golang-cache ) from 3 to 4.
- [Release notes](https://github.com/magnetikonline/action-golang-cache/releases )
- [Commits](https://github.com/magnetikonline/action-golang-cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: magnetikonline/action-golang-cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-09 07:27:33 +01:00
dependabot[bot]
fe58a34b13
build(deps): bump github.com/alicebob/miniredis/v2 from 2.30.0 to 2.30.1 ( #918 )
...
Bumps [github.com/alicebob/miniredis/v2](https://github.com/alicebob/miniredis ) from 2.30.0 to 2.30.1.
- [Release notes](https://github.com/alicebob/miniredis/releases )
- [Changelog](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/alicebob/miniredis/compare/v2.30.0...v2.30.1 )
---
updated-dependencies:
- dependency-name: github.com/alicebob/miniredis/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-09 07:27:03 +01:00
Dimitri Herzog
b4fc272f94
chore(build): change docker authentication to access token
2023-03-08 11:17:34 +01:00
Dimitri Herzog
32fe1ebf66
chore: type
2023-03-07 17:37:57 +01:00
Dimitri Herzog
e482eb43e9
chore(docs): use docs versioning
2023-03-07 17:36:48 +01:00
Dimitri Herzog
2c108dabb8
chore: change branch name to "main" ( #744 )
2023-03-07 17:25:04 +01:00
Dimitri Herzog
88de7c16f7
chore(build): don't build images for feature branches
...
- deploy always "development" tag
2023-03-07 16:29:20 +01:00
Dimitri Herzog
d6dd2ed1be
chore(build): set master as default branch ( #744 )
2023-03-07 16:12:32 +01:00
Dimitri Herzog
12ebe2aac6
Merge branch 'development'
2023-03-07 16:05:09 +01:00
Dimitri Herzog
f2e488678b
fix: wrong prefetch metrics if bootstrap is enabled ( #891 ) ( #915 )
2023-03-07 16:04:27 +01:00