Recording video - Empty clips for some unknown reason?

I’m running a single suite with 3 testcases in github actions, testcase itself uses a template and passes a bunch of arguments into it.

Then, actual template has [Setup] which opens a new context – something like this:

  IF   ${RECORD_VIDEO}==${True}
    VAR   &{video_args}   dir=${VIDEO_OUTPUT_PATH}/${language}   size=${VIDEO_SIZE}
  END
  ## other stuff here 
  ${DEFAULT_CONTEXT_ID}=   New Context
  ...   baseURL=${baseurl}
  ...   viewport=${viewport_args}
  ...   locale=${LOCALE_LOOKUP["${locale}"]}
  ...   httpCredentials=${cred_args}
  ...   recordHar=${har_args}
  ...   recordVideo=${video_args}
  ...   ignoreHTTPSErrors=${IGNORE_HTTPS_ERRORS}

And finally that test template has [Teardown] which closes the context and browser …

During the execution of of the suite, i do however open a separate headless browser (with reuse_existing set to False) and new context for fetching stuff from email multiple times during the whole suite.

Now, when i run my testsuite (with 3 testcases):

I get total of 17 video files, 3 which i was expecting are what they should and 14 with 0 seconds in duration and white background.

Anyone seen this or have an idea what could cause those 14 videofiles to be generated ?

I could understand that i would get the empty clips from the headless browser that accesses the email but the count is still off, it should be 4, not 14 :wink: