Skip to content

Commit 0e3f143

Browse files
Copilotdevstress
andcommitted
Remove local-testing workflow and enhance observability workflow with comprehensive infrastructure validation and proper Allure report generation
Co-authored-by: devstress <[email protected]>
1 parent 41ce641 commit 0e3f143

File tree

9 files changed

+489
-2019
lines changed

9 files changed

+489
-2019
lines changed

.github/workflows/backpressure-tests.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,15 @@ jobs:
8888
throw
8989
}
9090
91-
- name: Upload BDD backpressure test results and Allure reports
91+
- name: Upload backpressure test results
9292
uses: actions/upload-artifact@v4
9393
if: always()
9494
with:
95-
name: bdd-backpressure-test-results
95+
name: backpressure-test-results
9696
path: |
9797
**/*.trx
98-
**/allure-results/**
99-
**/allure-report/**
100-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-results/**
101-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-report/**
98+
backpressure-test-summary.md
99+
retention-days: 7
102100

103101
- name: Generate Backpressure Test Summary Report
104102
if: always()

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,4 @@ jobs:
7777
needs: build
7878
uses: ./.github/workflows/backpressure-tests.yml
7979

80-
local_testing:
81-
needs: build
82-
uses: ./.github/workflows/local-testing.yml
80+

.github/workflows/integration-tests.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,41 @@ jobs:
9595
9696
Write-Host "✅ Aspire orchestration health check completed!" -ForegroundColor Green
9797
98+
- name: Generate Allure reports
99+
if: always()
100+
run: |
101+
Write-Host "📊 Generating Allure reports for BDD integration tests..." -ForegroundColor Green
102+
103+
# Find allure-results directories
104+
$allureResultsDir = "IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-results"
105+
106+
if (Test-Path $allureResultsDir) {
107+
Write-Host "Found Allure results directory: $allureResultsDir" -ForegroundColor Yellow
108+
109+
# Generate Allure report using C# AllureReportGenerator
110+
try {
111+
Push-Location IntegrationTests/FlinkDotNet.Aspire.IntegrationTests
112+
113+
# Generate the Allure report
114+
dotnet run --project . --configuration Release -- generate-allure-report "$([System.IO.Path]::GetFullPath("bin/Release/net9.0/allure-results"))" "$([System.IO.Path]::GetFullPath("../../integration-allure-report"))"
115+
116+
Pop-Location
117+
118+
Write-Host "✅ BDD integration Allure report generated!" -ForegroundColor Green
119+
}
120+
catch {
121+
Write-Host "⚠️ Error generating Allure report: $_" -ForegroundColor Yellow
122+
}
123+
} else {
124+
Write-Host "⚠️ No Allure results found for BDD integration tests" -ForegroundColor Yellow
125+
}
126+
98127
- name: Upload BDD integration test results and Allure reports
99128
uses: actions/upload-artifact@v4
100129
if: always()
101130
with:
102-
name: bdd-integration-test-results
131+
name: integration-test-results
103132
path: |
104133
**/*.trx
105-
**/*.log
106-
**/*.txt
107-
**/allure-results/**
108-
**/allure-report/**
109-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-results/**
110-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-report/**
134+
integration-allure-report/**
135+
retention-days: 7

.github/workflows/local-testing.yml

Lines changed: 0 additions & 1972 deletions
This file was deleted.

.github/workflows/observability-tests.yml

Lines changed: 418 additions & 20 deletions
Large diffs are not rendered by default.

.github/workflows/reliability-tests.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,11 @@ jobs:
8585
throw
8686
}
8787
88-
- name: Upload BDD reliability test results and Allure reports
88+
- name: Upload reliability test results
8989
uses: actions/upload-artifact@v4
9090
if: always()
9191
with:
92-
name: bdd-reliability-test-results
92+
name: reliability-test-results
9393
path: |
9494
**/*.trx
95-
**/allure-results/**
96-
**/allure-report/**
97-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-results/**
98-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-report/**
95+
retention-days: 7

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ jobs:
6161
Write-Host " Test Result: $($_.FullName)"
6262
}
6363
64-
- name: Upload Test Results
64+
- name: Upload unit test results
6565
if: always()
6666
uses: actions/upload-artifact@v4
6767
with:
68-
name: dotnet-test-results
68+
name: unit-test-results
6969
path: |
7070
FlinkDotNet/TestResults/**/*.trx
7171
retention-days: 7

IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/AllureReportGenerator.cs

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,29 @@ namespace FlinkDotNet.Aspire.IntegrationTests;
88
/// </summary>
99
public static class AllureReportGenerator
1010
{
11+
/// <summary>
12+
/// Main entry point for command-line execution
13+
/// </summary>
14+
public static async Task Main(string[] args)
15+
{
16+
if (args.Length >= 3 && args[0] == "generate-allure-report")
17+
{
18+
var resultsPath = args[1];
19+
var outputPath = args[2];
20+
21+
Console.WriteLine($"📊 Generating Allure report from: {resultsPath}");
22+
Console.WriteLine($"📄 Output directory: {outputPath}");
23+
24+
var success = await GenerateReportAsync(resultsPath, outputPath);
25+
Environment.Exit(success ? 0 : 1);
26+
}
27+
else
28+
{
29+
Console.WriteLine("Usage: dotnet run -- generate-allure-report <results-path> <output-path>");
30+
Environment.Exit(1);
31+
}
32+
}
33+
1134
/// <summary>
1235
/// Generate Allure HTML report from test results
1336
/// </summary>
@@ -181,9 +204,11 @@ private static string GenerateHTMLTemplate()
181204
</div>
182205
<div class=""card"">
183206
<h2>🎯 Features Covered</h2>
184-
<p>• Stress Test - High Throughput Message Processing</p>
185-
<p>• Reliability Test - System Resilience</p>
186-
<p>• Integration Test - End-to-End Workflows</p>
207+
<p>• Infrastructure Validation - Comprehensive Environment Testing</p>
208+
<p>• Observability Tests - End-to-End Flow Metrics</p>
209+
<p>• Integration Tests - Container Infrastructure</p>
210+
<p>• Reliability Tests - System Resilience</p>
211+
<p>• Backpressure Tests - Flow Control</p>
187212
</div>
188213
</div>
189214

IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/FlinkDotNet.Aspire.IntegrationTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<Nullable>enable</Nullable>
99
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1010
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
11+
<OutputType>Exe</OutputType>
1112
<!-- Disable IDE0005 for BDD test project -->
1213
<NoWarn>$(NoWarn);IDE0005</NoWarn>
1314
</PropertyGroup>

0 commit comments

Comments
 (0)