Commit graph

95 commits

Author SHA1 Message Date
ze0s
9caf7807de
build: goreleaser snapshot during pr builds (#2082) 2025-06-01 15:11:29 +02:00
soup
f5e484679b
fix(ci): trigger docs update via workflow_run (#2066) 2025-05-24 12:34:40 +02:00
ze0s
1ae8624e05
build(deps): bump Go to 1.24 (#2060)
* build(deps): bump Go to 1.24
2025-05-01 16:36:55 +02:00
ze0s
e137ac4070
build(ci): setup goreleaser-pro (#2020)
* build: setup goreleaser-pro

* fix: set env key from secrets
2025-04-05 11:16:24 -07:00
dependabot[bot]
33d7d75597
build(deps): bump the npm group in /web with 18 updates (#1957) 2025-02-08 12:58:19 +00:00
dependabot[bot]
108db34daa
build(deps): bump the github group with 2 updates (#1878) 2024-12-14 14:59:10 +00:00
soup
66fa645625
fix(ci): update indexers workflow with improved path handling (#1874)
* fix(ci): update indexers workflow with improved path handling
2024-12-12 14:22:42 +01:00
soup
85d2e51d0a
feat(docs): add indexer docs update script (#1872)
* feat(docs): add indexer docs update script

Add Python script to automatically update indexer documentation from YAML definitions.

- Creates a markdown table of supported indexers with feature support
- Sorts indexers alphabetically with generics at the end
- Includes support status for IRC and RSS features
- Outputs documentation to autobrr.com/snippets/indexers.mdx

* fix: use existing PAT

* fix: use correct token

* feat(docs): add freeleech support documentation
2024-12-11 16:58:51 +01:00
nuxen
b07556ceaa
feat(ci): skip build on misc files (#1854)
feat(ci): don't build on misc files
2024-12-01 21:20:59 +01:00
soup
97e02d3d79
build: add docs update workflow trigger (#1846)
fix: add workflow_dispatch trigger to docs update workflow
2024-11-27 16:34:43 +01:00
soup
7888ea3ae5
feat(ci): add workflow to trigger docs update on release (#1826) 2024-11-23 16:11:59 +01:00
Kyle Sanderson
50f1e4e7d5
build(ci): implement PGO (#1812)
* build(ci): implement pgo

Implement PGO (performance guided optimizations) for Go builds.
2024-11-16 23:57:41 +01:00
soup
7e5f65fd6e
chore(build): update workflows and go.mod to use latest patch version of Go (#1775)
* fix(ci): update workflow to use latest patch version of Go

* fix(ci): update all workflows to use latest patch version of Go

* chore(deps): bump Go version to latest patch in go.mod
2024-10-20 12:51:05 +02:00
Fabricio Silva
5fec9ac1b2
fix(build): do not create flat tarball for web-dist (#1757) 2024-10-07 16:01:35 +02:00
ze0s
1d68aec31e
build: upload web-dist to release assets on tag (#1731) 2024-09-18 09:36:00 +02:00
Fabricio Silva
c8e2fba334
fix(build): run web-dist tarball step for tags only (#1730)
* fix(build): run web-dist tarball step for tags only

* fix(build): create dist folder before running tar command
2024-09-17 15:58:33 +02:00
Fabricio Silva
e7f25cbe3b
build: add web/dist tarball (#1721)
* feat(release): add web-dist.tar.gz to releases

* feat(release): pass the directory to tar command instead
2024-09-17 15:13:15 +02:00
ze0s
54eab05f1f
chore: update issue templates (#1704)
* chore: update issue templates

* feat: add issues-template config
2024-09-03 11:59:11 +02:00
ze0s
c3530ac8af
ci(linters): update Go and Node versions (#1700) 2024-09-02 15:59:33 +02:00
Kyle Sanderson
46b3ae8a0f
build(docker): add Windows images (#1640)
* feat(docker): add Windows images

* Create ciwindows.Dockerfile

* freddy?

* no it's camel

* have as many words with him as you like

* better go get more men

* an eye for an arm, ricky

* mcr.microsoft.com/windows/nanoserver:ltsc2022

* make a dime an hour for the company man

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2024-09-02 11:51:48 +02:00
Kyle Sanderson
f3c7946e52
chore(deps): update Go to 1.23 and Node to 20.17.0 (#1639)
* bump(deps): lift language versions

* Update Dockerfile

* ask your doctor

* chore: update go to 1.23

* fix: go mod version

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2024-09-01 17:10:18 +02:00
dependabot[bot]
c24f04f37c
build(deps): bump docker/build-push-action from 5 to 6 in the github group (#1582) 2024-06-25 14:42:56 +00:00
dependabot[bot]
0bd8c1d974
build(deps): bump goreleaser/goreleaser-action from 5 to 6 in the github group (#1573) 2024-06-18 12:33:38 +00:00
dependabot[bot]
ad6ef228ec
build(deps): bump CatChen/eslint-suggestion-action from 3 to 4 in the github group (#1536) 2024-05-04 09:27:15 +00:00
nuxen
f462d09afc
fix(ci): missing commit hash in docker builds (#1448) 2024-03-05 14:08:36 +01:00
ze0s
8156c8d66e
chore(deps): upgrade to Go v1.22 and deps (#1423)
* chore(deps): upgrade go to v1.22 and deps

* chore(deps): upgrade workflow go to v1.22
2024-02-22 14:33:50 +01:00
Kyle Sanderson
9db5a8b116
build(github): remove hard coded autobrr/autobrr (#1365)
* feat(ci): push to PRs image repository.

* always publish

* brand new eyes

* really.

* k. whatever

* .
2024-01-28 20:50:06 +01:00
ze0s
ab6f688fa6
build(docker): do not tag pre-release as latest (#1352) 2024-01-18 18:03:32 +01:00
Kyle Sanderson
f464e91e18
build(ci): disable ghcr push from forks (#1340) 2024-01-03 01:00:53 +01:00
ze0s
29ee22a213
build(ci): add Go test summary (#1341) 2024-01-02 23:20:24 +01:00
Kyle Sanderson
202030272f
build(ci): change goreleaser back to ubuntu runner (#1331)
* feat(ci): flip to windows 2019 from 2022

* it ended in a church?!

* shuttleworth? are you there

* build(release): remove windows step
2023-12-31 15:04:41 +01:00
dependabot[bot]
c060814022
build(deps): bump the github group with 4 updates (#1324) 2023-12-30 19:55:19 +00:00
Kyle Sanderson
6a94ecacca
refactor(http): auth handlers (#1311)
* fix(auth): implement invalid cookie handling

* that escalated quickly

* refactor(http): auth handlers

* add tests for auth handler
* refactor methods

* chore(tests): add header and build tag

* add build tag integration

* chore(tests): run in ci

---------

Co-authored-by: ze0s <ze0s@riseup.net>
2023-12-28 02:04:25 +01:00
soup
4884fec89c
builds(ci): containers build additional architectures (#1265)
* refactor(dockerfile): optimize Docker builds

Combined multiple run commands into single statements in both main and CI dockerfiles, leveraging Docker's caching mechanism more effectively. This change aims to reduce image size and build time.

* hmm.

* Update ci.Dockerfile

* newline

* what about this

* three quorum members, three opinions

* true believer, right?

* when needed

* it sounds like music

* equals what

* really though, what?

* which one of you is the captain

* is that Kwejian whiskey

* ARG

* ARGH

* k.

* take me to your leader

* asd

* Update ci.Dockerfile

* try cache

* Revert

* Run Seperate platforms

* docker_build

* mother

* aggressive elephant

* leave me to my bath

* introduce buildx cache

* czechout manifests

* front left paw

* kill tags

* dealing with a child

* Update release.yml

* try outputs

* consolidation

* - =

* oxygen depleted

* where's the soup

* thanks buildx

* what's a little avx among friends

* Fine, I'll bring my own matches

* zenuuuu

* space, the final frontier

* but why

* ARE YOU HAPPY NOW

* link those binaries

* fast fail

* just the time killer you need

* add back generic arm

* ruthless dictator barbie

* kat

* build: docker add more labels

---------

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-12-25 19:41:33 +01:00
soup
6815c67e0c
build(ci): integrate ESLint with CodeQL (#1273)
* ci: integrate ESLint with CodeQL

* specualtive fix

* always upload sarif

* make lint.ci exit with 0 so sarif is generated

* fix: exit with 0

* exit 0 on error

* correction

* revert to default with sarif

* see what pnpm run lint --fix does

* reset codeql

* egg

* actually setup pnpm

* checking out the mall

* reimplement lint

* run lint:ci

* anyone home?

* category

* fix?

* try cats

* damage

* TRY IT ONE MORE TIME

* on an atm

* no way?

* test

* test2

* test3

* test4

* revert change in context.ts

* attempt to update lockfile

* reset and update pnpm-lock

* speculative fix

* allow it to fail

* update eslint.yml

* correct path helps

* bring lint:ci back into the fold

* revert eslint.yml

* embed sarif

* is it really this

* k. great.

---------

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2023-12-25 13:37:46 +01:00
Kyle Sanderson
aa6ac6d4db
build(ci): setup Golang linter nilaway (#1310)
* feat(ci): add golang linter

* continue-on-error
2023-12-25 13:32:56 +01:00
Kyle Sanderson
95cd053db5
chore(build): update go and node (#1301)
* chore(build): sync go and node

* node20

* golang:1.20-alpine3.19

* 20.10.0-alpine3.19 golang:1.20-alpine3.19
2023-12-16 11:52:24 -08:00
dependabot[bot]
3d9e3f1cd0
build(deps): bump the github group with 3 updates (#1308) 2023-12-16 19:48:36 +00:00
dependabot[bot]
fef1af08c4
build(deps): bump the github group with 1 update (#1299) 2023-12-13 21:53:08 +00:00
Kyle Sanderson
76d749b301
build: build rpm and deb (#963)
* build: build rpm and deb

* Update .goreleaser.yml

* upload the formats.

* duplication...
2023-11-19 15:24:15 +01:00
ze0s
ff70a341ad
fix(codeql): empty node cache error (#1267)
fix(codeql): speculative fix for empty node cache error
2023-11-18 20:09:14 +01:00
KaiserBh
666bdf68cd
feat(database): setup integration tests (#1118)
* refactor: this should be Debug() just like the rest.

* feat: catch error when updating client table.

Before if we provided the wrong ID it will just say it's successful when it shouldn't.

* chore: handle the errors.

* fix: defer tx.Rollback().

When I try handling the error we always hit the error no matter what even though there wasn't any error, This is due that defer block being executed unconditionally so even after we commit it successfully it will just give error. So add checking then commit it if all good.

* feat: added testing env.

This way we can use in memory sqlite.

* chore: Delete log should be debug as well.

* feat: enable foreign keys for testing for sqlite.

I recommend enabling all together. Not sure why it's commented but for now will keep it the same and only enable for testing.

* chore: catch error, if deleting a record fails.

* chore: catch error, if deleting a record fails.

* chore: catch error, when failed to enable toggle.

* chore: catch error, if updating failed.

* chore(filter): catch error, if deleting failed.

* chore(filter): catch error, if row is not modified for ToggleEnabled.

* chore(feed): Should be debug level to match with others.

* chore(feed): catch error when nothing is updated.

* chore: update docker-compose.yml add test_db for postgres.

* chore(ci): update include postgres db service before running tests.

* feat(database): Added database testing.

* feat(database): Added api integration testing.

* feat(database): Added action integration testing.

* feat(database): Added download_client integration testing.

* feat(database): Added filter integration testing.

* test(database): initial tests model (WIP)

* chore(feed): handle error when nothing is deleted.

* tests(feed): added delete testing.

* chore(feed): handle error when nothing is updated.

* chore(feed): handle error when nothing is updated.

* chore(feed): handle error when nothing is updated.

* feat(database): Added feed integration testing.

* fix(feed_cache): This should be time.Time not time.Duration.

* chore(feed_cache): handle error when deleting fails.

* feat(database): Added feed_cache integration testing.

* chore: add EOL

* feat: added indexer_test.go

* feat: added mock irc data

* fix: the column is not pass anymore it's password.

* chore: added assertion.

* fix: This is password column not pass test is failing because of it.

* feat: added tests cases for irc.

* feat: added test cases for release.

* feat: added test cases for notifications.

* feat: added Delete to the User DB that way it can be used for testing.

* feat: added user database tests.

* refactor: Make setupLogger and setupDatabase private also renamed them.

Changed the visibility of `setupLogger` to private based on feedback. Also renamed the function to `setupLoggerForTest` and `setupDatabaseForTest` to make its purpose more descriptive.

* fix(database): tests postgres ssl mode disable

* refactor(database): setup and teardown

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-11-18 20:04:30 +01:00
dependabot[bot]
69f7cce116
build(deps): bump the github group with 1 update (#1223) 2023-10-28 10:02:05 +00:00
dependabot[bot]
ed3b6d5dcb
build(deps): bump the github group with 1 update (#1158) 2023-10-01 13:16:45 +00:00
Kyle Sanderson
98df0c9040
chore(build): enable CodeQL (#1026)
* Create codeql.yml

* setup pnpm

* sq.Eq{"ras.status": params.Filters.PushStatus}

* enable extended and quality

* fix: code scanning alert #58 #57

https://github.com/autobrr/autobrr/security/code-scanning/58
https://github.com/autobrr/autobrr/security/code-scanning/57

* fix: linting issues for code scanning 60, 59, 56

https://github.com/autobrr/autobrr/security/code-scanning/60
https://github.com/autobrr/autobrr/security/code-scanning/59
https://github.com/autobrr/autobrr/security/code-scanning/56

---------

Co-authored-by: Fabricio Silva <hi@fabricio.dev>
2023-09-26 21:24:59 +02:00
stacksmash76
25c3f02c72
fix(filters): importer (#1149)
fix(web): early exit on filter import
chore(readme): add new pic to readme
2023-09-26 20:30:23 +02:00
dependabot[bot]
816753f0da
build(deps): bump the github group with 6 updates (#1124) 2023-09-19 16:19:57 +00:00
ze0s
93f96e9758
ci(docker): change docker metadata tag to {{raw}} from {{version}} (#1115)
ci(docker): change docker tag to raw

* version was missing the v prefix
2023-09-11 21:18:12 +02:00
Fabricio Silva
996519cbae
ci: fix docker metadata to parse semver tags (#1110)
ci: fix docker metadata to parse semVer tags
2023-09-11 13:09:48 +02:00
dependabot[bot]
087471a1f7
build(deps): bump the github group with 1 update (#1091) 2023-09-09 10:33:56 +00:00