Skip to content

Fix Windows unit test failures and symlink check in install version detection - #1387

Merged
Doezer merged 1 commit into
mainfrom
claude/project-thread-e0ixkg
Nov 17, 2026
Merged

Doezer merged 1 commit into
mainfrom
claude/project-thread-e0ixkg

Conversation

@Doezer

@Doezer Doezer commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Requested by Vincent · project thread

Summary

The weekly Windows workflow has been red on main (and on every Dependabot actions PR, e.g. #1371) because three tests assume Linux. This makes them portable:

  • archive_service_streaming: the fake 7z/unrar binaries are #!node scripts that Windows cannot execute, so the suite is skipped on win32.
  • backup_restore: closeDatabase() is a no-op on SQLite and Windows refuses to delete an open file (EBUSY). The sqlite handle is now closed before the temp directory is removed, rmSync retries, and the POSIX permission-bit assertion is skipped on Windows.
  • install-version: O_NOFOLLOW is ignored on Windows, so a symlinked version.txt was followed (real behavior gap, not only a test issue). The file is now lstat-checked before opening, on every platform.

Test plan

  • npm run check, eslint, prettier
  • The three test files pass on Linux (30 tests)
  • Windows workflow run on this branch (triggered via workflow_dispatch; this workflow does not run on PRs that do not touch it)

Generated by Claude Code

…etection

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RP6NCTVa4h8twJxNMhhMWs
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T02:57:01.132288Z
We couldn’t complete this review. Comment @codex review to try again.
cc75ab5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Doezer Doezer added this to the 1.7.0 milestone Nov 17, 2026 — with Claude
@Doezer Doezer self-assigned this Nov 17, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8128bd29-c52c-438f-8614-b3546a06c07b
Commits

Reviewing files that changed from the base of the PR and between b12f5a5 and cc75ab5.

Files selected for processing: 3

  • server/__tests__/archive_service_streaming.test.ts
  • server/__tests__/backup_restore.test.ts
  • server/install-version.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@gitar-bot

gitar-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
CI failed: The only failing check is the 'Milestone is set' job, which fails because this PR has no milestone assigned; it is unrelated to the Windows unit test and symlink changes.

Overview

One unique error template was found across 1 log (job 133783540638) for commit cc75ab5. The analysis points to a single, clear process failure rather than a code problem.

Failures

PR milestone missing (confidence: high)

  • Type: configuration
  • Affected jobs: 133783540638
  • Related to change: no
  • Root cause: The 'Milestone is set' job checks that the MILESTONE environment variable is non-empty. It is empty because the pull request has no milestone, so the script emits ::error title=Milestone missing:: and exits with code 1. The changes modify install-version handling and tests, not milestone metadata or the check itself.
  • Suggested fix: Assign the appropriate current release milestone to PR Fix Windows unit test failures and symlink check in install version detection #1387 (Doezer/Questarr), then re-run the 'Milestone is set' check, which re-runs automatically once a milestone is set.

Summary

  • Change-related failures: None. The milestone failure is unrelated to the Windows unit test or symlink changes in this commit.
  • Infrastructure/flaky failures: None identified.
  • Recommended action: Set a release milestone on the pull request. No code changes are needed for this failure. The Windows unit test and symlink fixes were not shown to fail in the provided logs.
Code Review ✅ Approved 🟡 Medium risk

The lstat check rejects symlinked version files, which could change install-version detection for Windows deployments that rely on them.

Makes three Windows-unsafe tests portable: skips the fake #!node archive binary suite on win32, closes the SQLite handle before temp directory cleanup with rmSync retries in backup_restore, and adds an lstat symlink check before opening version.txt in install version detection. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Approved

For more verification details, comment gitar display:verbose.

Tip

Comment Gitar fix CI or enable auto-apply: gitar auto-apply:on

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@gitar-bot gitar-bot 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.

Gitar has auto-approved this PR (configure)

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@Doezer
Doezer merged commit dd533d0 into main Nov 17, 2026
21 of 23 checks passed
@Doezer
Doezer deleted the claude/project-thread-e0ixkg branch November 17, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants