Skip to content

Video files of test runs are attached to the Allure Report as 0KB files or multiples of 256KB in size #2828

Discussion options

You must be logged in to vote

The issue is with file buffers. The file system buffers the data on write, and if you call allure.attach.file() method before the data is flushed to disk — you'll get the empty attachment. It seems like the file system flushes data in 256K chunks — that's why you see files of such size.

You can try to use fsync to force buffers to be flushed before calling allure.attach.file() method.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lukaszewskimichal
Comment options

Answer selected by lukaszewskimichal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants