This is an automated email from the ASF dual-hosted git repository.
hubcio pushed a commit to branch chore/prepare-0.10.0
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/chore/prepare-0.10.0 by this
push:
new 09bff7187 fix(repo): include PHP tests in source releases
09bff7187 is described below
commit 09bff71879cd5a40b31148664aad438a6693ace0
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Tue Nov 3 19:12:09 2026 +0100
fix(repo): include PHP tests in source releases
PHP package export rules omit the SDK test suite from source archives.
Override the test assets in a temporary shared Git repository.
---
scripts/prepare-release.sh | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/scripts/prepare-release.sh b/scripts/prepare-release.sh
index 7fd5f915f..675a54cb2 100755
--- a/scripts/prepare-release.sh
+++ b/scripts/prepare-release.sh
@@ -68,8 +68,21 @@ RELEASE_PATHS=(
"web"
)
+# PHP package archives exclude tests, but source releases need them.
+ARCHIVE_REPO=$(mktemp -d)
+trap 'rm -rf "$ARCHIVE_REPO"' EXIT
+git clone --quiet --bare --shared . "$ARCHIVE_REPO"
+mkdir -p "$ARCHIVE_REPO/info"
+cat > "$ARCHIVE_REPO/info/attributes" <<'EOF'
+foreign/php/Dockerfile.test -export-ignore
+foreign/php/docker-compose.test.yml -export-ignore
+foreign/php/phpunit.xml.dist -export-ignore
+foreign/php/tests -export-ignore
+foreign/php/tests/** -export-ignore
+EOF
+
# Create tar using git archive for consistent output
-git archive \
+git --git-dir="$ARCHIVE_REPO" archive \
--format=tar \
--prefix="iggy-${VERSION}-src/" \
-o "$RELEASE_DIR/$TAR_NAME" \