Commit graph

53 commits

Author SHA1 Message Date
Antoine Gersant
46aed8096e Coverage setup fixes 2025-02-04 23:43:46 -08:00
Antoine Gersant
2aeed5f188 yaml fix 2025-02-04 23:39:04 -08:00
Antoine Gersant
fd3f877f93 Tarpaulin -> grcov 2025-01-31 00:33:39 -08:00
Antoine Gersant
95c7d1a620 Bumped old action 2025-01-31 00:28:01 -08:00
Antoine Gersant
ac88bc9af0 Update install check action 2025-01-31 00:22:00 -08:00
Antoine Gersant
7066e264cd Update toolchain setup action 2025-01-31 00:20:09 -08:00
Antoine Gersant
bff82c3a7c Fixed artifact paths 2024-09-29 15:09:41 -07:00
Antoine Gersant
454b4c00fc Troublshooting 2024-09-29 15:09:41 -07:00
Antoine Gersant
2bbfa064d5 Fail when artifacts are missing 2024-09-29 15:09:41 -07:00
Antoine Gersant
f1e21a4f6e CI churn 2024-09-29 15:09:41 -07:00
Antoine Gersant
9e62dc108c Repair tagging 2024-09-29 15:09:41 -07:00
Antoine Gersant
2992ef89b8 Fixed job dependencies 2024-09-29 15:09:41 -07:00
Antoine Gersant
4548574298 Syntax fixes 2024-09-29 15:09:41 -07:00
Antoine Gersant
72f4604f7a More CI churn 2024-09-29 15:09:41 -07:00
Antoine Gersant
646a8fa587 CI churn 2024-09-29 15:09:41 -07:00
Antoine Gersant
c1c0cedccc Release script version churn 2024-09-29 15:08:23 -07:00
Antoine Gersant
470fbc6d1c Fixed toolchain setup 2024-07-27 22:23:49 -07:00
Antoine Gersant
5a785a2e16 Update build script to follow removal of crate feature 2024-07-13 19:06:19 -07:00
Antoine Gersant
123eee7d2d Tentative fix for Linux install CI 2024-02-02 20:30:04 -08:00
Antoine Gersant
fd6a13083d Autoformat 2024-02-02 20:29:51 -08:00
Antoine Gersant
33997fc8e1 Trigger demo deployment on release 2022-11-14 02:06:56 -08:00
Antoine Gersant
818dfe877c Update codecov github action 2021-11-14 14:17:36 -08:00
Tobias Schmitz
d01583b406
add api parameter for thumbnail size ()
* add api parameter for thumbnail size

* make max_dimension optinal in case of native resolution

* add tests for thumbnail size

* fix typo

* fix thumbnail size tests

* make unwrap more explicit

* remove print statement

* update workflows

* reduce thumbnail variations

* add removed token

* Update coverage.yml

* fix typo

* hopefully prevent coverage timeout

- split up thumnail tests
- reduce threadcount used for test execution

* get thread count using github actions specific step

* use fixed thread count of 4

* run coverage tests in release mode

* ignore large and native thumbnail_size tests in coverage
2021-06-05 02:24:25 -07:00
Antoine Gersant
2f71cf2db7 Checkout release branch when making a release 2020-12-30 22:56:26 -08:00
Antoine Gersant
c2807b60de
Replace rocket with actix-web ()
* Adds actix dependency

* Failed attempt at test harness using actix

* Fixed test panic

* Simplified tests

* Run web server in tests

* Send json payloads

* Static file serving

* Default shutdown timeout

* Implement version endpoint

* Implements #[get("/initial_setup")]

* WIP put_settings endpoint

* Adds AdminRights extractor

* Fixed a bug where AdminRights extractor always failed

* Implements collection endpoints

* Re-use system runnner between calls

* Preserve client headers between API calls (tentative)

* Fixed test interferences

* Implemented more endpoints

* Implemented audio file serving

* Fixed sketchy responses

* Implements thumbnail endpoint

* Login endpoint WIP

* Implement login endpoint

* Auth support

* When using HTTP headers to authenticate, response now includes expected cookies

* Tentative fix for server not responding within docker

* Adds logging middleware + browse troubleshooting

* Tentative fix for path decoding issues

* Tentative fix for broken path decoding

* Fix routing issues w/ paths

* Fixed a bug where auth cookies were sent in every response

* More lenient test timeouts

* Fixed a bug where recent/random endpoints required trailing slashes

* Compilation fix for rocket branch

* More useful test matrix

* Signed session cookies ()

* Isolate conflicting dependencies between rocket and actix versions

* Removed macOS from test matrix

* Glorious test harness simplification

