From 69051e552fbda20362b28c8d3d83859b25e6fc7d Mon Sep 17 00:00:00 2001 From: KuilongCui Date: Fri, 11 Oct 2024 11:16:11 +0800 Subject: [PATCH] [CI] move cancel_previous_workflows to ubuntu-latest (#49) --- .github/workflows/bench_test.yml | 2 +- .github/workflows/e2e_test.yml | 2 +- .github/workflows/migration_test.yml | 2 +- .github/workflows/offline_inference.yml | 2 +- .github/workflows/pylint.yml | 2 +- .github/workflows/unit_test.yml | 2 +- tests/e2e_test/test_migration.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bench_test.yml b/.github/workflows/bench_test.yml index b4e108d8..5753c4f9 100644 --- a/.github/workflows/bench_test.yml +++ b/.github/workflows/bench_test.yml @@ -10,7 +10,7 @@ on: jobs: cancel_previous_workflows: - runs-on: [self-hosted] + runs-on: ubuntu-latest timeout-minutes: 3 steps: - uses: styfle/cancel-workflow-action@0.12.1 diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index 598091cd..62d1d144 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -10,7 +10,7 @@ on: jobs: cancel_previous_workflows: - runs-on: [self-hosted] + runs-on: ubuntu-latest timeout-minutes: 3 steps: - uses: styfle/cancel-workflow-action@0.12.1 diff --git a/.github/workflows/migration_test.yml b/.github/workflows/migration_test.yml index c234f660..ff2431ba 100644 --- a/.github/workflows/migration_test.yml +++ b/.github/workflows/migration_test.yml @@ -10,7 +10,7 @@ on: jobs: cancel_previous_workflows: - runs-on: [self-hosted] + runs-on: ubuntu-latest timeout-minutes: 3 steps: - uses: styfle/cancel-workflow-action@0.12.1 diff --git a/.github/workflows/offline_inference.yml b/.github/workflows/offline_inference.yml index 0b5e585f..0e61f343 100644 --- a/.github/workflows/offline_inference.yml +++ b/.github/workflows/offline_inference.yml @@ -10,7 +10,7 @@ on: jobs: cancel_previous_workflows: - runs-on: [self-hosted] + runs-on: ubuntu-latest timeout-minutes: 3 steps: - uses: styfle/cancel-workflow-action@0.12.1 diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index b7551a5b..2bd3f152 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -10,7 +10,7 @@ on: jobs: cancel_previous_workflows: - runs-on: [self-hosted] + runs-on: ubuntu-latest timeout-minutes: 3 steps: - uses: styfle/cancel-workflow-action@0.12.1 diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 78eb18f9..7bc72029 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -10,7 +10,7 @@ on: jobs: cancel_previous_workflows: - runs-on: [self-hosted] + runs-on: ubuntu-latest timeout-minutes: 3 steps: - uses: styfle/cancel-workflow-action@0.12.1 diff --git a/tests/e2e_test/test_migration.py b/tests/e2e_test/test_migration.py index 8c83365f..9b3e2237 100644 --- a/tests/e2e_test/test_migration.py +++ b/tests/e2e_test/test_migration.py @@ -75,7 +75,7 @@ async def run_bench_command(command): assert process.returncode == 0 for i in range(device_count//2): - bench_command = generate_bench_command(ip_ports=f"127.0.0.1:{base_port+i}", model=model, num_prompts=500, + bench_command = generate_bench_command(ip_ports=f"127.0.0.1:{base_port+i}", model=model, num_prompts=300, dataset_type="sharegpt", dataset_path="/mnt/dataset/sharegpt_gpt4/sharegpt_gpt4.jsonl" , qps=10)