mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-25 23:29:59 +00:00
enable rum test (#8380)
## Problem We need to test the rum extension automatically as a path of the GitHub workflow ## Summary of changes rum test is enabled
This commit is contained in:
@@ -933,7 +933,8 @@ COPY --from=pgjwt-pg-build /pgjwt.tar.gz /ext-src
|
|||||||
#COPY --from=pg-tiktoken-pg-build /home/nonroot/pg_tiktoken.tar.gz /ext-src
|
#COPY --from=pg-tiktoken-pg-build /home/nonroot/pg_tiktoken.tar.gz /ext-src
|
||||||
COPY --from=hypopg-pg-build /hypopg.tar.gz /ext-src
|
COPY --from=hypopg-pg-build /hypopg.tar.gz /ext-src
|
||||||
COPY --from=pg-hashids-pg-build /pg_hashids.tar.gz /ext-src
|
COPY --from=pg-hashids-pg-build /pg_hashids.tar.gz /ext-src
|
||||||
#COPY --from=rum-pg-build /rum.tar.gz /ext-src
|
COPY --from=rum-pg-build /rum.tar.gz /ext-src
|
||||||
|
COPY patches/rum.patch /ext-src
|
||||||
#COPY --from=pgtap-pg-build /pgtap.tar.gz /ext-src
|
#COPY --from=pgtap-pg-build /pgtap.tar.gz /ext-src
|
||||||
COPY --from=ip4r-pg-build /ip4r.tar.gz /ext-src
|
COPY --from=ip4r-pg-build /ip4r.tar.gz /ext-src
|
||||||
COPY --from=prefix-pg-build /prefix.tar.gz /ext-src
|
COPY --from=prefix-pg-build /prefix.tar.gz /ext-src
|
||||||
@@ -945,7 +946,7 @@ COPY patches/pg_hintplan.patch /ext-src
|
|||||||
COPY --from=pg-cron-pg-build /pg_cron.tar.gz /ext-src
|
COPY --from=pg-cron-pg-build /pg_cron.tar.gz /ext-src
|
||||||
COPY patches/pg_cron.patch /ext-src
|
COPY patches/pg_cron.patch /ext-src
|
||||||
#COPY --from=pg-pgx-ulid-build /home/nonroot/pgx_ulid.tar.gz /ext-src
|
#COPY --from=pg-pgx-ulid-build /home/nonroot/pgx_ulid.tar.gz /ext-src
|
||||||
COPY --from=rdkit-pg-build /rdkit.tar.gz /ext-src
|
#COPY --from=rdkit-pg-build /rdkit.tar.gz /ext-src
|
||||||
COPY --from=pg-uuidv7-pg-build /pg_uuidv7.tar.gz /ext-src
|
COPY --from=pg-uuidv7-pg-build /pg_uuidv7.tar.gz /ext-src
|
||||||
COPY --from=pg-roaringbitmap-pg-build /pg_roaringbitmap.tar.gz /ext-src
|
COPY --from=pg-roaringbitmap-pg-build /pg_roaringbitmap.tar.gz /ext-src
|
||||||
COPY --from=pg-semver-pg-build /pg_semver.tar.gz /ext-src
|
COPY --from=pg-semver-pg-build /pg_semver.tar.gz /ext-src
|
||||||
@@ -960,6 +961,7 @@ RUN cd /ext-src/ && for f in *.tar.gz; \
|
|||||||
rm -rf $dname; mkdir $dname; tar xzf $f --strip-components=1 -C $dname \
|
rm -rf $dname; mkdir $dname; tar xzf $f --strip-components=1 -C $dname \
|
||||||
|| exit 1; rm -f $f; done
|
|| exit 1; rm -f $f; done
|
||||||
RUN cd /ext-src/pgvector-src && patch -p1 <../pgvector.patch
|
RUN cd /ext-src/pgvector-src && patch -p1 <../pgvector.patch
|
||||||
|
RUN cd /ext-src/rum-src && patch -p1 <../rum.patch
|
||||||
# cmake is required for the h3 test
|
# cmake is required for the h3 test
|
||||||
RUN apt-get update && apt-get install -y cmake
|
RUN apt-get update && apt-get install -y cmake
|
||||||
RUN patch -p1 < /ext-src/pg_hintplan.patch
|
RUN patch -p1 < /ext-src/pg_hintplan.patch
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ for pg_version in 14 15 16; do
|
|||||||
docker cp $TMPDIR/data $COMPUTE_CONTAINER_NAME:/ext-src/pg_hint_plan-src/
|
docker cp $TMPDIR/data $COMPUTE_CONTAINER_NAME:/ext-src/pg_hint_plan-src/
|
||||||
rm -rf $TMPDIR
|
rm -rf $TMPDIR
|
||||||
# We are running tests now
|
# We are running tests now
|
||||||
if docker exec -e SKIP=rum-src,timescaledb-src,rdkit-src,postgis-src,pgx_ulid-src,pgtap-src,pg_tiktoken-src,pg_jsonschema-src,pg_graphql-src,kq_imcx-src,wal2json_2_5-src \
|
if docker exec -e SKIP=timescaledb-src,rdkit-src,postgis-src,pgx_ulid-src,pgtap-src,pg_tiktoken-src,pg_jsonschema-src,pg_graphql-src,kq_imcx-src,wal2json_2_5-src \
|
||||||
$TEST_CONTAINER_NAME /run-tests.sh | tee testout.txt
|
$TEST_CONTAINER_NAME /run-tests.sh | tee testout.txt
|
||||||
then
|
then
|
||||||
cleanup
|
cleanup
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
cd /ext-src
|
cd /ext-src || exit 2
|
||||||
FAILED=
|
FAILED=
|
||||||
LIST=$((echo ${SKIP} | sed 's/,/\n/g'; ls -d *-src) | sort | uniq -u)
|
LIST=$( (echo "${SKIP//","/"\n"}"; ls -d -- *-src) | sort | uniq -u)
|
||||||
for d in ${LIST}
|
for d in ${LIST}
|
||||||
do
|
do
|
||||||
[ -d ${d} ] || continue
|
[ -d "${d}" ] || continue
|
||||||
psql -c "select 1" >/dev/null || break
|
psql -c "select 1" >/dev/null || break
|
||||||
make -C ${d} installcheck || FAILED="${d} ${FAILED}"
|
USE_PGXS=1 make -C "${d}" installcheck || FAILED="${d} ${FAILED}"
|
||||||
done
|
done
|
||||||
[ -z "${FAILED}" ] && exit 0
|
[ -z "${FAILED}" ] && exit 0
|
||||||
echo ${FAILED}
|
echo "${FAILED}"
|
||||||
exit 1
|
exit 1
|
||||||
Reference in New Issue
Block a user