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

Package WPA Plugin #4273

Merged
merged 2 commits into from
May 1, 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
20 changes: 19 additions & 1 deletion .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,22 @@ jobs:
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
with:
name: bin_quictrace_${{ matrix.configuration }}
path: artifacts/bin
path: artifacts/bin/quictrace/${{ matrix.configuration }}
# Package the plugin
- name: Install plugintool
run: dotnet tool install --global Microsoft.Performance.Toolkit.Plugins.Cli --version 0.1.25-preview
- name: Package
shell: pwsh
run: |
$sourceDir = "src\plugins\trace\dll\bin\${{ matrix.configuration }}\netstandard2.1"
$manifestPath = "$sourceDir/pluginManifest.json"
$manifest = Get-Content -Path $manifestPath | ConvertFrom-Json
$pluginId = $manifest.identity.id
$pluginVersion = $manifest.identity.version
$packageName = "$pluginId-$pluginVersion.ptix"
Write-Host "Creating $packageName"
& plugintool pack -s $sourceDir -o "artifacts/bin/quictrace/$packageName"
- uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba
with:
name: ptix_quictrace_${{ matrix.configuration }}
path: artifacts/bin/quictrace/QuicTrace-1.0.0.ptix
7 changes: 6 additions & 1 deletion src/plugins/trace/dll/QuicTraceLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="2.0.74" />
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent.SupportFiles" Version="1.0.23" />
<PackageReference Include="Microsoft.Performance.SDK" Version="1.0.16" />
<PackageReference Include="Microsoft.Performance.SDK" Version="1.0.16" IncludeAssets="compile" />
<PackageReference Include="Microsoft.Performance.Toolkit.Plugins.LTTngPlugin" Version="1.3.0" />
</ItemGroup>
<ItemGroup>
Expand All @@ -27,4 +27,9 @@
<PackagePath></PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<None Update="pluginManifest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
19 changes: 19 additions & 0 deletions src/plugins/trace/dll/pluginManifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/microsoft-performance-toolkit-sdk/main/src/PluginsSystem/Tools/Microsoft.Performance.Toolkit.Plugins.Cli/Manifest/PluginManifestSchema.json",
"identity": {
"id": "QuicTrace",
"version": "1.0.0"
},
"displayName": "QuicTrace",
"description": "Used to open MsQuic trace files.",
"owners": [
{
"name": "Datapath and Transports Team",
"address": "1 Microsoft Way, Redmond, WA 98052",
"emailAddresses": [ "noreply@microsoft.com" ],
"phoneNumbers": [ "123-333-4566" ]
}
],
"projectUrl": "https://github.com/microsoft/msquic",
"manifestVersion": 1.0
}
Loading