Skip to content

Run the detached telemetry sender from the temp dir - #1225

Merged
theoephraim merged 1 commit into
mainfrom
fix-telemetry-sender-cwd
Oct 13, 2026
Merged

theoephraim merged 1 commit into
mainfrom
fix-telemetry-sender-cwd

Conversation

@theoephraim

Copy link
Copy Markdown
Member

The detached telemetry sender from #1217 inherited the parent's cwd. On Windows a running process's cwd can't be deleted, so removing a project dir right after a varlock command fails with EPERM. This broke the Windows smoke test cleanup on main (binary-plugin.test.ts afterAll rmSync of tmp-multi-plugin), e.g. https://github.com/dmno-dev/varlock/actions/runs/38480730636/job/115582755541.

Spawn the sender with cwd: os.tmpdir().

The sender inherited the parent's cwd, and on Windows a process's cwd cannot
be removed while it runs, so deleting a project dir right after a command
failed with EPERM (Windows smoke tests on main).
@github-actions

Copy link
Copy Markdown
Contributor

bumpy-frog

The changes in this PR will be included in the next version bump.

patch Patch releases

  • @varlock/native-helper-darwin 1.22.0 → 1.22.1
  • @varlock/native-helper-linux-arm64 1.22.0 → 1.22.1
  • @varlock/native-helper-linux-x64 1.22.0 → 1.22.1
  • @varlock/native-helper-win32-x64 1.22.0 → 1.22.1
  • varlock 1.22.0 → 1.22.1

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Bundle size

⚠️ grows the bundle by 0.2 KB (+0.0%)

Metric main This PR Δ
Total dist 5077.3 KB 5077.5 KB +0.2 KB (+0.0%)
JS 1921.4 KB 1921.5 KB +0.0 KB (+0.0%)
Sourcemaps 3025.2 KB 3025.4 KB +0.2 KB (+0.0%)
Type defs 130.7 KB 130.7 KB —
Other 0.0 KB 0.0 KB —

dist/ only; native binaries are versioned separately and not counted here.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes Checked the detached sender's working-directory change, startup paths, and regression coverage.

  • Sender working directory: Uses os.tmpdir() rather than retaining the project directory while background telemetry finishes.
  • Regression coverage: Updates the spawn-options assertion; all 72 telemetry tests passed. A Bun probe confirmed script re-execution works from the temp directory. Windows-specific directory cleanup was not exercised in this Linux environment.
  • Release note: Extends the existing telemetry patch note to describe the directory-lock fix.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Oct 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

@env-spec/parser

npm i https://pkg.pr.new/@env-spec/parser@1225

varlock

npm i https://pkg.pr.new/varlock@1225

@varlock/astro-integration

npm i https://pkg.pr.new/@varlock/astro-integration@1225

@varlock/cloudflare-integration

npm i https://pkg.pr.new/@varlock/cloudflare-integration@1225

@varlock/expo-integration

npm i https://pkg.pr.new/@varlock/expo-integration@1225

@varlock/nextjs-integration

npm i https://pkg.pr.new/@varlock/nextjs-integration@1225

@varlock/nuxt-integration

npm i https://pkg.pr.new/@varlock/nuxt-integration@1225

@varlock/vite-integration

npm i https://pkg.pr.new/@varlock/vite-integration@1225

@varlock/native-helper-darwin

npm i https://pkg.pr.new/@varlock/native-helper-darwin@1225

@varlock/native-helper-linux-arm64

npm i https://pkg.pr.new/@varlock/native-helper-linux-arm64@1225

@varlock/native-helper-linux-x64

npm i https://pkg.pr.new/@varlock/native-helper-linux-x64@1225

@varlock/native-helper-win32-x64

npm i https://pkg.pr.new/@varlock/native-helper-win32-x64@1225

commit: 6630897

@theoephraim
theoephraim merged commit 790b8e4 into main Oct 13, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant