compress test case LDEV-1989 hangs on github actions since zip4j 2.11.0

Description

Github action is hanging on this test case, with eventually an error about running out of disk space

naturally, it doesn’t happy when I build and test locally….

System.IO.IOException: No space left on device : '/home/runner/runners/2.294.0/_diag/Worker_20220811-064020-utc.log' at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset) at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite() at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) at System.Diagnostics.TextWriterTraceListener.Flush() at GitHub.Runner.Common.HostTraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id) at GitHub.Runner.Common.HostTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message) at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String message) at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut) at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args) System.IO.IOException: No space left on device : '/home/runner/runners/2.294.0/_diag/Worker_20220811-064020-utc.log' at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset) at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite() at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) at System.Diagnostics.TextWriterTraceListener.Flush() at GitHub.Runner.Common.HostTraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id) at GitHub.Runner.Common.HostTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message) at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String message) at GitHub.Runner.Common.Tracing.Error(Exception exception) at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args) Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/runners/2.294.0/_diag/Worker_20220811-064020-utc.log' at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset) at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite() at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) at System.Diagnostics.TextWriterTraceListener.Flush() at System.Diagnostics.TraceSource.Flush() at GitHub.Runner.Common.TraceManager.Dispose(Boolean disposing) at GitHub.Runner.Common.TraceManager.Dispose() at GitHub.Runner.Common.HostContext.Dispose(Boolean disposing) at GitHub.Runner.Common.HostContext.Dispose() at GitHub.Runner.Worker.Program.Main(String[] args)



if I disable it, it all runs fine.

it’s hanging at this line https://github.com/lucee/Lucee/blob/6.0/test/tickets/LDEV1989/zip-password-test.cfm#L12

i tried disabling the first test but the second test fails as well

zip action="zip" file="#zipFile#" overwrite="true" password="#zipPassword#" { zipparam encryptionAlgorithm="#url.encryptionAlgorithm#" source="#expandPath('.')#" filter="*.cfm"; }

Environment

None

Activity

Zac Spitzer 12 August 2022 at 16:46

Zac Spitzer 11 August 2022 at 07:39

Filed an issue with zip4j as this feels like a potential regression https://github.com/srikanth-lingala/zip4j/issues/468

Zac Spitzer 11 August 2022 at 07:04

tried setting zip.setUseUtf8CharsetForPasswords(false); didn’t help, still hangs

https://github.com/lucee/extension-compress/commit/622392b6ecc47b215726fc66c571edf90f3ac945

[java]    [script] -------------- Start Tests ----------- [java]    [script] Found 11 tests to run, filter took 7340ms [java]    [script] Found 3 additional tests to run [java]    [script]  test.legacy.Jira2164     (6 tests passed in 124 ms) [java]    [script]  test.tags.Zip    (2 tests passed in 35 ms) [java]    [script]  test.tickets.LDEV1606    (4 tests passed in 41 ms) [java]    [script]  test.tickets.LDEV1989 start LDEV1989 /test/tickets/LDEV1989 [java]    [script] LDEV1989 - 2 [java]    [script] /home/runner/work/extension-compress/extension-compress/lucee/test/tickets/LDEV1989/zip [java]    [script] /home/runner/work/extension-compress/extension-compress/lucee/test/tickets/LDEV1989

Zac Spitzer 11 August 2022 at 06:50
Edited

Zac Spitzer 11 August 2022 at 06:38

Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 11 August 2022 at 06:36
Updated 12 August 2022 at 16:57
Resolved 12 August 2022 at 16:57