]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-mixin: Remove jsonnet building
authorAswin Toni <aswin.toni@cern.ch>
Tue, 16 Aug 2022 14:17:21 +0000 (16:17 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Tue, 30 Aug 2022 11:03:21 +0000 (13:03 +0200)
Signed-off-by: Aswin Toni <aswin.toni@cern.ch>
(cherry picked from commit 2e0e684fc20cbf6c2e48215b431419c8573b3863)

ceph.spec.in
debian/control
monitoring/ceph-mixin/CMakeLists.txt
monitoring/ceph-mixin/jsonnet-build.sh [deleted file]

index 530139d065d05507905d62d4640e16046e2e788a..5c5e390f4ae8eeaaaf9d9e6b4058c36551590415 100644 (file)
@@ -362,6 +362,7 @@ BuildRequires:  rdma-core-devel
 BuildRequires: liblz4-devel >= 1.7
 # for prometheus-alerts
 BuildRequires:  golang-github-prometheus-prometheus
+BuildRequires: jsonnet
 %endif
 %if 0%{?fedora} || 0%{?rhel}
 Requires:      systemd
@@ -403,6 +404,7 @@ BuildRequires:      python%{python3_pkgversion}-pyOpenSSL
 %endif
 %if 0%{?suse_version}
 BuildRequires: golang-github-prometheus-prometheus
+BuildRequires: jsonnet
 BuildRequires: libxmlsec1-1
 BuildRequires: libxmlsec1-nss1
 BuildRequires: libxmlsec1-openssl1
index 5bc541d629949fb87bb9289596795d22be4c5c91..cbb5ccaa4d850219bc7747e07e3385b38d9cdfd4 100644 (file)
@@ -24,6 +24,7 @@ Build-Depends: automake,
                hostname <pkg.ceph.check>,
                javahelper,
                jq <pkg.ceph.check>,
+               jsonnet <pkg.ceph.check>,
                junit4,
                libarrow-dev <pkg.ceph.arrow>,
                libparquet-dev <pkg.ceph.arrow>,
index ac1fdb13ea9e8893e102ee2bab4c05fcc5942da7..411cfb970d0d1b80c06c966d61ec9b0fce3ef6e1 100644 (file)
@@ -11,17 +11,6 @@ if(WITH_GRAFANA)
       include(AddCephTest)
       set(CEPH_BUILD_VIRTUALENV ${CMAKE_BINARY_DIR})
 
-      add_test(NAME jsonnet-build
-          COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/jsonnet-build.sh ${CMAKE_CURRENT_BINARY_DIR})
-      set_property(TEST jsonnet-build PROPERTY
-          FIXTURES_SETUP jsonnet)
-      add_test(NAME jsonnet-cleanup
-          COMMAND rm -rf go-jsonnet
-                         ${CMAKE_CURRENT_BINARY_DIR}/jsonnet
-                         ${CMAKE_CURRENT_BINARY_DIR}/jsonnetfmt)
-      set_property(TEST jsonnet-cleanup PROPERTY
-          FIXTURES_CLEANUP jsonnet)
-
       add_test(NAME jsonnet-bundler-build
           COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/jsonnet-bundler-build.sh ${CMAKE_CURRENT_BINARY_DIR})
       set_property(TEST jsonnet-bundler-build PROPERTY
@@ -34,11 +23,10 @@ if(WITH_GRAFANA)
       add_tox_test(grafana-lint TOX_ENVS lint)
       add_tox_test(jsonnet-lint TOX_ENVS jsonnet-lint)
       set_property(TEST run-tox-jsonnet-lint PROPERTY
-          FIXTURES_REQUIRED venv-for-jsonnet-lint jsonnet
-          ENVIRONMENT "PATH=${CMAKE_CURRENT_BINARY_DIR}:$ENV{PATH}")
+          FIXTURES_REQUIRED venv-for-jsonnet-lint)
       add_tox_test(jsonnet-check TOX_ENVS jsonnet-check)
       set_property(TEST run-tox-jsonnet-check PROPERTY
-          FIXTURES_REQUIRED venv-for-jsonnet-check jsonnet jsonnet-bundler
+          FIXTURES_REQUIRED venv-for-jsonnet-check jsonnet-bundler
           ENVIRONMENT "PATH=${CMAKE_CURRENT_BINARY_DIR}:$ENV{PATH}")
 
       add_tox_test(alerts-check TOX_ENVS alerts-check)
diff --git a/monitoring/ceph-mixin/jsonnet-build.sh b/monitoring/ceph-mixin/jsonnet-build.sh
deleted file mode 100755 (executable)
index 8e229f9..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh -ex
-
-JSONNET_VERSION="v0.18.0"
-OUTPUT_DIR=${1:-$(pwd)}
-
-git clone -b ${JSONNET_VERSION} --depth 1 https://github.com/google/go-jsonnet.git
-cd go-jsonnet
-go build ./cmd/jsonnet
-go build ./cmd/jsonnetfmt
-mv jsonnet jsonnetfmt ${OUTPUT_DIR}