consolidate the tests locations
This commit is contained in:
@@ -12,8 +12,8 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'tests/integration/StellaOps.Integration.E2E/**'
|
||||
- 'tests/fixtures/**'
|
||||
- 'src/__Tests/Integration/StellaOps.Integration.E2E/**'
|
||||
- 'src/__Tests/fixtures/**'
|
||||
- '.gitea/workflows/e2e-reproducibility.yml'
|
||||
push:
|
||||
branches:
|
||||
@@ -21,7 +21,7 @@ on:
|
||||
- develop
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'tests/integration/StellaOps.Integration.E2E/**'
|
||||
- 'src/__Tests/Integration/StellaOps.Integration.E2E/**'
|
||||
schedule:
|
||||
# Nightly at 2am UTC
|
||||
- cron: '0 2 * * *'
|
||||
@@ -80,15 +80,15 @@ jobs:
|
||||
dotnet-version: ${{ env.DOTNET_VERSION }}
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj
|
||||
run: dotnet restore src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj
|
||||
|
||||
- name: Build E2E tests
|
||||
run: dotnet build tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj --no-restore -c Release
|
||||
run: dotnet build src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj --no-restore -c Release
|
||||
|
||||
- name: Run E2E reproducibility tests
|
||||
id: run-tests
|
||||
run: |
|
||||
dotnet test tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj \
|
||||
dotnet test src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj \
|
||||
--no-build \
|
||||
-c Release \
|
||||
--logger "trx;LogFileName=e2e-results.trx" \
|
||||
@@ -145,15 +145,15 @@ jobs:
|
||||
dotnet-version: ${{ env.DOTNET_VERSION }}
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj
|
||||
run: dotnet restore src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj
|
||||
|
||||
- name: Build E2E tests
|
||||
run: dotnet build tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj --no-restore -c Release
|
||||
run: dotnet build src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj --no-restore -c Release
|
||||
|
||||
- name: Run E2E reproducibility tests
|
||||
id: run-tests
|
||||
run: |
|
||||
dotnet test tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj `
|
||||
dotnet test src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj `
|
||||
--no-build `
|
||||
-c Release `
|
||||
--logger "trx;LogFileName=e2e-results.trx" `
|
||||
@@ -211,21 +211,21 @@ jobs:
|
||||
dotnet-version: ${{ env.DOTNET_VERSION }}
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj
|
||||
run: dotnet restore src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj
|
||||
|
||||
- name: Build E2E tests
|
||||
run: dotnet build tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj --no-restore -c Release
|
||||
run: dotnet build src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj --no-restore -c Release
|
||||
|
||||
- name: Run E2E reproducibility tests
|
||||
id: run-tests
|
||||
run: |
|
||||
dotnet test tests/integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj \
|
||||
dotnet test src/__Tests/Integration/StellaOps.Integration.E2E/StellaOps.Integration.E2E.csproj \
|
||||
--no-build \
|
||||
-c Release \
|
||||
--logger "trx;LogFileName=e2e-results.trx" \
|
||||
--logger "console;verbosity=detailed" \
|
||||
--results-directory ./TestResults
|
||||
|
||||
|
||||
# Extract hashes for comparison
|
||||
echo "verdict_hash=$(cat ./TestResults/verdict_hash.txt 2>/dev/null || echo 'NOT_FOUND')" >> $GITHUB_OUTPUT
|
||||
echo "manifest_hash=$(cat ./TestResults/manifest_hash.txt 2>/dev/null || echo 'NOT_FOUND')" >> $GITHUB_OUTPUT
|
||||
@@ -387,7 +387,7 @@ jobs:
|
||||
run: |
|
||||
echo "=== Golden Baseline Comparison ==="
|
||||
|
||||
baseline_file="./bench/determinism/golden-baseline/e2e-hashes.json"
|
||||
baseline_file="./src/__Tests/__Benchmarks/determinism/golden-baseline/e2e-hashes.json"
|
||||
|
||||
if [ ! -f "$baseline_file" ]; then
|
||||
echo "⚠️ Golden baseline not found. Skipping comparison."
|
||||
@@ -419,9 +419,9 @@ jobs:
|
||||
- name: Update golden baseline (if requested)
|
||||
if: github.event.inputs.update_baseline == 'true'
|
||||
run: |
|
||||
mkdir -p ./bench/determinism/golden-baseline
|
||||
|
||||
cat > ./bench/determinism/golden-baseline/e2e-hashes.json << EOF
|
||||
mkdir -p ./src/__Tests/__Benchmarks/determinism/golden-baseline
|
||||
|
||||
cat > ./src/__Tests/__Benchmarks/determinism/golden-baseline/e2e-hashes.json << EOF
|
||||
{
|
||||
"verdict_hash": "$(cat ./current/verdict_hash.txt 2>/dev/null || echo 'NOT_SET')",
|
||||
"manifest_hash": "$(cat ./current/manifest_hash.txt 2>/dev/null || echo 'NOT_SET')",
|
||||
@@ -433,14 +433,14 @@ jobs:
|
||||
EOF
|
||||
|
||||
echo "Golden baseline updated:"
|
||||
cat ./bench/determinism/golden-baseline/e2e-hashes.json
|
||||
cat ./src/__Tests/__Benchmarks/determinism/golden-baseline/e2e-hashes.json
|
||||
|
||||
- name: Commit baseline update
|
||||
if: github.event.inputs.update_baseline == 'true'
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "chore: Update E2E reproducibility golden baseline"
|
||||
file_pattern: bench/determinism/golden-baseline/e2e-hashes.json
|
||||
file_pattern: src/__Tests/__Benchmarks/determinism/golden-baseline/e2e-hashes.json
|
||||
|
||||
# =============================================================================
|
||||
# Job: Status check gate
|
||||
|
||||
Reference in New Issue
Block a user