Skip to content

Commit c81253e

Browse files
joewizclaude
andcommitted
[ci] Patch conf.xml to remove built-in exquery module for smoke tests
The Docker image's conf.xml registers a built-in exquery request module at http://exquery.org/ns/request, which takes precedence over our XAR module. Extract conf.xml, remove the built-in registration, and mount the patched config so our XAR module loads correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d804440 commit c81253e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/exist.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,23 @@ jobs:
4141
run: mvn clean package -DskipTests -q
4242

4343
# Deploy XAR in Container
44+
# The Docker image's conf.xml registers a built-in exquery request module
45+
# at the same namespace URI. We must remove it so our XAR module loads.
46+
- name: Patch conf.xml to remove built-in exquery request module
47+
run: |
48+
id=$(docker create existdb/existdb:${{ matrix.exist-version }})
49+
docker cp "$id:/exist/etc/conf.xml" /tmp/conf.xml
50+
docker rm "$id"
51+
# Remove the module registration for http://exquery.org/ns/request
52+
sed -i '/<module.*http:\/\/exquery.org\/ns\/request/d' /tmp/conf.xml
53+
echo "=== Patched conf.xml (exquery lines removed) ==="
54+
grep -n "exquery" /tmp/conf.xml || echo "(no exquery lines remain)"
55+
4456
- name: Start eXist-db container
4557
run: |
4658
docker run -dit -p 8080:8080 \
4759
-v ${{ github.workspace }}/target:/exist/autodeploy \
60+
-v /tmp/conf.xml:/exist/etc/conf.xml \
4861
--name exist --rm --health-interval=1s --health-start-period=1s \
4962
existdb/existdb:${{ matrix.exist-version }}
5063

0 commit comments

Comments
 (0)