Skip to content

Conversation

@jozkee
Copy link
Member

@jozkee jozkee commented Apr 20, 2021

ZipFile.CreateFromDirectory(currentTestFolderLocation, _archiveLocation, CompressionLevel, includeBaseDirectory: false);
_archive = ZipFile.OpenRead(_archiveLocation);
_entry = _archive.Entries[0];
_tempDestinationFileName = FileUtils.GetTestFilePath();
Copy link
Member Author

@jozkee jozkee Apr 20, 2021

Choose a reason for hiding this comment

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

Please let me know if this is the right way of getting a temporarily file name for concurrent writes/deletes. In long runs I was always getting the error "access to the path is denied"; by long runs I mean this command:

dotnet run -c Release -f net6.0 
--filter *ExtractEntryToFile* --statisticalTest 3ms 
--coreRun 
  "C:\repos\runtime2\artifacts\bin\testhost\net6.0-windows-Release-x64\shared\Microsoft.NETCore.App\6.0.0\CoreRun.exe" 
  "C:\repos\runtime\artifacts\bin\testhost\net6.0-windows-Release-x64\shared\Microsoft.NETCore.App\6.0.0\CoreRun.exe" 
--maxIterationCount 101 --minIterationCount 100

Copy link
Contributor

@carlossanlop carlossanlop Apr 20, 2021

Choose a reason for hiding this comment

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

@adamsitnik there was another argument you used, but I can't find it. Do you remember what was it? Should David use it here too?

Edit: Found it. It was this argument: no outliers removal (--outliers DontRemove).

Copy link
Contributor

Choose a reason for hiding this comment

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

ping @adamsitnik this was so long ago that I don't remember the context of the argument I mentioned 😄

@jozkee jozkee changed the title Add benchamarks for Zip entry extraction and creation Add benchmarks for Zip entry extraction and creation Apr 20, 2021
@danmoseley
Copy link
Member

@jozkee @carlossanlop what is the status of this PR?

@danmoseley danmoseley closed this Feb 5, 2022
@danmoseley danmoseley reopened this Feb 5, 2022
@danmoseley
Copy link
Member

@carlossanlop @jozkee is this dead or alive 😸

Copy link
Contributor

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

The code looks good to me, modulo the question about how to properly open the file to ensure we don't see the error. Help us @adamsitnik, you're our only hope.

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.

3 participants