Skip to content

Commit

Permalink
Add benchmark workflow and job path for Falco
Browse files Browse the repository at this point in the history
Signed-off-by: nikimanoledaki <[email protected]>
  • Loading branch information
nikimanoledaki committed Oct 30, 2024
1 parent 0438ee9 commit 47bc675
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/benchmark-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ on:
description: Project to be deployed e.g. falco
required: true
config:
description: Configuration if project has multiple variants they wish to test
description: Configuration if project has multiple variants they wish to test e.g. ebpf
required: false
version:
description: Version of project to be tested e.g. 0.37.0
required: true
benchmark_path:
description: Path to the benchmark action
required: false # TODO: change to `true` when `"benchmark_path"` is specified in `projects/projects.json`
type: string
required: true

concurrency:
group: benchmark
Expand Down Expand Up @@ -63,11 +64,15 @@ jobs:
--namespace=benchmark
benchmark-job:
uses: ${{ inputs.benchmark_path }}
runs-on: ubuntu-22.04
steps:
- uses: jenseng/dynamic-uses@v1
with:
uses: ${{ inputs.benchmark_path }}

delete:
runs-on: ubuntu-22.04
needs: deploy
needs: [deploy, benchmark-job]
if: ${{ always() }}
steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/benchmark-workflows/falco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Benchmark Workflow for Falco

on: workflow_dispatch

jobs:
stress-ng-test:
runs-on: ubuntu-22.04
steps:
- run: echo "done"
2 changes: 1 addition & 1 deletion projects/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "falco",
"organization": "falcosecurity",
"benchmark_path": "",
"benchmark_path": ".github/workflows/benchmark-workflows/falco.yml@nm/add-benchmark-path",
"configs": [
"ebpf",
"modern-ebpf",
Expand Down

0 comments on commit 47bc675

Please sign in to comment.