Skip to content
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/publisher/ @Dragemil
/js-client/ @konowrockis @Komoszek @kamilgacan @katarzynagrasewicz @BeerHobbyist @alszczep @kumalg
26 changes: 8 additions & 18 deletions .github/workflows/funnel_msvc_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
DOTNET_VERSION: 10.0
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
WAIT_TIMEOUT: 600
timeout-minutes: 20
steps:
- name: Checkout
Expand All @@ -43,30 +44,19 @@ jobs:
tilt
- name: Create test cluster
uses: AbsaOSS/k3d-action@v2
with:
with:
cluster-name: testapp
args: --config=publisher/funnel_test_cluster/k3d.yaml
- name: Make the script files executable
run: chmod +x funnel_test_cluster/subst_tpl_envs.sh
- name: Run Tilt CI with tests
run: tilt ci --context k3d-testapp -f funnel_test_cluster/Tiltfile
- name: Collect test logs on failure
if: failure()
run: |
mkdir -p test-logs
for ns in no-scaling scaled-target-service scaled-funnel multiple-services; do
echo "=== Namespace: $ns ===" >> test-logs/test-results.txt
pod=$(kubectl get pods -n $ns -o name 2>/dev/null | grep tests | head -1)
if [ -n "$pod" ]; then
kubectl logs -n $ns $pod >> test-logs/test-results.txt 2>&1 || true
fi
echo "" >> test-logs/test-results.txt
done
kubectl get pods -A >> test-logs/pod-status.txt 2>&1 || true
run: chmod +x funnel_test_cluster/subst_tpl_envs.sh funnel_test_cluster/run-tests.sh
- name: Run tests
run: ./funnel_test_cluster/run-tests.sh ci
- name: Upload test logs on failure
if: failure()
uses: actions/upload-artifact@v5
with:
name: funnel-test-logs
path: publisher/test-logs/
path: |
publisher/funnel_test_cluster/test-logs/
publisher/funnel_test_cluster/snapshot.json
retention-days: 7
9 changes: 9 additions & 0 deletions .github/workflows/publisher_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ jobs:
--settings test/coverlet.runsettings
--logger trx
--results-directory TestResults
- name: Test Funnel
run: >
dotnet test
./test/Funnel.Tests/LeanCode.Pipe.Funnel.Tests/LeanCode.Pipe.Funnel.Tests.csproj
Comment thread
Dragemil marked this conversation as resolved.
--no-build
--collect "XPlat Code Coverage"
--settings test/coverlet.runsettings
--logger trx
--results-directory TestResults
- name: Test Test Client
run: >
dotnet test
Expand Down
28 changes: 9 additions & 19 deletions .github/workflows/publisher_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,11 @@ jobs:
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet build --no-restore -c Release
- name: Test Publisher
run: >
dotnet test
./test/LeanCode.Pipe.Tests/LeanCode.Pipe.Tests.csproj
--no-build
-c Release
- name: Test Test Client
run: >
dotnet test
./test/LeanCode.Pipe.TestClient.Tests/LeanCode.Pipe.TestClient.Tests.csproj
--no-build
-c Release
- name: Unit Tests
run: |
dotnet test ./test/LeanCode.Pipe.Tests/LeanCode.Pipe.Tests.csproj --no-build -c Release
dotnet test ./test/Funnel.Tests/LeanCode.Pipe.Funnel.Tests/LeanCode.Pipe.Funnel.Tests.csproj --no-build -c Release
Comment thread
Dragemil marked this conversation as resolved.
dotnet test ./test/LeanCode.Pipe.TestClient.Tests/LeanCode.Pipe.TestClient.Tests.csproj --no-build -c Release
- name: Integration test
run: >
dotnet test
Expand All @@ -65,20 +58,17 @@ jobs:
--no-build
-c Release
-e EnableFunnel=true
- name: Pack Publisher
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet pack --no-build -c Release
working-directory: ./publisher/src/LeanCode.Pipe
- name: Pack Test Client
- name: Pack NuGet packages
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet pack --no-build -c Release
working-directory: ./publisher/src/LeanCode.Pipe.TestClient
- name: Publish to Feedz
run: |
dotnet nuget push \
"src/LeanCode.Pipe/bin/Release/LeanCode.Pipe.${BUILD_VERSION}.nupkg" \
"src/Funnel/Core/bin/Release/LeanCode.Pipe.Funnel.Core.${BUILD_VERSION}.nupkg" \
"src/Funnel/Instance/bin/Release/LeanCode.Pipe.Funnel.Instance.${BUILD_VERSION}.nupkg" \
"src/Funnel/Publishing/bin/Release/LeanCode.Pipe.Funnel.Publishing.${BUILD_VERSION}.nupkg" \
Comment thread
Dragemil marked this conversation as resolved.
"src/LeanCode.Pipe.TestClient/bin/Release/LeanCode.Pipe.TestClient.${BUILD_VERSION}.nupkg" \
-k "$FEEDZ_API_KEY" \
-s 'https://f.feedz.io/leancode/public/nuget/index.json' \
Expand Down
5 changes: 5 additions & 0 deletions publisher/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,8 @@ packed
.paket/Paket.Restore.targets

**/BenchmarkDotNet.Artifacts

# Funnel test cluster artifacts
funnel_test_cluster/out/
funnel_test_cluster/snapshot.json
funnel_test_cluster/test-logs/
Loading