The upload artifact step fails to upload some files intermittently and contains the following error for those files
SKIPPED, failed to open file
This particularly happens when the artifact being uploaded contains a lot of files ( in my case this is an allure-report directory containing a lot of png and txt files). Whenever this step fails, the subsequent steps also fail with the error
failed to start cmd in pty and non pty: failed to start cmd: open /dev/null: too many open files
This behaviour is quite intermittent. I would say it happens 1 out of 10 times. Is there a reason why this is happening and is there a way to fix this?