Skip to content

Commit

Permalink
Merge pull request #139369 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.1-139299

release-24.1: logictest: skip MR configs under race outside ccl (#139369)

Co-Authored-By: Yahor Yuzefovich <[email protected]>
  • Loading branch information
yuzefovich and yuzefovich authored Jan 18, 2025
2 parents 6382c4b + 1b7a2cf commit 3324af1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/generate-logictest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type testFileTemplateConfig struct {
CockroachGoTestserverTest bool
Ccl bool
ForceProductionValues bool
SkipCclUnderRace bool
SkipUnderRace bool
UseHeavyPool useHeavyPoolCondition
Package, TestRuleName, RelDir string
ConfigIdx int
Expand Down Expand Up @@ -188,7 +188,7 @@ func (t *testdir) dump() error {
tplCfg.NumCPU = 3
}
if cfg.Name == "3node-tenant" || strings.HasPrefix(cfg.Name, "multiregion-") {
tplCfg.SkipCclUnderRace = true
tplCfg.SkipUnderRace = true
}
tplCfg.UseHeavyPool = useHeavyPoolNever
if strings.Contains(cfg.Name, "5node") ||
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/generate-logictest/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const templateText = `
{{- define "runLogicTest" }}
{{- if .LogicTest -}}
func runLogicTest(t *testing.T, file string) {
{{if and .SkipCclUnderRace .Ccl}}skip.UnderRace(t, "times out and/or hangs")
{{if .SkipUnderRace}}skip.UnderRace(t, "times out and/or hangs")
{{end}}skip.UnderDeadlock(t, "times out and/or hangs")
logictest.RunLogicTest(t, logictest.TestServerArgs{}, configIdx, filepath.Join(logicTestDir, file))
}
Expand All @@ -48,7 +48,7 @@ func runLogicTest(t *testing.T, file string) {
{{- define "runCCLLogicTest" }}
{{- if .CclLogicTest -}}
func runCCLLogicTest(t *testing.T, file string) {
{{if .SkipCclUnderRace}}skip.UnderRace(t, "times out and/or hangs")
{{if .SkipUnderRace}}skip.UnderRace(t, "times out and/or hangs")
{{end}}skip.UnderDeadlock(t, "times out and/or hangs")
logictest.RunLogicTest(t, logictest.TestServerArgs{}, configIdx, filepath.Join(cclLogicTestDir, file))
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3324af1

Please sign in to comment.