* Removed RequestBuilder

* Shutdown on ctrl+c

* Pin to stable

* Drop rocket

* Simplify dependencies

* Removed stray rocket dependency

* Better test matrix

* Skip windows build without bundled sqlite

* Offload thumbnail creation to a thread pool

* Compress responses when possible

* Removed unused manage state

* Fixed a bug where large playlists could not be saved

* Return HTTP 401 for last fm requests without authentication

* Web block ()

* web::block around DB operations

* web::block during auth utils hitting DB

* Fixed incorrect http response code for missing thumbnail

* Removed unecessary unwrap

* Eliminated unecessary unwrap
2020-12-14 21:18:44 -08:00
Antoine Gersant
6be6d2a7dc Cosmetic change 2020-12-14 19:32:10 -08:00
Antoine Gersant
e25af0e9b5 Fixed issue where releases may not get their git tag 2020-12-13 20:05:42 -08:00
Antoine Gersant
2c21609699 Fetch URL for uploading release assets 2020-12-13 19:44:41 -08:00
Antoine Gersant
847d61f62b
One click release ()
* Make release from Github UI
2020-12-13 19:24:06 -08:00
Antoine Gersant
866d82a16c
Make sqlite bundling optional ()
* Manually specify libsqlite version

* Make sqlite bundling optional

* Skip tests on windows without bundled sqlite
2020-12-08 01:22:17 -08:00
Antoine Gersant
55a4f64b3a
Bundle SQLite () 2020-12-08 00:14:16 -08:00
Antoine Gersant
33121bc0a3
Pin rust toolchain version () 2020-12-07 22:08:37 -08:00
Antoine Gersant
7ea97b0abf More conservative workflow config 2020-12-05 20:38:01 -08:00
Antoine Gersant
538b41a2b4
Use standard directories when running on Linux ()
* Use standard Linux directories for application data (https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)

* Use standard system directories

* Cleanup all Polaris files during uninstall

* Expose get_pid_directory to rest of the crate

* Add separate targets for install binary and data files, clean up makefile

* Use environment variables for directory locations during install process

* On Linux, read locations from environment variables at compile time

* Split static_directory in two (web and swagger directories)

* Follow recommendations from the Make manual

* Avoid redundant directories

* Added workflow to validate installer setup

* Added CLI options to locate log file, pid file and cache directory

* Fixed an issue where build command did not support the xdg/system switch

* Renamed log option to log-level

* Fixed an issue where xdg install would do a system build

* Use re-usable action to make linux release

* Avoid nested actions (see https://github.com/actions/runner/issues/646)

* Updated installation instructions

* Replaced deprecated use of set-env
2020-11-26 15:57:08 -08:00
Antoine Gersant
341a03574b added test coverage workflow 2020-09-21 02:59:45 -07:00
Antoine Gersant
107e63caca Tentative fix for CI breakage 2020-06-13 19:24:47 -07:00
Antoine Gersant
4e76a11e7a Pull latest polaris web release when making a polaris release 2020-02-01 19:29:52 -08:00
Antoine Gersant
503eed8b62 Removed traces of polaris-web submodule 2020-02-01 19:28:31 -08:00
Antoine Gersant
b7b7c6e737 Unpin nightly rustc version 2020-01-22 21:17:28 -08:00
Antoine Gersant
78c8ca8aa2 Unpin rustc nightly 2020-01-20 18:58:45 -08:00
Antoine Gersant
b2ee2fe701
Automate release process ()
Added Github Actions workflow to generate release
2020-01-20 18:21:47 -08:00
Antoine Gersant
2efc0df04e Don't build without a backend 2020-01-18 14:59:19 -08:00
Antoine Gersant
ee71df9d0b Lock CI rustc to working nightly (https://github.com/rust-lang/rust/issues/68264) 2020-01-18 14:48:47 -08:00
Antoine Gersant
77a1e86f84 Fix CI breakage 2019-12-08 16:40:11 -08:00
Laurențiu Nicola
44be1966e5 Install libsqlite3-dev on CI 2019-10-22 08:31:34 +03:00
Laurențiu Nicola
cb72ab1ac7 Enable CI on PRs 2019-10-22 08:31:34 +03:00
Antoine Gersant
5666896275
Renamed workflow 2019-09-29 00:07:56 -07:00
Antoine Gersant
e8fc576052
Don't use third-party action to clone submodules 2019-09-28 23:42:16 -07:00
Antoine Gersant
37edf64e17
Build matrix for OS and features 2019-09-28 23:28:27 -07:00
Antoine Gersant
2632e083f6 Checkout submodules before building 2019-09-28 23:05:35 -07:00