-
Notifications
You must be signed in to change notification settings - Fork 207
chore(ci): migrate mock-acpi workflow to GH runner #1882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow will run mock-acpi compose on GH runner and run validator tool | ||
|
||
name: Validate ACPI | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_call: | ||
|
||
jobs: | ||
validate-acpi: | ||
name: Validate ACPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install hatch | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install hatch | ||
|
||
- name: Run mock-acpi compose | ||
working-directory: manifests/compose/mock-acpi | ||
run: | | ||
docker compose up -d | ||
|
||
- name: Warm up for 60 seconds | ||
run: | | ||
echo "Warm up for 60 seconds before running validator" | ||
sleep 60 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from robust part of view, can we make a timeout? as a loop with condition to wait for compose up and timeout break as failure? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally, it should be warm-up time for Kepler to start producing metrics. I have updated this step |
||
|
||
- name: Run mock-acpi validator tool | ||
working-directory: e2e/tools/validator | ||
run: | | ||
hatch run validator -f ./validator.mock-acpi.yaml validate-acpi -d 1m |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ validations: | |
}}[{rate_interval}] | ||
) | ||
) | ||
max_mse: 0.0001 | ||
# max_mape: 0 | ||
max_mse: 0.01 | ||
max_mape: 0.01 |
Uh oh!
There was an error while loading. Please reload this page.