summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2023-07-19 01:42:02 +0300
committerMichał Górny <mgorny@gentoo.org>2023-07-24 20:48:54 +0200
commit48aaf4bfab21264a86008144c153b4759c6cef6f (patch)
tree25dd9bc4197f6f3a31085e0931883beea6160bf0
parentdev-python/elasticsearch-py: drop 8.6.2 (diff)
downloadgentoo-48aaf4bf.tar.gz
gentoo-48aaf4bf.tar.bz2
gentoo-48aaf4bf.zip
dev-python/elasticsearch-py: disable server tests
* Fixes #906716 while allowing stabilize-allarches as all arches are now get some testing. Closes: https://bugs.gentoo.org/906716 Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/elasticsearch-py/Manifest3
-rw-r--r--dev-python/elasticsearch-py/elasticsearch-py-8.7.0.ebuild91
-rw-r--r--dev-python/elasticsearch-py/elasticsearch-py-8.8.0.ebuild91
-rw-r--r--dev-python/elasticsearch-py/elasticsearch-py-8.8.2.ebuild91
-rw-r--r--dev-python/elasticsearch-py/metadata.xml1
5 files changed, 16 insertions, 261 deletions
diff --git a/dev-python/elasticsearch-py/Manifest b/dev-python/elasticsearch-py/Manifest
index 1cf0eb16c6e9..c204319ef904 100644
--- a/dev-python/elasticsearch-py/Manifest
+++ b/dev-python/elasticsearch-py/Manifest
@@ -1,6 +1,3 @@
-DIST elasticsearch-8.7.0-linux-x86_64.tar.gz 596104472 BLAKE2B bf2d6d6f810abd6e586681882f7eb01728167c6fd56ff927b08388bc3f4f5d342f0d903db1306880d70efc27c1ed7c53ba25d9517c55f4fa228744fdb7e3695b SHA512 7ac6ee5e2e2ccee1ebb20a1c94992b90e879b8b37273d59ae1496b1e8ae5499ae1b6ddce8cea7dda3b63e7e45352735b2bd3328ad0fdd6d6aadb020de21eb894
-DIST elasticsearch-8.8.0-linux-x86_64.tar.gz 596757716 BLAKE2B 78867b59fddd8efdc63cbe914d968a500d5c1351bd97abb7fb868ca5af8945d7b8d4e2116f3b7daafa4ec1c675deec15dfad25cd4545efd694a6663d2590bccb SHA512 4af771a03371605ce82964300c78dd54d5f8ca3b1237c6480818f595a56deaceace842fdade433636ef53a0e55142477e82e9c1157e7e33ca3f46d86beca44e8
-DIST elasticsearch-8.8.2-linux-x86_64.tar.gz 597172402 BLAKE2B 65fa55de5282cefcb75d6dfc2af2f48ead1faa53674168c349451526f805417bc0744e6542fe5df0bb443a51b65ba48470e0fa0aa3704e95cb72ad90d324963b SHA512 4a63bb3c4cc69573be6a6ee6fae69adec2da5e33c048fa2aba8ee8842e2aef6ef82b6fd22cfb2145e307c46e6ddf40654a49e8bdab0f8672d88dac07a50e4743
DIST elasticsearch-py-8.7.0.gh.tar.gz 523141 BLAKE2B bbc6c59e921c5e8db3b7815a3086abe42690733d6719dcf3e167a521b1e7b38e68bf29ff2b1e0e48839be36c11feb9cb5bd9da507c35f508063ccfe9f3c24c59 SHA512 8f28d51cde600069692c8bef810e7949165a5f7a3ec440513a5f69e5c392ecb928dbd0317a9424d1845f523230a421e7d53db41a03b1bd3cc232c4b04ee0c894
DIST elasticsearch-py-8.8.0.gh.tar.gz 526860 BLAKE2B 81d747c6ff3a552bcb279bc6ae4ede6a20c9516610f375dc11183eb38b759b4a8b4a9d0af9747300f483f3df403d918d938e50ae8bec91d09b67b7e81b11a114 SHA512 8bbbbfdcb658b648f2b3c7bd41c0d83cc66385eb8e5a118714c146c7ee8fb247f606098cc3ddacb679e009495dc8dbc0e3159fb0cae38ee49399e27c868940f1
DIST elasticsearch-py-8.8.2.gh.tar.gz 527409 BLAKE2B e7768150e22995b4ae4a5b0898a252c46e90b224e8c4132a7035d726db9367facfe2cd006c0d319454c61c075d180776f567e45791d731bf1fc1d40a78d284a2 SHA512 5e5610425fe3727b817fbeafb411fa3e455a1f08c4992774c95c93c5b0d01880198d39febb18baee7a1da85bd126d9679fb6a2aac4602df8ec49cfff0b5bd3be
diff --git a/dev-python/elasticsearch-py/elasticsearch-py-8.7.0.ebuild b/dev-python/elasticsearch-py/elasticsearch-py-8.7.0.ebuild
index 91735a291c43..776a587df4d5 100644
--- a/dev-python/elasticsearch-py/elasticsearch-py-8.7.0.ebuild
+++ b/dev-python/elasticsearch-py/elasticsearch-py-8.7.0.ebuild
@@ -13,27 +13,13 @@ HOMEPAGE="
https://github.com/elastic/elasticsearch-py
https://pypi.org/project/elasticsearch/
"
-# Use bundled jdk for the test elasticsearch as there is no convenient way to ensure system jdk17 is used
-SRC_URI="
- https://github.com/elastic/elasticsearch-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
- test? (
- amd64? (
- elibc_glibc? (
- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${PV}-linux-x86_64.tar.gz
- )
- )
- )
-"
+SRC_URI="https://github.com/elastic/elasticsearch-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0/$(ver_cut 1)"
KEYWORDS="amd64 ~x86"
-RESTRICT="
- !amd64? ( test )
- !elibc_glibc? ( test )
- !test? ( test )
-"
+RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/aiohttp-3[${PYTHON_USEDEP}] <dev-python/aiohttp-4[${PYTHON_USEDEP}]
@@ -60,6 +46,9 @@ EPYTEST_IGNORE=(
# Counting deprecation warnings from python is bound to fail even if all are fixed in this package
# Not worth it
"test_elasticsearch/test_client/test_deprecated_options.py"
+ # Running daemon for tests is finicky and upstream CI fails at it as well
+ "test_elasticsearch/test_server/"
+ "test_elasticsearch/test_async/test_server/"
)
distutils_enable_sphinx docs/sphinx dev-python/sphinx-rtd-theme
@@ -72,73 +61,3 @@ src_prepare() {
default
}
-
-src_test() {
- local es_port="25124"
-
- export ES_DIR="${WORKDIR}/elasticsearch-${PV}"
- export ES_INSTANCE="gentoo-es-py-test"
- export ELASTIC_PASSWORD="changeme"
- export ELASTICSEARCH_URL="https://elastic:${ELASTIC_PASSWORD}@localhost:${es_port}"
-
- # Default behavior sets these depending on available memory.
- # On my system its not reliable and leads to an instant OOM :D
- # So lets add a reasonable limit
- export ES_JAVA_OPTS="-Xmx4g"
-
- cat > "${ES_DIR}/config/elasticsearch.yml" <<-EOF || die
- # Run elasticsearch on custom port
- http.port: ${es_port}
- cluster.routing.allocation.disk.threshold_enabled: false
- bootstrap.memory_lock: true
- node.attr.testattr: test
- repositories.url.allowed_urls: http://snapshot.test*
- action.destructive_requires_name: false
- ingest.geoip.downloader.enabled: false
-
- xpack.license.self_generated.type: basic
- xpack.security.enabled: true
- xpack.security.http.ssl.enabled: false
- EOF
-
- # Set password in keystore
- printf "y\n${ELASTIC_PASSWORD}\n" | ${ES_DIR}/bin/elasticsearch-keystore add "bootstrap.password" || die
-
- local es_instance="gentoo-py-test"
- local es_log="${ES_DIR}/logs/${es_instance}.log"
- local es_temp="${T}/es_temp"
- local pid="${ES_DIR}/elasticsearch.pid"
-
- mkdir ${es_temp} || die
-
- ebegin "Starting Elasticsearch for ${EPYTHON}"
-
- # start local instance of elasticsearch
- "${ES_DIR}"/bin/elasticsearch -d -p "${pid}" \
- -Ecluster.name="${es_instance}" -Epath.repo="${es_temp}" || die
-
- local i es_started=0
- for i in {1..20}; do
- grep -q "started" ${es_log} 2> /dev/null
- if [[ $? -eq 0 ]]; then
- einfo "Elasticsearch started"
- es_started=1
- eend 0
- break
- elif grep -q 'BindException\[Address already in use\]' "${es_log}" 2>/dev/null; then
- eend 1
- eerror "Elasticsearch already running"
- die "Cannot start Elasticsearch for tests"
- else
- einfo "Waiting for Elasticsearch"
- sleep 2
- continue
- fi
- done
-
- [[ ${es_started} -eq 0 ]] && die "Elasticsearch failed to start"
-
- distutils-r1_src_test
-
- pkill -F ${pid} || die
-}
diff --git a/dev-python/elasticsearch-py/elasticsearch-py-8.8.0.ebuild b/dev-python/elasticsearch-py/elasticsearch-py-8.8.0.ebuild
index e0dffb4bed03..c20e136a45d5 100644
--- a/dev-python/elasticsearch-py/elasticsearch-py-8.8.0.ebuild
+++ b/dev-python/elasticsearch-py/elasticsearch-py-8.8.0.ebuild
@@ -13,27 +13,13 @@ HOMEPAGE="
https://github.com/elastic/elasticsearch-py
https://pypi.org/project/elasticsearch/
"
-# Use bundled jdk for the test elasticsearch as there is no convenient way to ensure system jdk17 is used
-SRC_URI="
- https://github.com/elastic/elasticsearch-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
- test? (
- amd64? (
- elibc_glibc? (
- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${PV}-linux-x86_64.tar.gz
- )
- )
- )
-"
+SRC_URI="https://github.com/elastic/elasticsearch-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0/$(ver_cut 1)"
KEYWORDS="~amd64 ~x86"
-RESTRICT="
- !amd64? ( test )
- !elibc_glibc? ( test )
- !test? ( test )
-"
+RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/aiohttp-3[${PYTHON_USEDEP}] <dev-python/aiohttp-4[${PYTHON_USEDEP}]
@@ -60,6 +46,9 @@ EPYTEST_IGNORE=(
# Counting deprecation warnings from python is bound to fail even if all are fixed in this package
# Not worth it
"test_elasticsearch/test_client/test_deprecated_options.py"
+ # Running daemon for tests is finicky and upstream CI fails at it as well
+ "test_elasticsearch/test_server/"
+ "test_elasticsearch/test_async/test_server/"
)
distutils_enable_sphinx docs/sphinx dev-python/sphinx-rtd-theme
@@ -72,73 +61,3 @@ src_prepare() {
default
}
-
-src_test() {
- local es_port="25124"
-
- export ES_DIR="${WORKDIR}/elasticsearch-${PV}"
- export ES_INSTANCE="gentoo-es-py-test"
- export ELASTIC_PASSWORD="changeme"
- export ELASTICSEARCH_URL="https://elastic:${ELASTIC_PASSWORD}@localhost:${es_port}"
-
- # Default behavior sets these depending on available memory.
- # On my system its not reliable and leads to an instant OOM :D
- # So lets add a reasonable limit
- export ES_JAVA_OPTS="-Xmx4g"
-
- cat > "${ES_DIR}/config/elasticsearch.yml" <<-EOF || die
- # Run elasticsearch on custom port
- http.port: ${es_port}
- cluster.routing.allocation.disk.threshold_enabled: false
- bootstrap.memory_lock: true
- node.attr.testattr: test
- repositories.url.allowed_urls: http://snapshot.test*
- action.destructive_requires_name: false
- ingest.geoip.downloader.enabled: false
-
- xpack.license.self_generated.type: basic
- xpack.security.enabled: true
- xpack.security.http.ssl.enabled: false
- EOF
-
- # Set password in keystore
- printf "y\n${ELASTIC_PASSWORD}\n" | ${ES_DIR}/bin/elasticsearch-keystore add "bootstrap.password" || die
-
- local es_instance="gentoo-py-test"
- local es_log="${ES_DIR}/logs/${es_instance}.log"
- local es_temp="${T}/es_temp"
- local pid="${ES_DIR}/elasticsearch.pid"
-
- mkdir ${es_temp} || die
-
- ebegin "Starting Elasticsearch for ${EPYTHON}"
-
- # start local instance of elasticsearch
- "${ES_DIR}"/bin/elasticsearch -d -p "${pid}" \
- -Ecluster.name="${es_instance}" -Epath.repo="${es_temp}" || die
-
- local i es_started=0
- for i in {1..20}; do
- grep -q "started" ${es_log} 2> /dev/null
- if [[ $? -eq 0 ]]; then
- einfo "Elasticsearch started"
- es_started=1
- eend 0
- break
- elif grep -q 'BindException\[Address already in use\]' "${es_log}" 2>/dev/null; then
- eend 1
- eerror "Elasticsearch already running"
- die "Cannot start Elasticsearch for tests"
- else
- einfo "Waiting for Elasticsearch"
- sleep 2
- continue
- fi
- done
-
- [[ ${es_started} -eq 0 ]] && die "Elasticsearch failed to start"
-
- distutils-r1_src_test
-
- pkill -F ${pid} || die
-}
diff --git a/dev-python/elasticsearch-py/elasticsearch-py-8.8.2.ebuild b/dev-python/elasticsearch-py/elasticsearch-py-8.8.2.ebuild
index 215cd5318a9b..8f773022672b 100644
--- a/dev-python/elasticsearch-py/elasticsearch-py-8.8.2.ebuild
+++ b/dev-python/elasticsearch-py/elasticsearch-py-8.8.2.ebuild
@@ -13,27 +13,13 @@ HOMEPAGE="
https://github.com/elastic/elasticsearch-py
https://pypi.org/project/elasticsearch/
"
-# Use bundled jdk for the test elasticsearch as there is no convenient way to ensure system jdk17 is used
-SRC_URI="
- https://github.com/elastic/elasticsearch-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
- test? (
- amd64? (
- elibc_glibc? (
- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${PV}-linux-x86_64.tar.gz
- )
- )
- )
-"
+SRC_URI="https://github.com/elastic/elasticsearch-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0/$(ver_cut 1)"
KEYWORDS="~amd64 ~x86"
-RESTRICT="
- !amd64? ( test )
- !elibc_glibc? ( test )
- !test? ( test )
-"
+RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/aiohttp-3[${PYTHON_USEDEP}] <dev-python/aiohttp-4[${PYTHON_USEDEP}]
@@ -60,6 +46,9 @@ EPYTEST_IGNORE=(
# Counting deprecation warnings from python is bound to fail even if all are fixed in this package
# Not worth it
"test_elasticsearch/test_client/test_deprecated_options.py"
+ # Running daemon for tests is finicky and upstream CI fails at it as well
+ "test_elasticsearch/test_server/"
+ "test_elasticsearch/test_async/test_server/"
)
distutils_enable_sphinx docs/sphinx dev-python/sphinx-rtd-theme
@@ -72,73 +61,3 @@ src_prepare() {
default
}
-
-src_test() {
- local es_port="25124"
-
- export ES_DIR="${WORKDIR}/elasticsearch-${PV}"
- export ES_INSTANCE="gentoo-es-py-test"
- export ELASTIC_PASSWORD="changeme"
- export ELASTICSEARCH_URL="https://elastic:${ELASTIC_PASSWORD}@localhost:${es_port}"
-
- # Default behavior sets these depending on available memory.
- # On my system its not reliable and leads to an instant OOM :D
- # So lets add a reasonable limit
- export ES_JAVA_OPTS="-Xmx4g"
-
- cat > "${ES_DIR}/config/elasticsearch.yml" <<-EOF || die
- # Run elasticsearch on custom port
- http.port: ${es_port}
- cluster.routing.allocation.disk.threshold_enabled: false
- bootstrap.memory_lock: true
- node.attr.testattr: test
- repositories.url.allowed_urls: http://snapshot.test*
- action.destructive_requires_name: false
- ingest.geoip.downloader.enabled: false
-
- xpack.license.self_generated.type: basic
- xpack.security.enabled: true
- xpack.security.http.ssl.enabled: false
- EOF
-
- # Set password in keystore
- printf "y\n${ELASTIC_PASSWORD}\n" | ${ES_DIR}/bin/elasticsearch-keystore add "bootstrap.password" || die
-
- local es_instance="gentoo-py-test"
- local es_log="${ES_DIR}/logs/${es_instance}.log"
- local es_temp="${T}/es_temp"
- local pid="${ES_DIR}/elasticsearch.pid"
-
- mkdir ${es_temp} || die
-
- ebegin "Starting Elasticsearch for ${EPYTHON}"
-
- # start local instance of elasticsearch
- "${ES_DIR}"/bin/elasticsearch -d -p "${pid}" \
- -Ecluster.name="${es_instance}" -Epath.repo="${es_temp}" || die
-
- local i es_started=0
- for i in {1..20}; do
- grep -q "started" ${es_log} 2> /dev/null
- if [[ $? -eq 0 ]]; then
- einfo "Elasticsearch started"
- es_started=1
- eend 0
- break
- elif grep -q 'BindException\[Address already in use\]' "${es_log}" 2>/dev/null; then
- eend 1
- eerror "Elasticsearch already running"
- die "Cannot start Elasticsearch for tests"
- else
- einfo "Waiting for Elasticsearch"
- sleep 2
- continue
- fi
- done
-
- [[ ${es_started} -eq 0 ]] && die "Elasticsearch failed to start"
-
- distutils-r1_src_test
-
- pkill -F ${pid} || die
-}
diff --git a/dev-python/elasticsearch-py/metadata.xml b/dev-python/elasticsearch-py/metadata.xml
index 5e08a8961122..2edf51fc8139 100644
--- a/dev-python/elasticsearch-py/metadata.xml
+++ b/dev-python/elasticsearch-py/metadata.xml
@@ -13,4 +13,5 @@
<remote-id type="github">elastic/elasticsearch-py</remote-id>
<remote-id type="pypi">elasticsearch</remote-id>
</upstream>
+ <stabilize-allarches/>
</pkgmetadata>