Skip to content

Commit 7d2d635

Browse files
craig[bot]rickystewart
andcommitted
158798: process-bep-file: make sure we're inserting newlines in print output r=rail a=rickystewart Release note: none Epic: none 158799: bulkmerge: skip tests under `race` r=rail a=rickystewart These are prone to OOM'ing under `race`. Release note: none Epic: none Co-authored-by: Ricky Stewart <ricky@cockroachlabs.com>
3 parents 8a383b1 + 853c0ca + 713e6a3 commit 7d2d635

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

pkg/cmd/bazci/process-bep-file/main.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func process() error {
6969
if *jsonOutFile != "" {
7070
jsonReport, errs := engflow.ConstructJSONReport(invocation, *serverName)
7171
for _, err := range errs {
72-
fmt.Printf("error loading JSON test report: %+v", err)
72+
fmt.Printf("error loading JSON test report: %+v\n", err)
7373
}
7474
jsonOut, err := json.Marshal(jsonReport)
7575
if err != nil {
@@ -80,11 +80,11 @@ func process() error {
8080
return err
8181
}
8282
} else {
83-
fmt.Printf("no -jsonoutfile; skipping constructing JSON test report")
83+
fmt.Println("no -jsonoutfile; skipping constructing JSON test report")
8484
}
8585

8686
if githubApiToken == "" {
87-
fmt.Printf("no GITHUB_API_TOKEN; skipping reporting to GitHub")
87+
fmt.Println("no GITHUB_API_TOKEN; skipping reporting to GitHub")
8888
return nil
8989
}
9090

@@ -98,12 +98,12 @@ func process() error {
9898
for _, res := range results {
9999
var seenNew bool
100100
if res.Err != nil {
101-
fmt.Printf("got error downloading test XML for result %+v; got error %+v", res, res.Err)
101+
fmt.Printf("got error downloading test XML for result %+v; got error %+v\n", res, res.Err)
102102
continue
103103
}
104104
var testXml bazelutil.TestSuites
105105
if err := xml.Unmarshal([]byte(res.TestXml), &testXml); err != nil {
106-
fmt.Printf("could not parse test.xml: got error %+v", err)
106+
fmt.Printf("could not parse test.xml: got error %+v\n", err)
107107
continue
108108
}
109109
for _, suite := range testXml.Suites {
@@ -137,7 +137,7 @@ func process() error {
137137
GithubApiToken: githubApiToken,
138138
ExtraParams: extraParamsSlice,
139139
}), testXml); err != nil {
140-
fmt.Printf("could not post to GitHub: got error %+v", err)
140+
fmt.Printf("could not post to GitHub: got error %+v\n", err)
141141
}
142142
}
143143
}
@@ -165,7 +165,7 @@ func main() {
165165
os.Exit(1)
166166
}
167167
if err := process(); err != nil {
168-
fmt.Printf("ERROR: %+v", err)
168+
fmt.Printf("ERROR: %+v\n", err)
169169
os.Exit(1)
170170
}
171171
}

pkg/sql/bulkmerge/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ go_test(
5454
"//pkg/sql/sem/eval",
5555
"//pkg/sql/sem/tree",
5656
"//pkg/testutils/serverutils",
57+
"//pkg/testutils/skip",
5758
"//pkg/testutils/sqlutils",
5859
"//pkg/testutils/testcluster",
5960
"//pkg/util/leaktest",

pkg/sql/bulkmerge/merge_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"github.com/cockroachdb/cockroach/pkg/sql/execinfrapb"
2222
"github.com/cockroachdb/cockroach/pkg/sql/sem/tree"
2323
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
24+
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
2425
"github.com/cockroachdb/cockroach/pkg/testutils/testcluster"
2526
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
2627
"github.com/cockroachdb/cockroach/pkg/util/log"
@@ -132,6 +133,8 @@ func TestDistributedMergeThreeNodes(t *testing.T) {
132133
defer leaktest.AfterTest(t)()
133134
defer log.Scope(t).Close(t)
134135

136+
skip.UnderRace(t)
137+
135138
ctx := context.Background()
136139
instanceCount := 3
137140
taskCount := 100
@@ -147,6 +150,8 @@ func TestDistributedMergeMoreInstancesThanTasks(t *testing.T) {
147150
defer leaktest.AfterTest(t)()
148151
defer log.Scope(t).Close(t)
149152

153+
skip.UnderRace(t)
154+
150155
ctx := context.Background()
151156
instanceCount := 5
152157
taskCount := 2 // Fewer tasks than instances

0 commit comments

Comments
 (0)