7zip action limit to 1000 files?

I came across a problem where zip files produces using 7zip action in Continua configurations, seem to be missing some files.
For debugging I added the “log files matching pattern”, and what I saw is that it always showed that 1000 files matched the pattern.
I am guessing that there are a lot more files than 1000.

Also the files that were missing were shown in the log with files matching pattern but did not show up in zip file.

Is there a limit to number of files for zipping ?
When I zip manually using 7zip all looks OK.

Hi Arik,

There is a limit of 1000 on the number of files listed in the log. This is to prevent the potential for the log to blow out in size. We will update the messages to make this clear, and perhaps also make this number configurable.

This does not limit the number of files added to the 7Zip command line. The actual number of files is displayed in the 7Zip command output. e.g.

It may help to diagnose this issue, if you add a “Run DOS Command” action, before your 7Zip action, with the Command “DIR /s /b *” and the full path to the “build-output” folder as the Working Directory.

What we actually did is write a script which runs 7zip and it fixed the issue.
Not sure how to diagnose that on Continua level as I saw no pattern on the missing files.

The Continua CI action runs the 7-Zip command line. Is there a difference between the command line in your script and the one logged by the action?

The action generates a file which contains the list of files to pass to the command line, so this is possibly where the issue is occurring.

We have just released a new version with some new options added to the 7-Zip Create action.

  • Max Files to Log - change this to ensure all files matching the pattern are logged.
  • Skip deletion of temporary list file - tick this so you can check what’s in the list file passed to the command line. You will need to ensure that your build clean-up settings are not set to clean up at the end of the build.
  • Output Verbosity - set this to Detailed or Debug to see the list of files added by 7-Zip.

I will try to verify after update.