Commit 739d64b
committed
testutils.skip/ci: set COCKROACH_NIGHTLY_STRESS during nightlies
Previously, `skip.Stress` returned true if either
COCKROACH_STRESS or COCKROACH_NIGHTLY_STRESS env var
was set. After switching to engflow, neither is set.
Hence all unit tests under either `skip.Stress` or
`skip.NightlyStress` were _not_ skipped. In contrast,
`./dev test ... --stress` sets COCKROACH_STRESS, hence
unit tests under `skip.Stress` _are_ skipped.
Occassionally, a unit test's configuration might be
conditional on whether it's running in nightlies.
To keep things backward compatible, we set
`COCKROACH_NIGHTLY_STRESS` during engflow stress
nightlies and update `skip.Stress` predicate to return
true iff `COCKROACH_STRESS` is set.
Effectively, `skip.Stress` now denotes whether a
test is executing locally under `./dev test ... --stress`,
and `skip.NightlyStress` now denotes whether a test is
executing remotely (via engflow) during the nightlies.
Epic: none
Release note: None1 parent 8b1e1a9 commit 739d64b
File tree
5 files changed
+10
-9
lines changed- build/teamcity/cockroach/nightlies
- pkg
- testutils/skip
- util/startup
5 files changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
0 commit comments