Skip to content

Commit

Permalink
chore(action): increase tests timeout.
Browse files Browse the repository at this point in the history
Also, upload text version of report, that actually contains tests output.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP authored and poiana committed May 13, 2024
1 parent 6cab03c commit e3fcfc1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ inputs:
outputs:
report:
description: "Generated report xml"
value: ${{ steps.store-outputs.outputs.report }}
value: ${{ steps.store-outputs.outputs.report }}
out_file:
description: "Full tests output file"
value: ${{ steps.store-outputs.outputs.report_txt }}

runs:
using: "composite"
Expand Down Expand Up @@ -81,17 +84,17 @@ runs:
shell: bash
run: |
if ${{ inputs.test-falco == 'true' }}; then
./build/falco.test -falco-static=${{ inputs.static }} -test.timeout=90s -test.v >> ./report.txt 2>&1 || true
./build/falco.test -falco-static=${{ inputs.static }} -test.timeout=180s -test.v >> ./report.txt 2>&1 || true
fi
if ${{ inputs.static == 'false' }}; then
if ${{ inputs.test-falcoctl == 'true' }}; then
./build/falcoctl.test -test.timeout=90s -test.v >> ./report.txt 2>&1 || true
./build/falcoctl.test -test.timeout=180s -test.v >> ./report.txt 2>&1 || true
fi
if ${{ inputs.test-k8saudit == 'true' }}; then
./build/k8saudit.test -test.timeout=90s -test.v >> ./report.txt 2>&1 || true
./build/k8saudit.test -test.timeout=180s -test.v >> ./report.txt 2>&1 || true
fi
if ${{ inputs.test-drivers == 'true' }}; then
${{ inputs.sudo }} ./build/falco-driver-loader.test -test.timeout=90s -test.v >> ./report.txt 2>&1 || true
${{ inputs.sudo }} ./build/falco-driver-loader.test -test.timeout=180s -test.v >> ./report.txt 2>&1 || true
fi
fi
cat ./report.txt | go-junit-report -set-exit-code > report.xml
Expand All @@ -103,6 +106,7 @@ runs:
if: always()
run: |
echo "report=$(realpath report.xml)" >> $GITHUB_OUTPUT
echo "report_txt=$(realpath report.txt)" >> $GITHUB_OUTPUT
- name: Test Summary
if: always() # note: upload the report even if tests fail
Expand All @@ -116,4 +120,6 @@ runs:
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: falcosecurity-testing-report-${{ runner.arch }}
path: ${{ steps.store-outputs.outputs.report }}
path: |
${{ steps.store-outputs.outputs.report }}
${{ steps.store-outputs.outputs.report_txt }}

0 comments on commit e3fcfc1

Please sign in to comment.