Skip to content

test(smoke): add install smoke, migrate to the shared org workflow - #2065

Merged
duncdrum merged 2 commits into
masterfrom
dp-install-smoke
Jul 21, 2026
Merged

test(smoke): add install smoke, migrate to the shared org workflow#2065
duncdrum merged 2 commits into
masterfrom
dp-install-smoke

Conversation

@duncdrum

@duncdrum duncdrum commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Adds an install smoke (jinks 01-smoke.bats template) that actually autodeploys the built xar into a clean eXist - this repo's CI was validation-only (TEI schema) with no check that the package installs at all.

Running it immediately found a real bug: the templates ant target's version-token replaceregex is greedy (version=".*") and swallows the adjacent spec="1.0" attribute since they share a line, corrupting every ant-built xar's expath-pkg.xml (a bare eXist then refuses to install it: "The element does not have an attribute spec"). Not previously caught because every current consumer (the old monolith Dockerfile, the new data.Dockerfile) zips the raw repo directly and never runs ant. Fixed by anchoring the regex to the nearest quote instead of matching greedily to end-of-line.

Since then, migrated onto BetaMasaheft/.github's shared install-smoke.yml reusable workflow (BetaMasaheft/.github#10, #11, #12) instead of a local job + bats copy - two real bugs found in that local copy (a grep -c 'healthy' substring match against Docker's (unhealthy) status; an overly strict exact-count assertion on the package-deployment log check) had to be hand-patched across all 10 sibling repos separately before centralizing, which is exactly the problem the shared workflow now solves. Also scopes the push trigger to master/main so a PR branch push doesn't double-fire this workflow via both push and pull_request.

Verified end-to-end in real CI (ant build -> xst install -> shared bats suite) before merging.

Refs BetaMasaheft/BetMas#122

@duncdrum
duncdrum marked this pull request as ready for review July 20, 2026 11:49
duncdrum added 2 commits July 21, 2026 15:27
build.xml's ant token-replacement regex (version=".*") was greedy and
silently dropped the adjacent spec attribute from the built
expath-pkg.xml. Also stops test/*.bats from shipping inside the built
xar.
Replaces the local job + bats copy with a call into
BetaMasaheft/.github's install-smoke.yml reusable workflow
(BetaMasaheft/.github#10, #11, #12) - dependency-aware install via xst,
shared 8-check bats suite, so a future fix lands once instead of once
per repo. Also scopes the push trigger to master/main so a PR branch
push doesn't double-fire this workflow via both push and pull_request.
@duncdrum duncdrum changed the title test(smoke): add install smoke test, fix version-token regex test(smoke): add install smoke, migrate to the shared org workflow Jul 21, 2026
@duncdrum
duncdrum requested a review from DrRataplan July 21, 2026 13:57
@duncdrum
duncdrum requested a review from DrRataplan July 21, 2026 13:58
@duncdrum
duncdrum merged commit e8d5814 into master Jul 21, 2026
2 checks passed
@duncdrum
duncdrum deleted the dp-install-smoke branch July 21, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants