Skip to content

Commit 6550e72

Browse files
authored
test: temporarily skipped flaky Couchbase test in CI (#2233)
ref https://jsw.ibm.com/browse/INSTA-57559
1 parent a42c7e4 commit 6550e72

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

  • packages/collector/test/tracing/databases/couchbase

packages/collector/test/tracing/databases/couchbase/test.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const {
1313
retry,
1414
delay,
1515
expectExactlyOneMatching,
16-
expectExactlyNMatching
16+
expectExactlyNMatching,
17+
isCI
1718
} = require('../../../../../core/test/test_util');
1819
const ProcessControls = require('../../../test_util/ProcessControls');
1920
const globalAgent = require('../../../globalAgent');
@@ -70,7 +71,7 @@ const verifySpans = (agentControls, controls, options = {}) =>
7071
expectExactlyOneMatching(spans, verifyCouchbaseSpan(controls, entrySpan, options));
7172
});
7273

73-
const mochaSuiteFn = supportedVersion(process.versions.node) ? describe : describe.skip;
74+
let mochaSuiteFn = supportedVersion(process.versions.node) ? describe : describe.skip;
7475

7576
let tries = 0;
7677
const maxTries = 100;
@@ -155,6 +156,12 @@ couchbaseVersions.forEach(version => {
155156
// NOTE: require-mock is not working with esm apps. There is also no need to run the ESM APP for all versions.
156157
if (process.env.RUN_ESM && version !== 'latest') return;
157158

159+
// CASE: This test suite is highly flaky in CI; skip it until it can be stabilized.
160+
// TODO: INSTA-57559
161+
if (isCI() && version === 'latest') {
162+
mochaSuiteFn = describe.skip;
163+
}
164+
158165
// NOTE: it takes 1-2 minutes till the couchbase server can be reached via docker
159166
mochaSuiteFn(`tracing/couchbase@${version}`, function () {
160167
this.timeout(config.getTestTimeout() * 4);

0 commit comments

Comments
 (0)