214 Commits
Author SHA1 Message Date
Chocobozzz 5a50e33d81 Optimize CI 2026-10-28 11:11:36 +01:00
Chocobozzz 32fb087261 Fix ci 2026-10-27 15:06:43 +01:00
Chocobozzz 6efb6d8f9b Fix CI 2026-10-27 11:23:41 +01:00
Chocobozzz f780e64289 Introduce postgresql secondaries support
Only for a few routes, that consumes postgresql CPU

Re-implement sequelize connection routing mechanism, to support:
 * Replica lag monitoring (to not select replicas that are too far
   behind the primary)
 * Be opt-in instead of opt-out (primary is used by default, a context
   must be marked to use replicas)
 * Handle "read-you-writes" mechanism (ensure that reads after writes
   see the latest data, using the user ID to track recent writes)
2026-10-16 13:47:57 +02:00
Chocobozzz f0b041375b Fix tests 2026-10-06 09:02:22 +02:00
Chocobozzz c75dba70cd Select which job queue to stop/resume 2026-10-05 13:41:13 +02:00
Chocobozzz 41effc40ce Stage heavy uploads in object storage
Required step so secondary can handle file upload endpoints and handle
controllers that manage files
2026-10-05 13:41:13 +02:00
Chocobozzz cb3d80d7c8 Add horizontal scalability tests and packaging
This commit is part of bigger work to add horizontal scaling support to
PeerTube.
2026-10-05 13:39:50 +02:00
Chocobozzz d571c66b33 Min pg version is 14 2026-08-06 17:20:23 +02:00
9e2eaf13ad Improve video searchability by allowing to search through descriptions (#7612)
* feat: use PostgreSQL FTS for video search instead of trigram

Add a videoSearch table with tsvector column and GIN index to store
search vectors for video titles and descriptions. Titles are weighted
higher than descriptions via setweight (A/B).

Trigram search is kept as a fallback to handle typos.

A migration script (server/scripts/migrations/peertube-8.2.ts) is
provided to backfill existing videos.

See #7386

* fix: add missing VideoSearchModel

search indexes did not appear in the database when migrating

* Improve FTS

* Requires PG >= 14

---------

Co-authored-by: oliwierjaszczyszyn <h@h>
Co-authored-by: Chocobozzz <[email protected]>
2026-08-06 15:26:41 +02:00
Mradul Pal 0e1bcbf7c5 Update bug issue template for PeerTube instance info
fixes issue: #7744
2026-08-05 13:56:19 +02:00
Chocobozzz 1947d5fd59 Require NodeJS 22 2026-04-24 15:11:53 +02:00
Chocobozzz 3faff0d7a6 Add ability to transfer channel ownership 2026-04-10 14:32:04 +02:00
Chocobozzz 3833729e79 Update action versions 2026-03-25 10:30:59 +01:00
Chocobozzz 4ccda4656d Use AGENTS.md
Allow contributors to use the tool they want, reducing coupling with
copilot

See PeerTube dev position on AI: https://joinpeertube.org/faq#what-is-the-ai-policy-for-peertube-development
2026-03-25 09:34:15 +01:00
Chocobozzz 4710ffb0ec Add video embed domain privacy 2026-02-23 09:39:55 +01:00
Chocobozzz 345397330b Fix docker build, again 2025-12-09 11:18:22 +01:00
Chocobozzz 3d0e212350 Fix docker build 2025-12-09 10:32:06 +01:00
Chocobozzz 4376c728b1 Fix transcription CI 2025-10-29 10:32:06 +01:00
Chocobozzz f2f814f9d7 Fix tests 2025-10-28 16:49:23 +01:00
Chocobozzz 6c47548d51 Search on account name when searching channels 2025-10-28 16:40:56 +01:00
Chocobozzz 2a648e6ea5 Fix docker production build 2025-09-16 06:36:25 +02:00
Chocobozzz 729a58a860 Move docker to trixie 2025-09-15 07:11:57 +02:00
Chocobozzz fcca9b72d3 Add copilot instructions 2025-09-12 08:54:50 +02:00
Chocobozzz 906b5f7f2c Migrate to pnpm 2025-09-12 08:43:41 +02:00
Chocobozzz 83f74169da Add official openid plugin tests 2025-08-08 14:16:49 +02:00
Chocobozzz d6e4dac032 Add email translations
Convert emails from Pug template to Handlebars because i18next doesn't
support Pug
2025-07-24 09:18:04 +02:00
Chocobozzz 5138e28ff8 Remove IRC link
We mainly use matrix now
2025-05-09 10:04:59 +02:00
Chocobozzz 54c8280a3b Add issue template for mobile application 2025-05-09 10:01:15 +02:00
Chocobozzz 56a28cb95e Fix flaky tests 2025-03-19 16:23:55 +01:00
Chocobozzz c6863ba1fa Check openapi in CI 2025-03-12 13:59:12 +01:00
Chocobozzz 2a6749d7f1 Headless lighthouse 2025-03-10 09:51:55 +01:00
Chocobozzz c9e6c5b3a2 Try to fix lighthouse 2025-03-10 09:07:10 +01:00
Chocobozzz 29f55e9115 Use npm run install-node-dependencies
Instead of yarn, so we can move to another package manager in the future
2025-02-18 13:44:06 +01:00
Chocobozzz fcff0ce69f Node 18 is not supported anymore
Use node 20 instead
2025-01-15 10:14:50 +01:00
Chocobozzz 5fbcd8e4fe Fix CI 2025-01-14 09:50:13 +01:00
Chocobozzz 339623a469 Improve github action security
See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
2024-10-31 07:05:35 +01:00
Chocobozzz 933c72233b Improve contributing guide style 2024-09-27 07:26:38 +02:00
Chocobozzz 38dbafcf63 Support youtube-dl executables
Also disable youtube tests in CI due to youtube blocking
2024-08-13 14:20:08 +02:00
Chocobozzz 5439a591e0 Add ability to set proxies to youtube-dl 2024-08-13 10:49:31 +02:00
Chocobozzz 90275e5e03 Update deprecated github action 2024-08-13 09:38:37 +02:00
Chocobozzz 816f346a60 Separate HLS audio and video streams
Allows:
  * The HLS player to propose an "Audio only" resolution
  * The live to output an "Audio only" resolution
  * The live to ingest and output an "Audio only" stream

 This feature is under a config for VOD videos and is enabled by default for lives

 In the future we can imagine:
  * To propose multiple audio streams for a specific video
  * To ingest an audio only VOD and just output an audio only "video"
    (the player would play the audio file and PeerTube would not
    generate additional resolutions)

This commit introduce a new way to download videos:
 * Add "/download/videos/generate/:videoId" endpoint where PeerTube can
   mux an audio only and a video only file to a mp4 container
 * The download client modal introduces a new default panel where the
   user can choose resolutions it wants to download
2024-08-05 08:31:59 +02:00
Chocobozzz af11f812ac Fix client stats 2024-07-03 15:59:26 +02:00
Chocobozzz 91302ea12a Fix CI stats task 2024-07-02 14:06:52 +02:00
Chocobozzz 45d22afca6 Add manual run to docker ci build 2024-07-01 10:53:19 +02:00
Chocobozzz dcfd83350a Faster CI docker build 2024-07-01 10:50:29 +02:00
Chocobozzz 1bfb791e05 Integrate transcription in PeerTube 2024-06-28 08:44:58 +02:00
lutangar ef14cf4a5c feat(transcription): groundwork
chore: fiddling around some more

chore: add ctranslate2 and timestamped

chore: add performance markers

chore: refactor test

chore: change worflow name

chore: ensure Python3

chore(duration): convert to chai/mocha syntahx

chore(transcription): add individual tests for others transcribers

chore(transcription): implement formats test of all implementations

Also compare result of other implementation to the reference implementation

chore(transcription): add more test case with other language and models size and local model

chore(test): wip ctranslate 2 adapat

chore(transcription): wip transcript file and benchmark

chore(test): clean a bit

chore(test): clean a bit

chore(test): refacto timestamed spec

chore(test): update workflow

chore(test): fix glob expansion with sh

chore(test): extract some hw info

chore(test): fix async tests

chore(benchmark): add model info

feat(transcription): allow use of a local mode in timestamped-whisper

feat(transcription): extract run and profiling info in own value object

feat(transcription): extract run concept in own class an run more bench

chore(transcription): somplify run object only a uuid is now needed and add more benchmark scenario

docs(transcription): creates own package readme

docs(transcription): add local model usage

docs(transcription): update README

fix(transcription): use fr video for better comparison

chore(transcription): make openai comparison passed

docs(timestamped): clea

chore(transcription): change transcribers transcribe method signature

Introduce whisper builtin model.

fix(transcription): activate language detection

Forbid transcript creation without a language.
Add `languageDetection` flag to an engine and some assertions.

Fix an issue in `whisper-ctranslate2` :
https://github.com/Softcatala/whisper-ctranslate2/pull/93

chore(transcription): use PeerTube time helpers instead of custom ones

Update existing time function to output an integer number of seconds and add a ms human-readable time formatter with hints of tests.

chore(transcription): use PeerTube UUID helpers

chore(transcription): enable CER evaluation

Thanks to this recent fix in Jiwer <3
https://github.com/jitsi/jiwer/issues/873

chore(jiwer): creates JiWer package

I'm not very happy with the TranscriptFileEvaluator constructor... suggestions ?

chore(JiWer): add usage in README

docs(jiwer): update JiWer readme

chore(transcription): use FunMOOC video in fixtures

chore(transcription): add proper english video fixture

chore(transcription): use os tmp directory where relevant

chore(transcription): fix jiwer cli test reference.txt

chore(transcription): move benchmark out of tests

chore(transcription): remove transcription workflow

docs(transcription): add benchmark info

fix(transcription): use ms precision in other transcribers

chore(transcription): simplify most of the tests

chore(transcription): remove slashes when building path with join

chore(transcription): make fromPath method async

chore(transcription): assert path to model is a directory for CTranslate2 transcriber

chore(transcription): ctranslate2 assertion

chore(transcription): ctranslate2 assertion

chore(transcription): add preinstall script for Python dependencies

chore(transcription): add download and unzip utils functions

chore(transcription): add download and unzip utils functions

chore(transcription): download & unzip models fixtures

chore(transcription): zip

chore(transcription): raise download file test timeout

chore(transcription): simplify download file test

chore(transcription): add transcriptions test to CI

chore(transcription): raise test preconditions timeout

chore(transcription): run preinstall scripts before running ci

chore(transcription): create dedicated tmp folder for transcriber tests

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): use short video for local model test

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): raise timeout some more

chore(transcription): setup verbosity based on NODE_ENV value
2024-06-28 08:43:40 +02:00
Chocobozzz 2728810f60 Remove bundlewatch
CI fails, our projects generates too many chunks unfortunately
2024-06-26 14:20:45 +02:00
Chocobozzz 9772280e99 Upgrade to angular 18 & vite 2024-06-26 08:33:54 +02:00