Skip to content

Commit 400f7f9

Browse files
authored
Merge branch 'processone:master' into mod_pubsub_serverinfo-pubsub_host
2 parents 0fc150a + c6204fe commit 400f7f9

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ jobs:
3838
with:
3939
path: .ejabberd-modules/sources/ejabberd-contrib
4040

41+
- name: Get compatible Rebar3 binary when OTP 24
42+
if: matrix.elixir < '1.14'
43+
run: |
44+
rm rebar3
45+
wget https://github.com/processone/ejabberd/raw/24.12/rebar3
46+
chmod +x rebar3
47+
4148
- name: Prepare libraries
4249
run: |
4350
apt-get -qq update
@@ -106,6 +113,18 @@ jobs:
106113
- name: Disable mod_muc_webchat_url testing (requires mod_conversejs)
107114
run: sed -i '/mod_muc_webchat_url/d' modules_available.txt
108115

116+
- name: Disable mod_prometheus testing with OTP < 26
117+
if: matrix.elixir < '1.14'
118+
run: sed -i '/mod_prometheus/d' modules_available.txt
119+
120+
- name: Add prometheus dependency only with OTP >= 26
121+
if: matrix.elixir > '1.13'
122+
run: |
123+
sed -i 's|{deps, \[|{deps, \[ \
124+
{quantile_estimator, "1.0.2", {git, "https://github.com/odo/quantile_estimator", {branch, "master"}}}, \
125+
{prometheus, "5.0.0", {git, "https://github.com/prometheus-erl/prometheus.erl", {branch, "master"}}}, \
126+
|g' rebar.config
127+
109128
- name: Disable mod_s3_upload testing with old OTP
110129
if: matrix.elixir < '1.16'
111130
run: sed -i '/mod_s3_upload/d' modules_available.txt
@@ -145,8 +164,6 @@ jobs:
145164
{ecaptcha, ".*", {git, "https://github.com/seriyps/ecaptcha", {branch, "master"}}}, \
146165
{fusco, "0.1.1", {git, "https://github.com/esl/fusco", {branch, "master"}}}, \
147166
{observer_cli, "1.8.3", {git, "https://github.com/zhongwencool/observer_cli", {branch, "main"}}}, \
148-
{prometheus, "5.0.0", {git, "https://github.com/prometheus-erl/prometheus.erl", {branch, "master"}}}, \
149-
{quantile_estimator, "1.0.2", {git, "https://github.com/odo/quantile_estimator", {branch, "master"}}}, \
150167
{recon, "2.5.6", {git, "https://github.com/ferd/recon", {branch, "master"}}}, \
151168
|g' rebar.config
152169
sed -i 's|stdlib, |stdlib, cuesport, ecaptcha, fusco, observer_cli, prometheus, recon, |g' rebar.config

mod_prometheus/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod_prometheus - Prometheus metrics
22
===================================
33

4-
- Requires: ejabberd 24.07 or higher
4+
- Requires: ejabberd 24.07 or higher, and Erlang/OTP 26 or higher
55
- Author: [Pouriya Jahanbakhsh](https://github.com/pouriya)
66

77
This module provides a web page with metrics suitable

0 commit comments

Comments
 (0)