Skip to content

Commit eae5890

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 eae5890

File tree

6 files changed

+53
-49
lines changed

6 files changed

+53
-49
lines changed

.copyrightconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ startyear: 2015
1111
# - Dotfiles already skipped automatically
1212
# Enable by removing the leading '# ' from the next line and editing values.
1313
# filesexcluded: third_party/*, docs/generated/*.md, assets/*.png, scripts/temp_*.py, vendor/lib.js
14-
filesexcluded: .github/*, README.md, Jenkinsfile, package.json, package-lock.json, test-app/*, *.md
14+
filesexcluded: .github/*, README.md, Jenkinsfile, package.json, package-lock.json, test-app/*, *.md, docker-compose.yaml
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: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ def runTests() {
1616
1717
cd ..
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+
./node_modules/.bin/mocha --timeout 10000 -R xunit test-basic/documents-data-movement*.js --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/test-basic-reports.xml || true
20+
21+
// Turning these off temporarily
22+
// ./node_modules/.bin/gulp setupProxyTests || true
23+
// ./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
2224
'''
2325
}
2426

@@ -29,7 +31,7 @@ def runDockerCompose(String markLogicDockerImage) {
2931
sudo /usr/local/sbin/mladmin remove
3032
docker-compose down -v || true
3133
sudo /usr/local/sbin/mladmin cleandata
32-
cd node-client-api/test-app
34+
cd node-client-api
3335
MARKLOGIC_LOGS_VOLUME=/tmp MARKLOGIC_IMAGE=''' + markLogicDockerImage + ''' docker-compose up -d --build
3436
sleep 60s;
3537
'''
@@ -38,7 +40,7 @@ def runDockerCompose(String markLogicDockerImage) {
3840
def teardownAfterTests() {
3941
updateWorkspacePermissions()
4042
sh label: 'teardown-docker', script: '''#!/bin/bash
41-
cd node-client-api/test-app
43+
cd node-client-api
4244
docker-compose down -v || true
4345
'''
4446
cleanupDocker()
@@ -118,13 +120,14 @@ pipeline {
118120

119121
stages {
120122

121-
stage('runtests-11.3.1') {
123+
stage('pull-request-tests') {
122124
agent { label 'nodeclientpool' }
123125
steps {
124126
runAuditReport()
125-
runDockerCompose('progressofficial/marklogic-db:latest-11.3')
127+
runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12')
126128
runTests()
127-
runE2ETests()
129+
// Turning these off while debugging
130+
// runE2ETests()
128131
}
129132
post {
130133
always {
@@ -136,25 +139,25 @@ pipeline {
136139
stage('regressions') {
137140
parallel {
138141

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

159162
stage('runtests-12-nightly') {
160163
when {
@@ -176,25 +179,25 @@ pipeline {
176179
}
177180
}
178181

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-
}
182+
// stage('runtests-10-nightly') {
183+
// when {
184+
// allOf {
185+
// branch 'develop'
186+
// expression { return params.regressions }
187+
// }
188+
// }
189+
// agent { label 'nodeclientpool' }
190+
// steps {
191+
// runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-10')
192+
// runTests()
193+
// runE2ETests()
194+
// }
195+
// post {
196+
// always {
197+
// teardownAfterTests()
198+
// }
199+
// }
200+
// }
198201
}
199202
}
200203
}
File renamed without changes.

0 commit comments

Comments
 (0)