Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monika 1.21.2 #201032

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Formula/m/monika.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Monika < Formula
desc "Synthetic monitoring made easy"
homepage "https://monika.hyperjump.tech"
url "https://registry.npmjs.org/@hyperjumptech/monika/-/monika-1.21.1.tgz"
sha256 "f0f87ce40c771b2b7b4c723ddec41200bf180ff788138559dad0cf4fd731d6b6"
url "https://registry.npmjs.org/@hyperjumptech/monika/-/monika-1.21.2.tgz"
sha256 "a9280ac4c288a79c77c28263042fab1d4cc785ef08f94d0cfd3cb25b7e40dce4"
license "MIT"

bottle do
Expand Down Expand Up @@ -32,6 +32,11 @@ def install
node_modules = libexec/"lib/node_modules/@hyperjumptech/monika/node_modules"
node_modules.glob("nice-napi/prebuilds/*")
.each { |dir| rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}" }

cpu_profiler = "@sentry/profiling-node/lib/sentry_cpu_profiler"
node_modules.glob("#{cpu_profiler}-*")
.each { |file| rm(file) unless file.basename.to_s.start_with?("sentry_cpu_profiler-#{os}-#{arch}") }
node_modules.glob("#{cpu_profiler}-*-musl-*").map(&:unlink) if OS.linux?
end

test do
Expand All @@ -53,7 +58,8 @@ def install
$stdout.reopen(monika_stdout)
exec bin/"monika", "-r", "1", "-c", testpath/"config.yml"
end
sleep 14
sleep 15
sleep 15 if OS.mac? && Hardware::CPU.intel?

assert_match "Starting Monika. Probes: 1. Notifications: 1", monika_stdout.read
end
Expand Down
Loading