Skip to content

Commit 0bf3da0

Browse files
committed
force failures
1 parent c6ace7f commit 0bf3da0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Jenkinsfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ pipeline {
8585
stage('Unit') {
8686
stages {
8787
stage('CE') {
88+
// commented to show CBG-4852 CE test failures also
89+
// when { branch 'main' }
8890
when { branch 'main' }
8991
steps {
9092
script {
@@ -95,7 +97,9 @@ pipeline {
9597
sh 'mkdir -p reports'
9698
// --junitfile-project-name is used so that Jenkins doesn't collapse CE and EE results together.
9799
def testExitCode = sh(
98-
script: 'gotestsum --junitfile=test-ce.xml --junitfile-project-name CE --junitfile-testcase-classname relative --format standard-verbose -- -shuffle=on -timeout=20m -coverpkg=./... -coverprofile=cover_ce.out -race -count=1 ./... > verbose_ce.out',
100+
// switch ... to base package to show CBG-4852 CE test failures quicker
101+
// script: 'gotestsum --junitfile=test-ce.xml --junitfile-project-name CE --junitfile-testcase-classname relative --format standard-verbose -- -shuffle=on -timeout=20m -coverpkg=./... -coverprofile=cover_ce.out -race -count=1 ./... > verbose_ce.out',
102+
script: 'gotestsum --junitfile=test-ce.xml --junitfile-project-name CE --junitfile-testcase-classname relative --format standard-verbose -- -shuffle=on -timeout=20m -coverpkg=./... -coverprofile=cover_ce.out -race -count=1 ./base > verbose_ce.out',
99103
returnStatus: true,
100104
)
101105

@@ -143,7 +147,9 @@ pipeline {
143147
sh 'mkdir -p reports'
144148
// --junitfile-project-name is used so that Jenkins doesn't collapse CE and EE results together.
145149
def testExitCode = sh(
146-
script: "gotestsum --junitfile=test-ee.xml --junitfile-project-name EE --junitfile-testcase-classname relative --format standard-verbose -- -shuffle=on -timeout=20m -tags ${EE_BUILD_TAG} -coverpkg=./... -coverprofile=cover_ee.out -race -count=1 ./... 2>&1 > verbose_ee.out",
150+
// CBG-4852 demonstrate failure faster with just base package instead of ...
151+
//script: "gotestsum --junitfile=test-ee.xml --junitfile-project-name EE --junitfile-testcase-classname relative --format standard-verbose -- -shuffle=on -timeout=20m -tags ${EE_BUILD_TAG} -coverpkg=./... -coverprofile=cover_ee.out -race -count=1 ./... 2>&1 > verbose_ee.out",
152+
script: "gotestsum --junitfile=test-ee.xml --junitfile-project-name EE --junitfile-testcase-classname relative --format standard-verbose -- -shuffle=on -timeout=20m -tags ${EE_BUILD_TAG} -coverpkg=./... -coverprofile=cover_ee.out -race -count=1 ./base 2>&1 > verbose_ee.out",
147153
returnStatus: true,
148154
)
149155

base/bucket_gocb_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,4 +2631,7 @@ func TestWriteUpdateWithXattrsDocumentTombstone(t *testing.T) {
26312631
require.NoError(t, err)
26322632
require.JSONEq(t, string(xattrModifiedBody), string(xattrs[xattr1Key]))
26332633
require.NotContains(t, xattrs, xattr2Key)
2634+
WarnfCtx(ctx, "example warnfCtx output")
2635+
t.Log("example t.Log output")
2636+
require.True(t, false, "force a testisfy failure")
26342637
}

0 commit comments

Comments
 (0)