1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00
Commit graph

33 commits

Author SHA1 Message Date
Chocobozzz
3a4992633e
Migrate server to ESM
Sorry for the very big commit that may lead to git log issues and merge
conflicts, but it's a major step forward:

 * Server can be faster at startup because imports() are async and we can
   easily lazy import big modules
 * Angular doesn't seem to support ES import (with .js extension), so we
   had to correctly organize peertube into a monorepo:
    * Use yarn workspace feature
    * Use typescript reference projects for dependencies
    * Shared projects have been moved into "packages", each one is now a
      node module (with a dedicated package.json/tsconfig.json)
    * server/tools have been moved into apps/ and is now a dedicated app
      bundled and published on NPM so users don't have to build peertube
      cli tools manually
    * server/tests have been moved into packages/ so we don't compile
      them every time we want to run the server
 * Use isolatedModule option:
   * Had to move from const enum to const
     (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums)
   * Had to explictely specify "type" imports when used in decorators
 * Prefer tsx (that uses esbuild under the hood) instead of ts-node to
   load typescript files (tests with mocha or scripts):
     * To reduce test complexity as esbuild doesn't support decorator
       metadata, we only test server files that do not import server
       models
     * We still build tests files into js files for a faster CI
 * Remove unmaintained peertube CLI import script
 * Removed some barrels to speed up execution (less imports)
2023-08-11 15:02:33 +02:00
Chocobozzz
6b745df087
Try to fix CI test 2023-07-17 14:34:44 +02:00
Chocobozzz
d8fe90dde2
Wait for segments generation 2023-05-23 08:28:25 +02:00
Chocobozzz
57c318653e
Fix live quota tests 2023-05-22 16:23:28 +02:00
Chocobozzz
3f0ceab06e
More robust quota check
Avoid concurrency issues with permanent lives
2023-05-22 15:52:59 +02:00
Chocobozzz
6a9b315182
Fix tests 2023-05-22 15:03:14 +02:00
Chocobozzz
17ecdf61ce
Force stop remote live transcoding 2023-05-22 13:54:46 +02:00
Chocobozzz
21609258de Increase timeouts 2023-05-09 08:57:34 +02:00
Wicklow
05a60d8599
Feature/Add replay privacy (#5692)
* Add replay settings feature

* Fix replay settings behaviour

* Fix tests

* Fix tests

* Fix tests

* Update openapi doc and fix tests

* Add tests and fix code

* Models correction

* Add migration and update controller and middleware

* Add check params tests

* Fix video live middleware

* Updated code based on review comments
2023-03-31 09:12:21 +02:00
Chocobozzz
aa887096f9
Correctly delete live files from object storage 2022-10-25 14:18:59 +02:00
Chocobozzz
863477173e
Cleanup tests imports 2022-08-17 15:47:54 +02:00
Chocobozzz
e0faa8ad6e
We don't need to import mocha 2022-08-17 15:40:57 +02:00
Chocobozzz
9a82ce2455
Fix quota inconstistencies with lives 2022-05-04 10:32:49 +02:00
Chocobozzz
9295c68b74
Fix live constraints tests 2022-05-03 16:12:10 +02:00
Chocobozzz
26e3e98ff0
Support live session in server 2022-05-03 14:49:15 +02:00
Chocobozzz
4ec52d04dc
Add ability to save replay of permanent lives 2022-04-21 11:47:57 +02:00
Chocobozzz
c55e3d7227
Move test functions outside extra-utils 2021-12-17 12:24:03 +01:00
Chocobozzz
bf54587a3e
shared/ typescript types dir server-commands 2021-12-17 09:29:23 +01:00
Florian CUNY
8dd754c767
Added 144p encoding (#4492)
* Added 144p encoding

Implements https://github.com/Chocobozzz/PeerTube/issues/4428

* Fixed typo in core-utils

* Increased BitPerPixel for 144p

* Disabled 144p by default in test.yaml

* Another try at fixing tests

* Fixed test in video-transcoder (api-3)

* Fixed test in video-imports (api-4)

* Fixed test in live-constraints (api-2)

* Tried to fix tests in api-3 again

* Revert "Tried to fix tests in api-3 again"

This reverts commit 266e1143fa37f333d149c2c2791c7bd33621ac14.

* Fixed test in config.ts (api-2)

* Try to fix test in video-hls.ts (api-3)

* Fixed test in video-transcoder.ts (api-3)

* Fix tests

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-11-05 10:23:02 +01:00
Chocobozzz
764b1a14fc Use random names for VOD HLS playlists 2021-07-26 11:29:31 +02:00
Chocobozzz
4c7e60bc17
Reorganize imports 2021-07-20 15:27:19 +02:00
Chocobozzz
254d3579f5
Use an object to represent a server 2021-07-20 15:27:18 +02:00
Chocobozzz
89d241a79c
Shorter server command names 2021-07-20 15:27:18 +02:00
Chocobozzz
d23dd9fbfc
Introduce videos command 2021-07-20 15:27:18 +02:00
Chocobozzz
7926c5f9b3
Introduce user command 2021-07-20 15:27:18 +02:00
Chocobozzz
04aed76711
Shorter live methods 2021-07-20 15:27:17 +02:00
Chocobozzz
4f2199144e
Introduce live command 2021-07-20 15:27:17 +02:00
Chocobozzz
65e6e2602c
Introduce config command 2021-07-20 15:27:17 +02:00
Chocobozzz
a1bb73f9b5
Refactor a little bit live tests 2021-05-07 11:53:46 +02:00
Chocobozzz
300cb723eb
Fix tests 2021-02-19 11:27:38 +01:00
Rigel Kent
b7085c7132 add support for 1440p (Quad HD/QHD/WQHD) videos 2021-01-13 09:14:09 +01:00
Chocobozzz
ffc12d3ad5
Increase live constraint test timeout 2020-12-02 16:58:45 +01:00
Chocobozzz
68e70a745b Add save replay live tests 2020-11-09 15:33:04 +01:00