Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metadata collection tooling #4688

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ struct Main
std::ofstream stream{ metadataInputPath };

stream << "{" << std::endl;
stream << JSONPair{ "supportedMetadataVersion", "1.1"};
stream << JSONPair{ "supportedMetadataVersion", "1.2"};
// TODO: Could theoretically produce this if we could enumerate the data via COM
// stream << JSONPair{ "currentMetadata", "" };
stream << JSONPair{ "submissionData", nullptr, false } << "\n{\n";
Expand Down
2 changes: 2 additions & 0 deletions tools/CorrelationTestbed/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Test-CorrelationInSandbox.ps1
[-DevPackagePath <string>] :: Path to the local dev *Release* winget build; defaults to the normal location
[-ResultsPath <string>] :: Path to output the results to; defaults to a temp directory
[-RegFileDirectory <string>] :: Path to a directory containing .reg files to insert before the test, creating noise for correlation
[-MetadataCollection] :: Switch to enable collection of metadata
[-WingetUtilPath <string>] :: Path to the WinGetUtil.dll to use; defaults to Debug build location
```

Once testing is done, `Process-CorrelationResults.ps1` will take all of the results JSON files and put them into `results.csv` in the directory. If any tests failed to run, they will be in `failed.csv`. There are correlation columns in the CSV that can be averaged in Excel to get the correlation percentage.
Expand Down
2 changes: 1 addition & 1 deletion tools/CorrelationTestbed/Test-CorrelationInSandbox.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Param(
[String] $RegFileDirectory,
[Parameter(HelpMessage = "Indicates that the metadata collection process should be run.")]
[Switch] $MetadataCollection,
[Parameter(HelpMessage = "The path to WinGetUtil.dll; only the release build works.")]
[Parameter(HelpMessage = "The path to WinGetUtil.dll.")]
[String] $WingetUtilPath,
[Parameter(HelpMessage = "Wait for user input before tearing down each sandbox.")]
[Switch] $Wait
Expand Down
Loading