-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Area: ABTTAkvelon Build Tasks Team area of workAkvelon Build Tasks Team area of workenhancementtriage
Description
Task name
Relax 7zip archiver
Describe your feature request here
We use the ArchiveFiles task to upload log files after an error, including timeouts. After a timeout, the log file can still be open for writing by our test runner. In such case 7zip fails with error:
Starting: Tests failed -- Compress logs ============================================================================== Task : Archive files Description : Compress files into .7z, .tar.gz, or .zip Version : 2.259.0 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/archive-files ============================================================================== Found 1 files Archiving file: tests.log D:\a\_tasks\ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0\2.259.0\7zip\7z.exe a -tzip -mx=5 D:\a\1\a\questdb-enterprise-merge-5fa4d8abc952cdf357704bbef1fa3a38b7225e36-1-Windows_NT-1.17.zip @D:\a\_temp\3hwktlk5ohp WARNING: The process cannot access the file because it is being used by another process. 7-Zip 24.09 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-11-29 tests.log
7zip has a switch to archive files open for writing: https://7zip.bugaco.com/7zip/MANUAL/cmdline/switches/shared.htm
It would be nice if the ArchiveTask set this switch.
Metadata
Metadata
Assignees
Labels
Area: ABTTAkvelon Build Tasks Team area of workAkvelon Build Tasks Team area of workenhancementtriage