]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add logs to fixture generations
authorChocobozzz <me@florianbigard.com>
Tue, 1 Dec 2020 08:31:45 +0000 (09:31 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 1 Dec 2020 14:04:38 +0000 (15:04 +0100)
.github/workflows/test.yml
server/tests/api/videos/video-transcoder.ts
shared/extra-utils/miscs/miscs.ts

index c188c207437797a011e1605664253ccefcef76a3..042ffe0d429f88831454a94e4bf68f718314e76d 100644 (file)
@@ -98,11 +98,11 @@ jobs:
       - name: Display directories state
         if: failure()
         run: |
-          ls -l
+          ls -l test*
 
       - name: Upload logs
         uses: actions/upload-artifact@v2
         if: failure()
         with:
           name: test-storages-${{ matrix.test_suite }}
-          path: test*/logs
+          path: test*/logs/*
index 164843d322329e059bc0b6c69fc0d4105239c4c1..f9500d617145da13d83b62881f6545fd4dcb70cd 100644 (file)
@@ -434,7 +434,7 @@ describe('Test video transcoding', function () {
   })
 
   it('Should downscale to the closest divisor standard framerate', async function () {
-    this.timeout(160000)
+    this.timeout(200000)
 
     let tempFixturePath: string
 
index 429083fe9cba46390ee9afb917d51e52138807af..aea9563cf4799792458704018c55a438a024fc63 100644 (file)
@@ -88,6 +88,7 @@ async function generateHighBitrateVideo () {
 
   const exists = await pathExists(tempFixturePath)
   if (!exists) {
+    console.log('Generating high bitrate video.')
 
     // Generate a random, high bitrate video on the fly, so we don't have to include
     // a large file in the repo. The video needs to have a certain minimum length so
@@ -115,6 +116,8 @@ async function generateVideoWithFramerate (fps = 60) {
 
   const exists = await pathExists(tempFixturePath)
   if (!exists) {
+    console.log('Generating video with framerate %d.', fps)
+
     return new Promise<string>((res, rej) => {
       ffmpeg()
         .outputOptions([ '-f rawvideo', '-video_size 1280x720', '-i /dev/urandom' ])