Skip to content

Dispose the upload stream in the integration fixture - #2844

Merged
hahn-kev merged 1 commit into
developfrom
claude/recursing-ishizaka-dd6290
Oct 28, 2026
Merged

hahn-kev merged 1 commit into
developfrom
claude/recursing-ishizaka-dd6290

Conversation

@hahn-kev-bot

Copy link
Copy Markdown
Collaborator

AI summary

IntegrationFixture.FinishLexboxProjectResetWithRepo used UploadFile.FromFile, which opens a FileStream that neither UploadFile nor the Squidex TusClient ever disposes. On Linux that goes unnoticed, but on Windows the deferred delete of the temp zip fails with "being used by another process".

This broke three ProjectRepoTests (BackupProject_ZipRestoresTheSameRepo, BackupProject_OfEmptyRepo_RestoresAnEmptyRepo, ResetProject_UploadZipWithNestedHgAndWorkingFiles_UsesTheNestedRepo) in both Windows integration jobs of the release pipeline run. The tests landed in #2751 and today was their first run on Windows, since only the release pipeline runs integration tests there.

The fixture now opens the stream itself with await using and passes it to the UploadFile constructor.

Test plan

  • backend/Testing builds.
  • The affected tests need the lexbox stack: the Windows integration jobs on the next release pipeline run are the real check.

🤖 Generated with Claude Code

UploadFile.FromFile opens a FileStream that neither the TusClient nor
UploadFile ever disposes. On Windows the deferred delete of the temp zip
then fails with "being used by another process", which broke three
ProjectRepoTests in the release pipeline's Windows integration jobs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 28, 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 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review 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: c68c6175-351f-4b4d-8d9a-4cd266b10f71
Commits

Reviewing files that changed from the base of the PR and between 71c938e and bace493.

Files selected for processing: 1
  • backend/Testing/Fixtures/IntegrationFixture.cs
  • 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

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the 📦 Lexbox issues related to any server side code, fw-headless included label Oct 28, 2026
@hahn-kev hahn-kev added the self-reviewed 👁️ I reviewed this myself and with AI and decided it was safe to merge without a second set of eyes label Oct 28, 2026
@hahn-kev
hahn-kev merged commit c0e8a89 into develop Oct 28, 2026
24 checks passed
@hahn-kev
hahn-kev deleted the claude/recursing-ishizaka-dd6290 branch October 28, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 Lexbox issues related to any server side code, fw-headless included self-reviewed 👁️ I reviewed this myself and with AI and decided it was safe to merge without a second set of eyes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants