You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR addresses intermittent I/O failures in AppHost.Bundle.Tests.BundledAppWithSubDirs and updates the package release notes URL to point to the correct GitHub location.
Tried fixing #120653
Problem
Test Failures: The test was failing with "I/O failure when writing extracted files" due to:
- Temporary file system race conditions
- Directory deletion failures during cleanup
- File creation failures with long path names
Solution
I/O Reliability: Added retry logic with exponential backoff to handle transient I/O failures:
DeleteExtractionDirectory: Added 3 retry attempts with 100ms delays for directory deletion
AddLongNameContent: Added 3 retry attempts with 100ms delays for directory creation and file operations
Changes
BundledAppWithSubDirs.cs:
- Modified DeleteExtractionDirectory() to retry failed directory deletions
- Modified AddLongNameContent() to retry failed directory/file creation operations
- Both methods now handle IOException gracefully with retry logic
Testing
Existing tests continue to pass
Improved resilience against intermittent CI environment I/O issues
No functional changes to test behavior, only improved reliability
Fixes intermittent test failures in AppHost bundle extraction scenarios and ensures users can access current release notes.
(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@dotnet-policy-service agree
(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@dotnet-policy-service agree
(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
Aside from the implementation problems, I don't think this addresses the problem. The log seems to suggest we have some problem in extraction, but this is just about deleting assets after the test is done running.
Aside from the implementation problems, I don't think this addresses the problem. The log seems to suggest we have some problem in extraction, but this is just about deleting assets after the test is done running.
Got it! I thought maybe this would fix it.
Thanks for enlightening.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses intermittent I/O failures in AppHost.Bundle.Tests.BundledAppWithSubDirs and updates the package release notes URL to point to the correct GitHub location.
Tried fixing #120653
Problem
- Temporary file system race conditions
- Directory deletion failures during cleanup
- File creation failures with long path names
Solution
Changes
- Modified DeleteExtractionDirectory() to retry failed directory deletions
- Modified AddLongNameContent() to retry failed directory/file creation operations
- Both methods now handle IOException gracefully with retry logic
Testing