Skip to content

Commit

Permalink
🔥 Implement init action
Browse files Browse the repository at this point in the history
  • Loading branch information
polRk committed Oct 23, 2024
1 parent acf153a commit 8ea5217
Show file tree
Hide file tree
Showing 13 changed files with 247 additions and 37,869 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ydb-slo-action-test-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ jobs:
uses: ydb-platform/ydb-slo-action/init@main

- name: Run chaos testing
run: echo 'CHAOS 🙈🙈🙈'
run: |
echo 'Performing chaos testing...'
sleep 10
- name: Run user workload
run: sleep 60
run: |
echo 'Running user workload...';
sleep 10
- name: Upload YDB SLO Test results
uses: actions/upload-artifact@v4
Expand Down
13 changes: 0 additions & 13 deletions init/action.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions init/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'YDB SLO Initialization Action'
description: 'This action prepares a Docker Compose configuration to deploy YDB and Prometheus. During post-run, it collects metric results and generates an SLO report.'

inputs:
# ydb_storage_node_count:
# description: 'Specifies the number of YDB storage nodes to initialize within the Docker Compose setup.'
# default: "1"
ydb_database_node_count:
description: 'Specifies the number of YDB database nodes to initialize within the Docker Compose setup.'
required: false
default: '3'
disable_default_metrics:
description: 'A comma-separated list of default metric IDs to exclude from the report generation.'
required: false
default: ''
custom_metrics_yaml:
description: 'YAML string defining additional custom metrics to include in the SLO report.'
required: false
default: ''
report_template:
description: 'Path to a custom Markdown template used for generating the final SLO report.'
required: false
default: ''
sdk_name:
description: 'The name of the SDK used by the user to generate load on the YDB database.'
required: false
default: ''

runs:
using: 'node20'
main: 'main.js' # Responsible for preparing the Docker Compose configuration for YDB and Prometheus
post: 'post.js' # Collects metrics and generates report.md based on specified or default configurations
Loading

0 comments on commit 8ea5217

Please sign in to comment.