YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
ci(windows-e2e): make ONNX DLL staging idempotent across cached runs
Louis Beaumont7883d9abbfea
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.ymlindex 825858d90..bae5a816e 100644--- a/.github/workflows/e2e-test.yml+++ b/.github/workflows/e2e-test.yml@@ -158,7 +158,28 @@ jobs:if (-not (Test-Path $dst)) {New-Item -ItemType Directory -Path $dst -Force | Out-Null}- Copy-Item -Path "$src/onnxruntime*.dll" -Destination $dst -Force+ # Skip the file if it's already present at $dst with identical+ # content. The Rust cache + the ONNX cache restore can both put+ # the same DLL into target/debug across cached runs, and+ # Copy-Item -Force fails ("Cannot overwrite the item with+ # itself") instead of being a no-op when source and destination+ # resolve to the same path. Per-file copy with try/catch lets us+ # treat self-overwrite as success while still surfacing real+ # copy failures (permission, disk full, etc.).+ Get-ChildItem -Path $src -Filter "onnxruntime*.dll" | ForEach-Object {+ $dest = Join-Path $dst $_.Name+ try {+ if ((Test-Path $dest) -and ((Resolve-Path $_.FullName).Path -eq (Resolve-Path $dest).Path)) {+ Write-Host "skip self-copy: $($_.Name)"+ } else {+ Copy-Item -Path $_.FullName -Destination $dest -Force+ }+ } catch [System.IO.IOException] {+ if ($_.Exception.Message -match 'with itself') {+ Write-Host "skip self-overwrite: $($_.Name)"+ } else { throw }+ }+ }Get-ChildItem -Path $dst -Filter "onnxruntime*.dll" | Select-Object Name, Length- name: Run E2E Tests