Skip to content

Commit b47ac50

Browse files
committed
MLE-24531 Debugging failing DMSDK tests
Also going to move docker-compose to the root dir once this PR is ready.
1 parent 4d4120f commit b47ac50

File tree

5 files changed

+55
-49
lines changed

5 files changed

+55
-49
lines changed
File renamed without changes.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ tmp
77
.settings
88
.vscode
99
.DS_Store
10+
11+
docker
1012
test-app/build
1113
test-app/.gradle
1214
test-app/gradle-local.properties
1315
test-app/docker
1416
test-app/containerLogs
15-
1617
test-complete-app/build
1718
test-complete-app/.gradle

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ instance available for testing.
2121

2222
If you are able to use Docker, run the following:
2323

24-
cd test-app
2524
docker-compose up -d --build
2625

2726
This will create a container with the MarkLogic service. The MarkLogic service will take a minute or two to initialize.
@@ -31,6 +30,7 @@ username and password are in the docker-compose.yaml file in the /test-app direc
3130
Once the container is finished initializing, you need to deploy the test application to the MarkLogic service.
3231
While still in the test-app directory run the following gradle command.
3332

33+
cd test-app
3434
./gradlew -i mlDeploy
3535

3636
Once the deploy has completed successfully, use "cd .." to return to the root directory of the project.

Jenkinsfile

Lines changed: 52 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ def runTests() {
1313
cd test-app
1414
./gradlew -i mlTestConnections
1515
./gradlew -i mlDeploy
16-
1716
cd ..
17+
1818
rm -rf $WORKSPACE/*.xml || true
19-
./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic/ --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-reports.xml -g \'logging|archivePath\' --invert || true
20-
./node_modules/.bin/gulp setupProxyTests || true
21-
./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic-proxy/lib/**/*.js --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-proxy-reports.xml -g \'logging|archivePath\' --invert || true
19+
20+
// Temporarily running a single test.
21+
./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic/documents-data-movement-removeAllUris.js --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-reports.xml || true
22+
23+
// Turning these off temporarily
24+
// ./node_modules/.bin/gulp setupProxyTests || true
25+
// ./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic-proxy/lib/**/*.js --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-proxy-reports.xml -g \'logging|archivePath\' --invert || true
2226
'''
2327
}
2428

@@ -29,7 +33,7 @@ def runDockerCompose(String markLogicDockerImage) {
2933
sudo /usr/local/sbin/mladmin remove
3034
docker-compose down -v || true
3135
sudo /usr/local/sbin/mladmin cleandata
32-
cd node-client-api/test-app
36+
cd node-client-api
3337
MARKLOGIC_LOGS_VOLUME=/tmp MARKLOGIC_IMAGE=''' + markLogicDockerImage + ''' docker-compose up -d --build
3438
sleep 60s;
3539
'''
@@ -38,7 +42,7 @@ def runDockerCompose(String markLogicDockerImage) {
3842
def teardownAfterTests() {
3943
updateWorkspacePermissions()
4044
sh label: 'teardown-docker', script: '''#!/bin/bash
41-
cd node-client-api/test-app
45+
cd node-client-api
4246
docker-compose down -v || true
4347
'''
4448
cleanupDocker()
@@ -118,13 +122,14 @@ pipeline {
118122

119123
stages {
120124

121-
stage('runtests-11.3.1') {
125+
stage('pull-request-tests') {
122126
agent { label 'nodeclientpool' }
123127
steps {
124128
runAuditReport()
125-
runDockerCompose('progressofficial/marklogic-db:latest-11.3')
129+
runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12')
126130
runTests()
127-
runE2ETests()
131+
// Turning these off while debugging
132+
// runE2ETests()
128133
}
129134
post {
130135
always {
@@ -136,25 +141,25 @@ pipeline {
136141
stage('regressions') {
137142
parallel {
138143

139-
stage('runtests-11-nightly') {
140-
when {
141-
allOf {
142-
branch 'develop'
143-
expression { return params.regressions }
144-
}
145-
}
146-
agent { label 'nodeclientpool' }
147-
steps {
148-
runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-11')
149-
runTests()
150-
runE2ETests()
151-
}
152-
post {
153-
always {
154-
teardownAfterTests()
155-
}
156-
}
157-
}
144+
// stage('runtests-11-nightly') {
145+
// when {
146+
// allOf {
147+
// branch 'develop'
148+
// expression { return params.regressions }
149+
// }
150+
// }
151+
// agent { label 'nodeclientpool' }
152+
// steps {
153+
// runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-11')
154+
// runTests()
155+
// runE2ETests()
156+
// }
157+
// post {
158+
// always {
159+
// teardownAfterTests()
160+
// }
161+
// }
162+
// }
158163

159164
stage('runtests-12-nightly') {
160165
when {
@@ -176,25 +181,25 @@ pipeline {
176181
}
177182
}
178183

179-
stage('runtests-10-nightly') {
180-
when {
181-
allOf {
182-
branch 'develop'
183-
expression { return params.regressions }
184-
}
185-
}
186-
agent { label 'nodeclientpool' }
187-
steps {
188-
runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-10')
189-
runTests()
190-
runE2ETests()
191-
}
192-
post {
193-
always {
194-
teardownAfterTests()
195-
}
196-
}
197-
}
184+
// stage('runtests-10-nightly') {
185+
// when {
186+
// allOf {
187+
// branch 'develop'
188+
// expression { return params.regressions }
189+
// }
190+
// }
191+
// agent { label 'nodeclientpool' }
192+
// steps {
193+
// runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-10')
194+
// runTests()
195+
// runE2ETests()
196+
// }
197+
// post {
198+
// always {
199+
// teardownAfterTests()
200+
// }
201+
// }
202+
// }
198203
}
199204
}
200205
}
File renamed without changes.

0 commit comments

Comments
 (0)