]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-mixin: Remove jsonnet building 47633/head
authorAswin Toni <aswin.toni@cern.ch>
Tue, 16 Aug 2022 14:17:21 +0000 (16:17 +0200)
committerAswin Toni <aswin.toni@cern.ch>
Wed, 17 Aug 2022 10:08:56 +0000 (12:08 +0200)
Signed-off-by: Aswin Toni <aswin.toni@cern.ch>
ceph.spec.in
debian/control
monitoring/ceph-mixin/CMakeLists.txt
monitoring/ceph-mixin/jsonnet-build.sh [deleted file]

index 89831fdd586589b94a20fce4023a591673fd4d8d..b1ac5252d5ce017dbed534e8c7e04258055d4226 100644 (file)
@@ -367,6 +367,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
@@ -408,6 +409,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 47520fffab2df0b66821ac77ea86c8531f12adc2..c69548162fee5e51bdf79124330e63a0e5861f71 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}