Skip to content

Commit

Permalink
Merge #715: Release Version 3.0.0-alpha.12
Browse files Browse the repository at this point in the history
817cc7e release: version 3.0.0-alpha.12 (Jose Celano)
4c568f8 chore: synchronize version with tracker 3.0.0-alpha.12-develop (Jose Celano)
cb0e375 fix: [#653] rename auth.secret_key config option (Jose Celano)
7b3cc13 fix: [710] make secrets in config options mandatory (Jose Celano)
6cb94c4 fix: linter errors (Jose Celano)
04c3199 chore(deps): update dependencies (Jose Celano)
12316b1 chore: remove debugging code (Jose Celano)
c1a5c25 feat: [#702] allow overwriting casbin configuration (Jose Celano)
f38b628 refactor: [#615] new authorization error for guest users (Mario)
d8b3ee2 refactor: [#615] change test http return code (Mario)
0360517 refactor: [#615] changed status code so tests pass (Mario)
6010155 refactor: [#615] handlers and functions now use optional user id (Mario)
c22c919 refactor: [#615] change password handler and function now use optional user id (Mario)
dbcd0e1  refactor: [#615] added missing error to handler comments (Mario)
00c293c  refactor: [#615] added missing error to function comments (Mario)
e527867 fix: [#615] adjusted http error code for test so it pass (Mario)
42fb031 refactor: [#615] renamed error to be more human friendly (Mario)
836c94d refactor: [#615] upload torrent handler now uses an optional user id (Mario)
935eb53 refactor: [#615] rearrange actions (Mario)
93b15ac refactor: [#615] renamed variables to maybe_user_id (Mario)
e614e2f feat: [#615] authorization layer added to the change password method of the user service (Mario)
543d804 refactor: [#615] redirect to details url with infohash method now calls the torrent service that implements the authorization layer (Mario)
f8e7570 feat: [#615] authorization layer added to the get torrent info method of the torrent service (Mario)
1342dce feat: [#615] authorization layer implemented for the get torrents handler (Mario)
f264e75 fix: [#615] fix unfinished comment (Mario)
d56d66c refactor: [#615] download torrent handler now calls the torrent service to get the canonical infohash (Mario)
b3ffc9f feat: [#615] new get canonical info hash method (Mario)
7bb6ff7 feat: [#615] authorization layer implemented for the get torrent method of the torrent service (Mario)
b5171bf feat: [#615] authorization layer added for add torrent method of the torrent service (Mario)
1c607c2 refactor: [#615] added optional logged in user to public handlers and methods (Mario)
b483c8e refactor: [#615] renamed variable (Mario)
2880f7c feat: [#615] added authorization layer for get public settings method of the settings service (Mario)
530f37a feat: [#615] admin user is now authorize to see proxied images (Mario)
d1d2941 refactor: [#615] fix linting errors (Mario)
056cb83 refactor: [#615] methods used by the proxy service now use the user id instead of the user compact type (Mario)
173f43d feat: [#615] authorization layer implemented for the proxy service (Mario)
4f6ea18 refactor: [#615] new action and reordered old ones for cohesion (Mario)
0ac5f9b refactor: [#615] get all categories handler now calls the category service which uses the authorization layer (Mario)
839a00d feat: [#615] New get categories service method (Mario)
fe11c2f refactor: [#615] added comments for new functions (Mario)
cd8f609 feat: [#615] authorization implemented for get tags method (Mario)
eee3349 refactor: [#615] new get tags service method (Mario)
6f8de80 feat: [#615] authorization service implemented for the about service (Mario)
a757c5c refactor: [#615] new about service and minor refactor to existing code (Mario)
394a705 chore(deps): update depedencies (Jose Celano)
3697040 feat!: [#673] make some config options mandatory (Jose Celano)
c9654e0 feat: [#653] rename config option secret_key (Jose Celano)
5bd611b feat: [#672] improve metadata section in configuration (Jose Celano)
6ca8a63 fix: [#696] update tracker configuration (Jose Celano)
da6606f chore: [#685] fix Containerfile linter warning (Jose Celano)
72f4c69 fix: [#580] E2E tests failing with MySQL (Jose Celano)
28ac404 chore(deps): update depedencies (Jose Celano)
35528b4 feat: [#674] rename email config option (Jose Celano)
bcc3f81 chore(deps): update dependencies (Jose Celano)
8d660b8 docs: remove endpoint doc (Jose Celano)
a5e745e refactor: move ConfigurationPublic (Jose Celano)
4fbeead fix: bug, allow empty email is registration when it's optional (Jose Celano)
e0dbdbe feat: [#654] remove config option email_verification_enabled (Jose Celano)
29cc9dc feat: [#654] remove config option email_on_signup (Jose Celano)
1c5e862 feat: [#654] new registration confg section (Jose Celano)
e2a42ed fix: [#665] update tracker database driver config (Jose Celano)
389acc4 chore(deps): update dependencies (Mario)
6e1877c refactor: [#615] new get role method, new user role enum and minor refactoring (Mario)
3671c78 refactor: [#615]  explicit Casbin imports and policy now defined as string (Mario)
22b0e67 refactor: [#615] delete unused Casbin folder (Mario)
463c533 refactor: [#615] new panic messages and minor refactorings (Mario)
7104b61 feat: [#615] policy is now loaded from code and minor refactors (Mario)
f24afaf refactor: [#165] removed unused model file (Mario)
344857e refactor: [#615] model is now read from string instead of file and code cleanup (Mario)
5dc9dca refactor: [#615] more human readable policy file (Mario)
e13f579 feat: [#615] authorization service implemented for ban user handler (Mario)
ba0ad37 refactor: [#615] code cleanup and improved comments (Mario)
58a33e7 feat: [#615] added authorization for delete torrent action (Mario)
e00b0f6 feat: [#615] added Casbin enforcer to app state (Mario)
7a39d0b refactor: [#615] policy file allows admin user to perform any action (Mario)
d9ea173 feat: [#615] initial casbin configuration (Mario)
9895346 feat: [#615] casbin package added (Mario)
6104103 feat: [#655] remove tracker mode in config (Jose Celano)
cea5b44 chore(deps): update dependencies (Mario)
df96264 feat: [#652] rename config option log_level to threshold (Jose Celano)
a2b8fc5 refactor: normalize log texts (Jose Celano)
f39f5e5 feat: print the final configuration to console (Jose Celano)
238340b feat: add version to config file (Jose Celano)
940c246 fix: [#648] udpate tracker configuration (Jose Celano)
0bcce16 chore: bump build-push-action action from 5 to 6 (Jose Celano)
44ed14b chore(deps): update dependencies (Jose Celano)
9ce44f4 fix: [#635] udpate tracker config (Jose Celano)
5bd98e5 chore(deps): update dependencies (Jose Celano)
9962266 fix: [#635] udpate tracker config (Jose Celano)
d61d670 chore(deps): update dependencies (Jose Celano)
35a125e refactor: [#591] order keys in config TOML files alphabetically (Jose Celano)
cb8935b feat!: [#591] use full socket addr in net config instead of only the port (Jose Celano)
52f3d9c feat!: [#591] inject full socket address in configuration (Jose Celano)
1bc00ce feat!: [#591] extract new types for SMTP server configuration (Jose Celano)
cd8248a feat!: [#591] extract new type for password constrains in configuration (Jose Celano)
50ebb9a feat!: [#591] move log_level into a new logging section in config (Jose Celano)
82fc32c feat!: [#591] rename enum variant EmailOnSignup::None to Ignored (Jose Celano)
bb75303 feat!: [#591] lowercase for auth::enail_on_signup emnum variants (Jose Celano)
eb987e9 feat!: [#591] config v2, tracker mode from tracker (Jose Celano)
784ac54 fix comment (Jose Celano)
a3e162c refactor: simplify config files removing default values (Jose Celano)
f0a5006 fix: [#628] rename config files for MySQL E2E test env too (Jose Celano)
564ef13 fix: [#628] bug, duplicate slash in tracker announce URL (Jose Celano)
96269cd test: [#628] add failing test for bug. Duplicate slash in announce URL (Jose Celano)
0e2b5fd chore(deps): update dependencies (Jose Celano)
f6bace6 feat: move loggin from log to tracing crate (Jose Celano)
213fcd3 chore(deps): [#621] add cargo dependency: tracing-subscriber (Jose Celano)
95e5019 feat: [#618] check current password before changing it (Jose Celano)
659fd92 refactor: [#618] extract duplicate code (Jose Celano)
a4de33a test: [#618] add tests for changing the user's password (Jose Celano)
44030f8 feat: [#618] allow users to change the password (Jose Celano)
df848de feat: [#618] scaffolding for changing pass endpoint (Jose Celano)
478e234 feat: [#448] new authorization service implemented in the other services (Mario)
9ebd7b5 feat: [#448] new authorization service (Mario)
b1d5536 feat: [#448] new user repository trait (Mario)
a2ce990  feat: [#448] added mockall dependency (Mario)
716a475 chore(deps): update dependencies (Jose Celano)
b66e65c chore: update dependencies (Mario)
76a1837 feat: [#605] remove deprecated env vars (Jose Celano)
5725d7d refactor: [#603] remove default values from config toml templates (Jose Celano)
56a8c08 feat: [#603] add default values to configration (Jose Celano)
ec1d39a refactor: [#599] extract types for config::v1::Settings (Jose Celano)
8e53982 refactor: [#599] extract types for config::v1::tracker::Tracker (Jose Celano)
b1d5267 refactor: [#599] use URL type for connect_url in database config (Jose Celano)
ab4717d refactor: [#599] extract types for config::v1::net::Network (Jose Celano)
c422e52 chore(deps): [#599] enable serialization for URls (Jose Celano)
7edbf7c refactor: [#599] extract types for config::v1::mail::Mail (Jose Celano)
748f357 chore(deps): enable serialization for lettre (Jose Celano)
28617b6 refactor: [#599] extract types for torrust_index::config::v1::database::Database (Jose Celano)
c7c9225 refactor: [#599] extract types for torrust_index::config::v1::auth::Auth (Jose Celano)
e0d56a4 fix: [#601] linting errors (Jose Celano)
97e3634 refactor: [#596] rename env vars (Jose Celano)
5910fda refactor: [#596] move env var constants to config mod (Jose Celano)
b8d0f98 refactor: [#596] merge E2E and prod common env var constants (Jose Celano)
fc1528d feat: [#596] rename common E2E env vars (Jose Celano)
7a05b8d chore(deps): update dependencies (Jose Celano)
66de695 test: show error when test env is not running (Jose Celano)
757751f fix: [#581] broken tests using relative paths for fixtures (Jose Celano)
6ea859b chore(deps): [#581] remove unused dep config (Jose Celano)
018dfc3 refactor: [#581] migration to Figment (Jose Celano)
ccb2fef chore(deps): add cargo dep figment (Jose Celano)
8d3c8cb refactor: [#581] move semantic validation (Jose Celano)
790e1ec refactor: [#581] rename TorrustIndex to Settings (Jose Celano)
1a28309 refactor: [#581] remove unused code (Jose Celano)
07a3fb6 reafctor: reaname TorrustIndex to Settings (Jose Celano)
8675d6b docs: [#589] add todo for TrackerMode (Jose Celano)
6c98e2b refactor: [#589] versioning for configuration (Jose Celano)
d7d6d88 chore: [#589] clean unused configuration code (Jose Celano)
be3ab62 test: [#581] add some tests to configuration before refactoring (Jose Celano)
1afe234 feat: [#426] disable TimeoutAccceptor when TSL is enabled (Jose Celano)
284d235 feat: [#426] add TSL support (Jose Celano)
969ffff feat: [#426] add TSL info to the [net] section in the config toml file (Jose Celano)
5d82968 chore(deps): add cargo dependencies to parse TSL config (Jose Celano)
e29eb01 feat: use custom axum-server wrapper with timeouts (Jose Celano)
b948573 chore(deps): [#426] add cargo dependencies to use a custom axum server with timeouts (Jose Celano)
bcebcab chore: format Cargo.toml (Jose Celano)
ae06170 fix: errors in scripts (Jose Celano)
0335134 chore(deps): update dependencies (Jose Celano)
470bfb2 refactor: [#576] rename tracker env vars (Jose Celano)
a6d3b0d chore(deps): udpate dependencies (Jose Celano)
b2c2ce7 feat: increase the tracker stast importer exec interval (Jose Celano)
09b030d build: [#556] fix project not building due to unused code (Mario)
3321418 chore: update deps (Mario)
d83f8c6 refactor: deprecated function updated and unused import deleted (Mario)
4167b86 chore: bump thiserror from 1.0.57 to 1.0.58 (Mario)
dcb0f59 chore: bump anyhow from 1.0.80 to 1.0.81 (Mario)
2b6654f chore: bump sqlx from 0.7.3 to 0.7.4 (Mario)
c7ada2e chore: bump reqwest from 0.11.24 to 0.11.26 (Mario)
a011158 chore: bump chrono from 0.4.34 to 0.4.35 (Mario)
6e6f4f7 chore: bump mio from 0.8.10 to 0.8.11 (Mario)
af7150b feat: [#469] import torrent stats using multiple torrents tracker API endpoint (Jose Celano)
16cbea8 feat: [#469] import torrent statistics in batches (Jose Celano)
feffd09 feat: [#469] add update datetime for tracker stasts importation (Jose Celano)
67f82b0 chore: bump which from 5.0.0 to 6.0.0 (Mario)
d7e3287 chore: bump log from 0.4.20 to 0.4.21 (Mario)
7148cf1 chore: bump indexmap from 2.2.3 to 2.2.5 (Mario)
7183953 chore: bump http from 1.0.0 to 1.1.0 (Mario)
0df72de chore(deps): bump clap from 4.5.1 to 4.5.2 (Mario)
094ab8a fix: linter errors (Jose Celano)
bd935b3 fix: [#526] DB migration for SQLite. Backup secondary tables (Jose Celano)
a7f43dc refactor: rename fields in upload torrent response (Jose Celano)
414d468 refactor: [#290] return 4009 intead of 400 trying to upload duplicate torrents (Jose Celano)
d500634 refactor: [#290] specific error for suplidatetorrent with a original infohashes (Jose Celano)
2abb62a chore: reset log level to info for developmentWq (Jose Celano)
3c719b1 chore: remove deprecated comment (Jose Celano)
601c358 feat: [#294] add canonical info-hash group top torrent details API response (Jose Celano)
7390616 refactor: [#301] add independent field root_hash in DB for BEP-30 torrents (Jose Celano)
4d7091d refactor: [#301] rename table field root_hash to is_bep_30 (Jose Celano)
7b9d5a4 feat: [#438] persist metainfo field nodes. BEP 5 (Jose Celano)
f64cb29 test: add announce field to test torrent (Jose Celano)
d98c61a feat: [#438] persist metainfo field httpseeds. BEP 17 (Jose Celano)
c92e41c feat: add a new console command to create random test torrents (Jose Celano)
553208e feat: [#503] add more contrains for usernames (Jose Celano)
09e1620 refactor: [#501] decouple database struct from API response for Category (Jose Celano)
a511df3 chore(deps): bump EndBug/label-sync from 2.3.2 to 2.3.3 (Jose Celano)
b5e54cb chore(deps): udpate cargo dependencies (Jose Celano)
9b7c5c8 feat: [#488] panic starting the app when tracker config is invalid (Jose Celano)
36e46fe chore(deps): add cargo dependency url to parse URLs (Jose Celano)
b8624a8 feat!: [#488] return 503 instead of 500 when tracker is offline (Jose Celano)
d100b5b fix: [#488] broken test after removing duplicate tracker urls from magnet links (Jose Celano)
c1fd866 feat: [#488] return an error in the torrent details endpoint when user tracker keys can't be generated (Jose Celano)
b41488b fix: [#488] torrent without tracker keys for open tracker (Jose Celano)
63866f3 chore(deps): udpate dependencies (Jose Celano)
8a97b5b feat: [#483] allow upload torrent with application/octet-stream (Jose Celano)
cfbe2ce chore(deps): udpate dependencies (Jose Celano)
3607dc9 refactor: [#446] fixed text formatting (Mario)
4208f3a refactor: [#446] refactored handlers with new extractor (Mario)
8f7b8a6 feat: [#446] new optional user id extractor (Mario)
21f533f refactor: [#445] fix formatting warning (Mario)
61388de fix: [#445] refactor handlers with new user id extractor (Mario)
0bab945 chore(deps): update dependencies (Jose Celano)
1e96237 ci: fix missing tools in coverage workflow (Jose Celano)
2eaeba8 fix: [#468] mising request ID when not provided by client (Jose Celano)
a206737 feat: [#468] add custom request log (Jose Celano)
91f818e feat: [#468] add request id to response log (Jose Celano)
db6a62f chore: [#468] set and propagate request ID (Jose Celano)
3ec28ba chore: [#468] add new features to propagate ID in requests (Jose Celano)
e5ebcc0 feat: [#468] deafult logging for API requests (Jose Celano)
c1e01f8 chore: [#468] add cargo dependencies for tracing (Jose Celano)
bc003e4 feat: [#468] improve tracker stats importer logs (Jose Celano)
df50b91 ci: run coverage report only in coverage workflow (Jose Celano)
3f629c2 refactor: [#473] tracker API client. Remove duplicate code (Jose Celano)
7256b46 feat: [#473] add timeout to Tracker API Client requests (Jose Celano)
47f5242 chore: fix comment (Jose Celano)
3d3fc2d chore: add todo to seeder (Jose Celano)
2fc2016 refactor: [#472] move unwraps from API client up (Jose Celano)
1015945 chore: remove comment (Jose Celano)
564df07 docs: move comment (Jose Celano)
a8c2f84 refactor: [#472] move unwraps from generic HTTP client up to Index API client (Jose Celano)
26422fc feat: [#472] add timeout to API client requests (Jose Celano)
9ff4de4 feat: [#472] inject URL scheme in API client (Jose Celano)
2cf5f47 refactor: [#472] move generic HTTP client (Jose Celano)
9d8cf7b feat: [#412] allow to overwrite auth secret conf opt with env var (Jose Celano)
67a8827 docs: fix linter warnings (Jose Celano)
e341e98 feat: [#424] remove secrets from settings API endpoint (Jose Celano)
6d37f78 ci: Intermodal command needs rust nigthly (Jose Celano)
f76f1ab fix: [#456] unknown feature stdsimd with ahash dep (Jose Celano)
4e7e920 feat: [#433] add timeout to health_check binary (Jose Celano)
90a2035 fix: [#457] fix API about pages with subfolder (Jose Celano)
5f7608e docs: [#463] system package dep: libssl-dev (Jose Celano)
3c76794 docs: [#466] improve docs for seeder command (Jose Celano)
96ee337 ci: use stable rust for coverage report (Jose Celano)
b39a2be chore(deps): bump openssl from 0.10.59 to 0.10.63 (Jose Celano)
f123a32 chore(deps): bump uuid from 1.5.0 to 1.7.0 (Jose Celano)
1c139a8 chore(deps): bump h2 from 0.3.21 to 0.3.24 (Jose Celano)
2b309d5 chore(deps): bump serde from 1.0.192 to 1.0.193 (Jose Celano)
45698a9 chore(deps): bump config from 0.13.3 to 0.14.0 (Jose Celano)
cbbca39 chore(deps): bump zerocopy from 0.7.25 to 0.7.32 (Jose Celano)
82b2f78 chore(deps): bump codecov/codecov-action from 3 to 4 (Jose Celano)
59b1cce  refactor: [#445] new more descriptive error message (Mario)
2f288c6 refactor: [#445] new custom error message (Mario)
1cecc59 feat: [#445] new custom error and minor refactor to extractor (Mario)
b5da547 refactor: [#445] new return error type for user id extractor (Mario)
adec821 feat: [#445] new user id extractor (Mario)
324fac7 fix: [#453] cargo fmt --check for nigthly toolchain (Jose Celano)
935facb feat: [#453] new  console command (Jose Celano)
df3a9be feat: [#453] new console command seeder. Only scaffolding. WIP (Jose Celano)
98fa40f feat: [#453] add cargo dependencies: clap, anyhow (Jose Celano)
ac21c49 feat: [#452] move API client to production code (Jose Celano)
118d6a5 refactor: [#453] reorganize web mod (Jose Celano)
b1df4e8 refactor: [#453] reorganize console mods (Jose Celano)
1d5c8c0 refactor: [#449] fix clippy linting error (Mario)
ff90e9e feat: [#420] ignore torrent not found when importing statistics from tracker (Jose Celano)
f975bf5 fix: [#420] improve error loggin for statistics importer (Jose Celano)
70ac664 fix: [#420] proper handling for tracker API responses (Jose Celano)
7620ed1 chore: disable clippy error until we fix it (Jose Celano)
35b079f refactor: [#420] decouple tracker API errors from app errors (Jose Celano)
860de14 fix: [#419] url-encode tracker API token in the HTTP requests (Jose Celano)
2c9c3dd fix: [#391] patch to identify 'torrent not found' tracker API response (Jose Celano)
219dff0 fix: clippy error (Jose Celano)
9ada2d6 test: [#391] add test for torrust_index::tracker::service::get_torrent_info (Jose Celano)
471ec38 feat: [#176] change logging level for SQL statements (Jose Celano)
902e8c7 chore: add script to setup DB for development (Jose Celano)
e00406e ci: [#408] wait for Tracker container to be healthy (Jose Celano)
1b3d5a0 ci: [#203] stop containers running E2E tests when tests fail (Jose Celano)
1b33145 ci: [#390] inject E2E DB connection info with env var (Jose Celano)
052e855 fix: [#392] use a different DB for E2E testing (Jose Celano)
0e8b32b ci: [#254] add container healthcheck for index service (Jose Celano)
1e0e416 refactor: [#389] extract duplicate function wait_for_container_to_be_healthy (Jose Celano)
022b74e chore: [#386] remove deprecated container varaibles (Jose Celano)
5b73255 chore: disable shellcheck SC2016 in entryscript (Jose Celano)
fe44afa fix: add missing env var in compose.yaml (Jose Celano)
5b1a3c1 refactor: [#361] rename env vars to follow repo renaming (Jose Celano)
d92443d fix: [#342] E2E test execution with MySQL (Jose Celano)
31351fa fix: [#342] disable clippy warning (Jose Celano)
f8aa238 fix: [#342] broken E2E tests after renaming Category::category_id field (Jose Celano)
e78607d fix: [#342] SQLite data file path inside the container for E2E tests (Jose Celano)
1cce823 fix: [#342] index container not running for E2E tests (Jose Celano)
03943ef fix: [#342] fix en vars to run E2E tests (Jose Celano)
b93564c fix: [#362] rename docker image (Jose Celano)
cb8b889 fix: linter errors in README (Jose Celano)
61af32d fix: [#343] Torrust architecture image (Jose Celano)
f35a067 fix: [#342] reestablish E2E Tests (Jose Celano)
f575b27 chore: update dependencies (Jose Celano)
5dc0017 fix: add comments (pcarles)
5f96cce fix: update doc (pcarles)
c535652 fix: rework error handling for add_category Fixes #253 (pcarles)
c22f661 refactor: [#303] store in the database the torrent fields creation date created by encoding (Mario)
c3d69f4 feat: [#303] store in the database the torrent fields creation date created_by encoding (MMelchor)
aadde22 refactor: [#303] store in the database the torrent fields creation date created_by encoding (MMelchor)
0a48536 refactor: [#303] store in the database the torrent fields creation_date created_by encoding (MMelchor)
b738291 feat: [#303] store in the database the torrent fields creation_date created_by encoding (MMelchor)
84f778d chore: bump serde_json to 1.0.108 (Mario)
821708f chore: updated cargo dependency toml to 0.8.6 (Mario)
d42d0f9 chore: update cargo dependencies (Jose Celano)
3550c44 fix: [#226] user serde-bencode v0.2.4 (Jose Celano)
406abbf refactor: rename struct field to avoid clippy error (Jose Celano)
9777d26 fix: docker compose (Jose Celano)
d950f5e develop: bump to version 3.0.0-alpha.3-develop (Cameron Garnham)

Pull request description:

  Release Version 3.0.0-alpha.12.

Top commit has no ACKs.

Tree-SHA512: 8d21a54770426dccfba03ca9793c4f589f047fd125c3977f158760b68c255a0e95346af7613ec6fa7d6ab67cdd0d6783db003cde696ad2896bc5e8455fb77056
  • Loading branch information
josecelano committed Aug 13, 2024
2 parents 4915289 + 817cc7e commit 9da22d8
Show file tree
Hide file tree
Showing 233 changed files with 10,445 additions and 3,326 deletions.
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
/config-tracker.local.toml
/config.local.toml
/config.toml
/contrib/dev-tools/container/
/cspell.json
/data_v2.db*
/data.db
/data.db*
/docker/
/project-words.txt
/README.md
/rustfmt.toml
/storage/
/target/
/target/
11 changes: 6 additions & 5 deletions .env.local
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DATABASE_URL=sqlite://storage/database/data.db?mode=rwc
TORRUST_IDX_BACK_CONFIG=
TORRUST_IDX_BACK_USER_UID=1000
TORRUST_TRACKER_CONFIG=
TORRUST_TRACKER_DATABASE_DRIVER=sqlite3
TORRUST_TRACKER_API_ADMIN_TOKEN=MyAccessToken
TORRUST_INDEX_CONFIG_TOML=
TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__SECRET_KEY=MaxVerstappenWC2021
USER_ID=1000
TORRUST_TRACKER_CONFIG_TOML=
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=Sqlite3
TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN=MyAccessToken
14 changes: 7 additions & 7 deletions .github/workflows/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- id: build
name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./Containerfile
push: false
Expand Down Expand Up @@ -111,23 +111,23 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
"${{ secrets.DOCKER_HUB_USERNAME }}/${{secrets.DOCKER_HUB_REPOSITORY_NAME }}"
"${{ vars.DOCKER_HUB_USERNAME }}/${{vars.DOCKER_HUB_REPOSITORY_NAME }}"
tags: |
type=ref,event=branch
- id: login
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- id: setup
name: Setup Toolchain
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./Containerfile
push: true
Expand All @@ -149,7 +149,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
"${{ secrets.DOCKER_HUB_USERNAME }}/${{secrets.DOCKER_HUB_REPOSITORY_NAME }}"
"${{ vars.DOCKER_HUB_USERNAME }}/${{vars.DOCKER_HUB_REPOSITORY_NAME }}"
tags: |
type=semver,value=${{ needs.context.outputs.version }},pattern={{raw}}
type=semver,value=${{ needs.context.outputs.version }},pattern={{version}}
Expand All @@ -160,15 +160,15 @@ jobs:
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- id: setup
name: Setup Toolchain
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./Containerfile
push: true
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
name: Install Tools
uses: taiki-e/install-action@v2
with:
tool: grcov
tool: cargo-llvm-cov, cargo-nextest, grcov

- id: imdl
name: Install Intermodal
Expand All @@ -68,13 +68,17 @@ jobs:
name: Run Unit Tests
run: cargo test --tests --benches --examples --workspace --all-targets --all-features

- id: coverage
name: Generate Coverage Report
- id: coverage-llvm
name: Generate Coverage Report with LLVM
run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features

- id: coverage-grcov
name: Generate Coverage Report with grcov
uses: alekitto/[email protected]

- id: upload
name: Upload Coverage Report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ steps.coverage.outputs.report }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- id: sync
name: Apply Labels from File
uses: EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8
uses: EndBug/label-sync@v2
with:
config-file: .github/labels.json
delete-other-labels: true
Expand Down
45 changes: 36 additions & 9 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ jobs:
name: Make Build Clean
run: cargo clean

- id: tools
name: Install Tools
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov, cargo-nextest

- id: imdl
name: Install Intermodal
run: cargo install imdl
Expand All @@ -129,6 +123,39 @@ jobs:
name: Run Unit Tests
run: cargo test --tests --benches --examples --workspace --all-targets --all-features

- id: coverage
name: Generate Coverage Report
run: cargo llvm-cov nextest --tests --benches --examples --workspace --all-targets --all-features
integration:
name: Integrations
runs-on: ubuntu-latest
needs: check

strategy:
matrix:
toolchain: [stable, nightly]

steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v4

- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}

- id: cache
name: Enable Job Cache
uses: Swatinem/rust-cache@v2

# Temporary Cleaning to avoid Rust Compiler Bug
- id: clean
name: Make Build Clean
run: cargo clean

- id: test-sqlite
name: Run Integration Tests (SQLite)
run: ./contrib/dev-tools/container/e2e/sqlite/run-e2e-tests.sh

- id: test-mysql
name: Run Integration Tests (MySQL)
run: ./contrib/dev-tools/container/e2e/mysql/run-e2e-tests.sh
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/.coverage/
/.env
/.idea/
/config.toml
/data_v2.db*
/data.db*
/output/
/storage/
/target
/uploads/
/.idea/
/uploads/
Loading

0 comments on commit 9da22d8

Please sign in to comment.