From 24a7b57527246f4d0f174d455b58410e1a0a32ab Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Mon, 3 Jun 2024 21:04:34 +0530 Subject: [PATCH] chore: run grafana test only on Linux; document that it is broken on Darwin --- doc/grafana.md | 4 +++- test/flake.nix | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/grafana.md b/doc/grafana.md index f49095d..966bccf 100644 --- a/doc/grafana.md +++ b/doc/grafana.md @@ -1,6 +1,8 @@ # Grafana -[Grafana open source](https://grafana.com/docs/grafana/latest/) is open source visualization and analytics software. It allows you to query, visualize, alert on, and explore your metrics, logs, and traces no matter where they are stored. It provides you with tools to turn your time-series database (TSDB) data into insightful graphs and visualizations. +[Grafana open source](https://grafana.com/docs/grafana/latest/)[^broken-on-darwin] is open source visualization and analytics software. It allows you to query, visualize, alert on, and explore your metrics, logs, and traces no matter where they are stored. It provides you with tools to turn your time-series database (TSDB) data into insightful graphs and visualizations. + +[^broken-on-darwin]: Grafana is broken on Darwin since `11.0.0` (). Also see the issue to track the fix: ## Getting Started diff --git a/test/flake.nix b/test/flake.nix index aa9a0cb..40e7c53 100644 --- a/test/flake.nix +++ b/test/flake.nix @@ -32,7 +32,7 @@ ]; }; in - builtins.listToAttrs (builtins.map mkPackageFor [ + builtins.listToAttrs (builtins.map mkPackageFor ([ "${inputs.services-flake}/nix/apache-kafka_test.nix" "${inputs.services-flake}/nix/clickhouse/clickhouse_test.nix" "${inputs.services-flake}/nix/elasticsearch_test.nix" @@ -42,13 +42,15 @@ "${inputs.services-flake}/nix/redis_test.nix" "${inputs.services-flake}/nix/redis-cluster_test.nix" "${inputs.services-flake}/nix/zookeeper_test.nix" - "${inputs.services-flake}/nix/grafana_test.nix" "${inputs.services-flake}/nix/prometheus_test.nix" "${inputs.services-flake}/nix/pgadmin_test.nix" "${inputs.services-flake}/nix/cassandra_test.nix" "${inputs.services-flake}/nix/tempo_test.nix" "${inputs.services-flake}/nix/weaviate_test.nix" - ]); + ] ++ lib.optionals pkgs.stdenv.isLinux [ + # Broken on Darwin: https://github.com/NixOS/nixpkgs/issues/316954 + "${inputs.services-flake}/nix/grafana_test.nix" + ])); }; }; }