Skip to content

Commit

Permalink
Bug 1607619: only run rusttests when rust files are modified. r=ahal
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Aug 12, 2020
1 parent 4b9ed8c commit 9ece148
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ with Files("**/*.rst"):
with Files("**/*.md"):
SCHEDULES.inclusive += ['docs']

with Files("**/*.rs"):
SCHEDULES.inclusive += ['rusttests']

with Files("**/reftest.list"):
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
SCHEDULES.exclusive = ['reftest']
Expand Down
1 change: 1 addition & 0 deletions python/mozbuild/mozbuild/schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
'test-coverage-wpt',
'jsreftest',
'android-hw-gfx',
'rusttests',
]
INCLUSIVE_COMPONENTS = sorted(INCLUSIVE_COMPONENTS)

Expand Down
8 changes: 8 additions & 0 deletions taskcluster/ci/build/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ linux-rusttests/opt:
- linux64-node
- linux64-lucetc
- wasi-sysroot
optimization:
test-inclusive: [rusttests]

linux-rusttests/debug:
description: "Linux32 Rust Tests Debug"
Expand Down Expand Up @@ -491,6 +493,8 @@ linux-rusttests/debug:
- linux64-node
- linux64-lucetc
- wasi-sysroot
optimization:
test-inclusive: [rusttests]

linux-devedition/opt:
description: "Linux32 devedition (shippable)"
Expand Down Expand Up @@ -1131,6 +1135,8 @@ linux64-rusttests/opt:
- linux64-node
- linux64-lucetc
- wasi-sysroot
optimization:
test-inclusive: [rusttests]

linux64-rusttests/debug:
description: "Linux64 Rust Tests Debug"
Expand Down Expand Up @@ -1172,6 +1178,8 @@ linux64-rusttests/debug:
- linux64-node
- linux64-lucetc
- wasi-sysroot
optimization:
test-inclusive: [rusttests]

linux64-ccov/opt:
description: "Linux64-CCov Opt"
Expand Down
8 changes: 8 additions & 0 deletions taskcluster/ci/build/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,8 @@ win32-rusttests/opt:
- win64-nasm
- win64-node
- win64-winchecksec
optimization:
test-inclusive: [rusttests]

win32-rusttests/debug:
description: "Win32 Rust Tests Debug"
Expand Down Expand Up @@ -751,6 +753,8 @@ win32-rusttests/debug:
- win64-nasm
- win64-node
- win64-winchecksec
optimization:
test-inclusive: [rusttests]

win64-rusttests/opt:
description: "Win64 Rust Tests Opt"
Expand Down Expand Up @@ -789,6 +793,8 @@ win64-rusttests/opt:
- win64-nasm
- win64-node
- win64-winchecksec
optimization:
test-inclusive: [rusttests]

win64-rusttests/debug:
description: "Win64 Rust Tests Debug"
Expand Down Expand Up @@ -827,6 +833,8 @@ win64-rusttests/debug:
- win64-nasm
- win64-node
- win64-winchecksec
optimization:
test-inclusive: [rusttests]

win64-ccov/opt:
description: "Win64 Opt Code Coverage"
Expand Down

0 comments on commit 9ece148

Please sign in to comment.