Skip to content

Commit

Permalink
chore: fix renovate schedule for rust-toolchain.toml (#4858)
Browse files Browse the repository at this point in the history
  • Loading branch information
laplab committed May 9, 2024
1 parent f561446 commit 378787e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Validate renovate.json"
on:
pull_request:
paths:
- "renovate.json"

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.0.1
with:
strict: "false"
13 changes: 7 additions & 6 deletions .github/workflows/wasm-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- "*.md"
- "LICENSE"
- "CODEOWNERS"
- "renovate.json"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract Branch Name
run: |
branch="$(git show -s --format=%s | grep -o "DRIVER_ADAPTERS_BRANCH=[^ ]*" | cut -f2 -d=)"
Expand All @@ -59,11 +60,11 @@ jobs:
- name: Run benchmarks
id: bench
run: |
make run-bench | tee results.txt
make run-bench | tee results.txt
# Extract the values from the benchmark output
regressed_values=$(grep "slower than Web Assembly: Latest" results.txt | cut -f1 -d'x')
improved_values=$(grep "faster than Web Assembly: Latest" results.txt | cut -f1 -d'x')
regressed_values=$(grep "slower than Web Assembly: Latest" results.txt | cut -f1 -d'x')
improved_values=$(grep "faster than Web Assembly: Latest" results.txt | cut -f1 -d'x')
# Initialize sum variable and count
total_sum=0
Expand All @@ -85,7 +86,7 @@ jobs:
done
if [ $total_count -eq 0 ]; then
echo "💥 something was wrong running the benchmarks"
echo "💥 something was wrong running the benchmarks"
exit 1
fi
Expand All @@ -96,7 +97,7 @@ jobs:
echo "Total count: $total_count"
echo "Mean: $mean"
# Report improvement or worsening. Fails if >= 1.5% worsening.
# Report improvement or worsening. Fails if >= 1.5% worsening.
if (( $(echo "$mean < 0.985" | bc -l) )); then
percent=$(echo "scale=4; ((1 / $mean) - 1) * 100" | bc)
summary="❌ WASM query-engine performance will worsen by $(printf %.2f "$percent")%"
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"groupName": "rust toolchain update",
"matchManagers": ["regex"],
"matchDepNames": ["rust"],
"schedule": ["every 5 mins"]
"schedule": ["before 7am every weekday"]
}
],
"customManagers": [
Expand Down

0 comments on commit 378787e

Please sign in to comment.