[windows] Avoid storing msedge artifacts
- Dominant language
- HTML
- Stars
- 155
- Forks
- 346
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
On Windows the process `msedge.exe` may leave blocked artifacts around. We should avoid storing these.
In the excerpt below, we're trying to archive the folder `./aqa-tests/TKG/output_17773086176423/jck-runtime-api-java_awt_0/work/Microsoft/Edge`, which has Microsoft Edge specific artefacts. These are blocked by a still running `msedge` process, and the archival fails.
```
[2026-04-28T01:41:39.564Z] INFO: Processing Custom Tool
[2026-04-28T01:42:46.769Z] INFO: [Custom Tool] - 47 test report file(s) were found with the pattern '**/TKG/output_*/**/report.xml' relative to 'c:\Users\jenkins\workspace\Test_openjdk25_hs_extended.jck_x86-64_windows_testList_1' for the testing framework 'Custom Tool'.
[Pipeline] sh
[2026-04-28T01:43:07.386Z] + tar -cf - ./aqa-tests/TKG/output_17773086176423
[2026-04-28T01:43:07.386Z] + pigz -9
[2026-04-28T01:43:07.386Z] + gzip -9
[2026-04-28T02:02:41.680Z] tar: ./aqa-tests/TKG/output_17773086176423/jck-runtime-api-java_awt_0/work/Microsoft/Edge/User Data/Default/Network/Cookies: Cannot open: Device or resource busy
[2026-04-28T02:02:41.680Z] tar: ./aqa-tests/TKG/output_17773086176423/jck-runtime-api-java_awt_0/work/Microsoft/Edge/User Data/Default/Safe Browsing Network/Safe Browsing Cookies: Cannot open: Device or resource busy
[2026-04-28T02:02:41.680Z] tar: ./aqa-tests/TKG/output_17773086176423/jck-runtime-api-java_awt_0/work/Microsoft/Edge/User Data/Default/Sessions/Session_13421805866763022: Cannot open: Device or resource busy
[2026-04-28T02:07:07.792Z] tar: Exiting with failure status due to previous errors
[Pipeline] echo
[2026-04-28T02:07:08.089Z] ARTIFACTORY_SERVER is not set. Saving artifacts on jenkins.
[Pipeline] archiveArtifacts
[2026-04-28T02:07:08.137Z] Archiving artifacts
[2026-04-28T02:07:14.226Z] Recording fingerprints
[Pipeline] sh
[2026-04-28T02:07:16.197Z] + tar -cf - c:/Users/jenkins/workspace/Test_openjdk25_hs_extended.jck_x86-64_windows_testList_1/../../jck_root/JCK25-unzipped/natives
[2026-04-28T02:07:16.197Z] + pigz -9
[2026-04-28T02:07:16.197Z] tar: Removing leading `c:/Users/jenkins/workspace/Test_openjdk25_hs_extended.jck_x86-64_windows_testList_1/../../' from member names
[2026-04-28T02:07:16.197Z] + gzip -9
[Pipeline] echo
[2026-04-28T02:07:17.847Z] Saving natives.tar.gz file on jenkins.
[Pipeline] archiveArtifacts
[2026-04-28T02:07:17.887Z] Archiving artifacts
[2026-04-28T02:07:18.296Z] Recording fingerprints
[Pipeline] junit
[2026-04-28T02:07:19.151Z] Recording test results
[2026-04-28T02:08:07.638Z] No test report files were found. Configuration error?
[2026-04-28T02:08:12.331Z] None of the test reports contained any result
[2026-04-28T02:08:12.390Z] [Checks API] No suitable checks publisher found.
[Pipeline] }
[Pipeline] // stage
[Pipeline] echo
[2026-04-28T02:08:13.139Z] PROCESSCATCH: Terminating any hung/left over test processes:
[Pipeline] sh
[2026-04-28T02:08:13.783Z] + aqa-tests/terminateTestProcesses.sh null
[2026-04-28T02:08:13.784Z] Windows machine, using powershell queries...
[2026-04-28T02:08:14.623Z] Windows rogue processes detected, attempting to stop them..
[2026-04-28T02:08:15.000Z]
[2026-04-28T02:08:15.000Z]
[2026-04-28T02:08:15.000Z] __GENUS : 2
[2026-04-28T02:08:15.000Z] __CLASS : Win32_Process
[2026-04-28T02:08:15.000Z] __SUPERCLASS : CIM_Process
[2026-04-28T02:08:15.000Z] __DYNASTY : CIM_ManagedSystemElement
[2026-04-28T02:08:15.000Z] __RELPATH : Win32_Process.Handle="5172"
[2026-04-28T02:08:15.000Z] __PROPERTY_COUNT : 45
[2026-04-28T02:08:15.000Z] __DERIVATION : {CIM_Process, CIM_LogicalElement, CIM_ManagedSystemElement}
[2026-04-28T02:08:15.000Z] __SERVER : win11
[2026-04-28T02:08:15.000Z] __NAMESPACE : root\cimv2
[2026-04-28T02:08:15.000Z] __PATH : \\win11\root\cimv2:Win32_Process.Handle="5172"
[2026-04-28T02:08:15.000Z] Caption : msedge.exe
[2026-04-28T02:08:15.000Z] CommandLine : "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=crashpad-handler "--
[2026-04-28T02:08:15.000Z] user-data-dir=C:\Users\jenkins\workspace\Test_openjdk25_hs_extended.jck_x86-64_windows_tes
[2026-04-28T02:08:15.000Z] tList_1\aqa-tests\TKG\output_17773086176423\jck-runtime-api-java_awt_0\work\Microsoft\Edge
[2026-04-28T02:08:15.000Z] \User Data" /prefetch:4 --monitor-self-annotation=ptype=crashpad-handler "--database=C:\Us
[2026-04-28T02:08:15.000Z] ers\jenkins\workspace\Test_openjdk25_hs_extended.jck_x86-64_windows_testList_1\aqa-tests\T
[2026-04-28T02:08:15.000Z] KG\output_17773086176423\jck-runtime-api-java_awt_0\work\Microsoft\Edge\User
[2026-04-28T02:08:15.000Z] Data\Crashpad" --annotation=IsOfficialBuild=1 --annotation=channel=
[2026-04-28T02:08:15.000Z] --annotation=chromium-version=146.0.7680.80 "--annotation=exe=C:\Program Files
[2026-04-28T02:08:15.000Z] (x86)\Microsoft\Edge\Application\msedge.exe" --annotation=plat=Win64
[2026-04-28T02:08:15.001Z] --annotation=prod=Edge --annotation=ver=146.0.3856.62 --initial-client-data=0x328,0x32c,0x
[2026-04-28T02:08:15.001Z] 330,0x2fc,0x3b0,0x7ffd730524d8,0x7ffd730524e4,0x7ffd730524f0
[2026-04-28T02:08:15.001Z] CreationClassName : Win32_Process
[2026-04-28T02:08:15.001Z] CreationDate : 20260427232423.965595+000
[2026-04-28T02:08:15.001Z] CSCreationClassName : Win32_ComputerSystem
[2026-04-28T02:08:15.001Z] CSName : win11
[2026-04-28T02:08:15.001Z] Description : msedge.exe
[2026-04-28T02:08:15.001Z] ExecutablePath : C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
[2026-04-28T02:08:15.001Z] ExecutionState :
[2026-04-28T02:08:15.001Z] Handle : 5172
[2026-04-28T02:08:15.001Z] HandleCount : 305
[2026-04-28T02:08:15.001Z] InstallDate :
[2026-04-28T02:08:15.001Z] KernelModeTime : 5937500
[2026-04-28T02:08:15.001Z] MaximumWorkingSetSize : 1380
[2026-04-28T02:08:15.001Z] MinimumWorkingSetSize : 200
[2026-04-28T02:08:15.001Z] Name : msedge.exe
[2026-04-28T02:08:15.001Z] OSCreationClassName : Win32_OperatingSystem
[2026-04-28T02:08:15.001Z] OSName : Microsoft Windows 11 Pro|C:\Windows|\Device\Harddisk0\Partition4
[2026-04-28T02:08:15.001Z] OtherOperationCount : 2506
[2026-04-28T02:08:15.001Z] OtherTransferCount : 42711
[2026-04-28T02:08:15.001Z] PageFaults : 10361
[2026-04-28T02:08:15.001Z] PageFileUsage : 4472
[2026-04-28T02:08:15.001Z] ParentProcessId : 39288
[2026-04-28T02:08:15.001Z] PeakPageFileUsage : 10508
[2026-04-28T02:08:15.001Z] PeakVirtualSize : 2306870587392
[2026-04-28T02:08:15.001Z] PeakWorkingSetSize : 24332
[2026-04-28T02:08:15.001Z] Priority : 8
[2026-04-28T02:08:15.001Z] PrivatePageCount : 4579328
[2026-04-28T02:08:15.001Z] ProcessId : 5172
[2026-04-28T02:08:15.001Z] QuotaNonPagedPoolUsage : 15
[2026-04-28T02:08:15.001Z] QuotaPagedPoolUsage : 131
[2026-04-28T02:08:15.001Z] QuotaPeakNonPagedPoolUsage : 55
[2026-04-28T02:08:15.001Z] QuotaPeakPagedPoolUsage : 703
[2026-04-28T02:08:15.001Z] ReadOperationCount : 5823
[2026-04-28T02:08:15.001Z] ReadTransferCount : 3370536
[2026-04-28T02:08:15.001Z] SessionId : 0
[2026-04-28T02:08:15.001Z] Status :
[2026-04-28T02:08:15.001Z] TerminationDate :
[2026-04-28T02:08:15.001Z] ThreadCount : 8
[2026-04-28T02:08:15.001Z] UserModeTime : 5625000
[2026-04-28T02:08:15.001Z] VirtualSize : 2306560184320
[2026-04-28T02:08:15.001Z] WindowsVersion : 10.0.22621
[2026-04-28T02:08:15.001Z] WorkingSetSize : 16322560
[2026-04-28T02:08:15.001Z] WriteOperationCount : 8347
[2026-04-28T02:08:15.001Z] WriteTransferCount : 2124300
[2026-04-28T02:08:15.001Z] PSComputerName : win11
[2026-04-28T02:08:15.001Z] ProcessName : msedge.exe
[2026-04-28T02:08:15.001Z] Handles : 305
[2026-04-28T02:08:15.001Z] VM : 2306560184320
[2026-04-28T02:08:15.001Z] WS : 16322560
[2026-04-28T02:08:15.001Z] Path : C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
[2026-04-28T02:08:15.001Z]
[2026-04-28T02:08:15.001Z]
[2026-04-28T02:08:15.001Z]
[2026-04-28T02:08:15.381Z]
[2026-04-28T02:08:15.381Z]
[2026-04-28T02:08:15.381Z] __GENUS : 2
[2026-04-28T02:08:15.381Z] __CLASS : __PARAMETERS
[2026-04-28T02:08:15.381Z] __SUPERCLASS :
[2026-04-28T02:08:15.381Z] __DYNASTY : __PARAMETERS
[2026-04-28T02:08:15.381Z] __RELPATH :
[2026-04-28T02:08:15.381Z] __PROPERTY_COUNT : 1
[2026-04-28T02:08:15.381Z] __DERIVATION : {}
[2026-04-28T02:08:15.381Z] __SERVER :
[2026-04-28T02:08:15.381Z] __NAMESPACE :
[2026-04-28T02:08:15.381Z] __PATH :
[2026-04-28T02:08:15.381Z] ReturnValue : 0
[2026-04-28T02:08:15.381Z] PSComputerName :
[2026-04-28T02:08:15.381Z]
[2026-04-28T02:08:15.381Z]
[2026-04-28T02:08:15.381Z]
[2026-04-28T02:08:15.381Z] Sleeping for 10 seconds...
[2026-04-28T02:08:26.932Z] Processes stopped successfully
[Pipeline] retry
[Pipeline] {
[Pipeline] cleanWs
[2026-04-28T02:08:27.773Z] [WS-CLEANUP] Deleting project workspace...
[2026-04-28T02:08:27.774Z] [WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
[2026-04-28T02:10:11.555Z] ERROR: Cannot delete workspace :Unable to delete 'c:\Users\jenkins\workspace\Test_openjdk25_hs_extended.jck_x86-64_windows_testList_1\aqa-tests\TKG\output_17773086176423\jck-runtime-api-java_awt_0\work\36769ec1-0559-4473-9c91-168b3ec66d06.tmp'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
[Pipeline] echo
[2026-04-28T02:10:11.753Z] Exception: hudson.AbortException: Cannot delete workspace: Unable to delete 'c:\Users\jenkins\workspace\Test_openjdk25_hs_extended.jck_x86-64_windows_testList_1\aqa-tests\TKG\output_17773086176423\jck-runtime-api-java_awt_0\work\36769ec1-0559-4473-9c91-168b3ec66d06.tmp'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
[Pipeline] dir
[2026-04-28T02:10:11.758Z] Running in c:/Users/jenkins/workspace/Test_openjdk25_hs_extended.jck_x86-64_windows_testList_1
[Pipeline] {
```
Contributor guide
Research direction
Start with aqa-tests/terminateTestProcesses.sh and the Windows process-cleanup entry point shown in the log; trace how the workspace is archived before cleanup. Reproduce the Windows msedge.exe case and inspect the archive and cleanup steps. Done means Edge user-data artifacts are not stored and the workspace/archive completes without the reported locked-file failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- ci-cd, operating-systems, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100