Skip to content
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

Schedule lsqb to run every day #4122

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/lsqb-benchmark-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: LSQB-Benchmark

on:
schedule:
- cron: "0 5 * * *"

workflow_dispatch:
inputs:
scale_factor:
description: 'Scale factor'
required: true
default: "0.3"
default: "30"
type: choice
options:
- "0.1"
Expand All @@ -28,10 +30,20 @@ jobs:
env:
NUM_THREADS: 30
GEN: Ninja
TIMEOUT: ${{ github.event.inputs.timeout }}
SCALE_FACTOR: ${{ github.event.inputs.scale_factor }}
runs-on: kuzu-self-hosted-benchmarking
steps:
- name: Set env for scheduled run
if: ${{ github.event_name == 'schedule' }}
run: |
echo "TIMEOUT=600000" >> $GITHUB_ENV
echo "SCALE_FACTOR=100" >> $GITHUB_ENV

- name: Set env for workflow dispatch
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "TIMEOUT=${{ github.event.inputs.timeout }}" >> $GITHUB_ENV
echo "SCALE_FACTOR=${{ github.event.inputs.scale_factor }}" >> $GITHUB_ENV

- uses: actions/checkout@v4

- name: Build
Expand Down
9 changes: 5 additions & 4 deletions benchmark/lsqb/benchmark_runner.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import shutil
import subprocess
import logging
import multiprocessing
import os
import argparse
import shutil
import subprocess
import sys

import psutil

from serializer import _get_kuzu_version
import multiprocessing

# Get the number of CPUs, try to use sched_getaffinity if available to account
# for Docker CPU limits
Expand Down
Loading