Skip to content

Commit 599a44e

Browse files
authored
.github/workflows: disable performance tests (#10535)
1 parent 4b31f4a commit 599a44e

File tree

3 files changed

+41
-7
lines changed

3 files changed

+41
-7
lines changed

.github/workflows/nightly-tests.yaml

+21-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Nightly
22

33
env:
44
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # necessary to pass upgrade tests
5+
# https://github.com/solo-io/gloo/issues/10534
6+
# Performance tests have been disabled. See the above issue for context around it
7+
# To re-enable those tests (even temporarily) search for the usages of the env variable,
8+
# and it will direct you to the code that needs to be changed
9+
ENABLE_PERFORMANCE_TESTS: false
510

611
on:
712
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
@@ -377,7 +382,6 @@ jobs:
377382
ref: v1.18.x
378383
- uses: ./.github/workflows/composite-actions/regression-tests
379384

380-
381385
regression_tests_17:
382386
name: v1.17.x regression tests
383387
if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run-regression && inputs.branch == 'v1.17.x') || github.event.schedule == '0 7 * * 1' }}
@@ -415,8 +419,11 @@ jobs:
415419

416420
performance_tests_on_demand:
417421
name: on demand performance tests
422+
# This job does not respect the environment value of ENABLE_PERFORMANCE_TESTS
423+
# This way, if a developer wanted to run the job on-demand, they could
418424
if: ${{ github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'workflow_initiating_branch' }}
419-
runs-on: ubuntu-22.04
425+
# We use a larger runner to ensure the performance tests can complete, without running out of disk space
426+
runs-on: ubuntu-20.04-8core
420427
timeout-minutes: 60
421428
steps:
422429
- uses: actions/checkout@v4
@@ -427,7 +434,9 @@ jobs:
427434

428435
performance_tests_main:
429436
name: main performance tests
430-
if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'main') || github.event.schedule == '0 5 * * *' }}
437+
# Instead of false, we would want to define: env.ENABLE_PERFORMANCE_TESTS == 'true'
438+
# Due to https://github.com/actions/runner/issues/1189#issuecomment-880110759, we cannot use env variables in job.if
439+
if: ${{ false && ((github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'main') || github.event.schedule == '0 5 * * *') }}
431440
runs-on: ubuntu-22.04
432441
timeout-minutes: 60
433442
steps:
@@ -439,7 +448,9 @@ jobs:
439448

440449
performance_tests_18:
441450
name: v1.18.x performance tests
442-
if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'v1.18.x') || github.event.schedule == '0 6 * * 1' }}
451+
# Instead of false, we would want to define: env.ENABLE_PERFORMANCE_TESTS == 'true'
452+
# Due to https://github.com/actions/runner/issues/1189#issuecomment-880110759, we cannot use env variables in job.if
453+
if: ${{ false && ((github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'v1.18.x') || github.event.schedule == '0 6 * * 1') }}
443454
runs-on: ubuntu-22.04
444455
timeout-minutes: 60
445456
steps:
@@ -451,7 +462,9 @@ jobs:
451462

452463
performance_tests_17:
453464
name: v1.17.x performance tests
454-
if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'v1.17.x') || github.event.schedule == '0 7 * * 1' }}
465+
# Instead of false, we would want to define: env.ENABLE_PERFORMANCE_TESTS == 'true'
466+
# Due to https://github.com/actions/runner/issues/1189#issuecomment-880110759, we cannot use env variables in job.if
467+
if: ${{ false && ((github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'v1.17.x') || github.event.schedule == '0 7 * * 1') }}
455468
runs-on: ubuntu-22.04
456469
timeout-minutes: 60
457470
steps:
@@ -463,7 +476,9 @@ jobs:
463476

464477
performance_tests_16:
465478
name: v1.16.x performance tests
466-
if: ${{ (github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'v1.16.x') || github.event.schedule == '0 8 * * 1' }}
479+
# Instead of false, we would want to define: env.ENABLE_PERFORMANCE_TESTS == 'true'
480+
# Due to https://github.com/actions/runner/issues/1189#issuecomment-880110759, we cannot use env variables in job.if
481+
if: ${{ false && ((github.event_name == 'workflow_dispatch' && inputs.run-performance && inputs.branch == 'v1.16.x') || github.event.schedule == '0 8 * * 1') }}
467482
runs-on: ubuntu-22.04
468483
timeout-minutes: 60
469484
steps:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
changelog:
2+
- type: NON_USER_FACING
3+
description: >-
4+
Disable performance tests from running on nightly tests.
5+
6+
skipCI-kube-tests:true
7+
skipCI-docs-build:true

devel/testing/performance-tests.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Performance Tests
22

33
## Label
4-
Performance tests are labeled with `performance`. These tests are skipped on CI for PRs, but are run on a schedule as part of our [nightly tests](nightly-tests.md).
4+
Performance tests are labeled with `performance`.
55

6+
## When are these tests run?
7+
- These tests are skipped on CI for PRs.
8+
- They were run on a schedule as part of our [nightly tests](nightly-tests.md), but have since been disabled (https://github.com/solo-io/gloo/issues/10534)
9+
10+
11+
## How can you run these tests?
12+
You can run the `performance_test.go` locally with the make target:
13+
```bash
14+
make install-test-tools run-performance-tests
15+
```
16+
17+
Or through GitHub actions via the `performance-test` workflow.

0 commit comments

Comments
 (0)