Skip to content

Commit 6568bfa

Browse files
Merge remote-tracking branch 'origin/next' into master-v25.03.26-into-next
2 parents 581b4a4 + b8a1f11 commit 6568bfa

File tree

261 files changed

+29692
-89707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+29692
-89707
lines changed

.codacy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ exclude_paths:
77
- 'frontend/express/public/localization/**'
88
- 'frontend/express/public/fonts/**'
99
- 'frontend/express/public/images/**'
10-
- 'frontend/express/public/stylesheets/amaranjs/**'
1110
- 'frontend/express/public/stylesheets/font-awesome/**'
1211
- 'frontend/express/public/stylesheets/ionicons/**'
1312
- 'frontend/express/public/stylesheets/material/**'
14-
- 'frontend/express/public/stylesheets/selectize/**'
1513
- 'bin/backup/**'
1614
- 'bin/upgrade/**'
1715
- 'bin/**'

.github/workflows/main.yml

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ jobs:
161161

162162
- name: Copy code
163163
shell: bash
164-
run: cp -rf ./* /opt/countly
164+
run: |
165+
cp -rf ./* /opt/countly
166+
cp ./bin/docker/postinstall.sh /etc/my_init.d
165167
166168
- name: Remove plugin tests
167169
shell: bash
@@ -287,7 +289,12 @@ jobs:
287289
288290
- name: Copy code
289291
shell: bash
290-
run: cp -rf ./* /opt/countly
292+
run: |
293+
rm -rf /opt/countly/frontend
294+
rm -rf /opt/countly/plugins/old-ui-compatibility
295+
cp -rf ./* /opt/countly
296+
cp /opt/countly/frontend/express/config.sample.js /opt/countly/frontend/express/config.js
297+
cp /opt/countly/frontend/express/public/javascripts/countly/countly.config.sample.js /opt/countly/frontend/express/public/javascripts/countly/countly.config.js
291298
292299
- name: Prepare files to use correct MongoDB host
293300
shell: bash
@@ -341,3 +348,82 @@ jobs:
341348
mkdir -p screenshots videos downloads
342349
tar zcvf "$ARTIFACT_ARCHIVE_NAME" screenshots videos downloads
343350
curl -o /tmp/uploader.log -u "${{ secrets.BOX_UPLOAD_AUTH }}" ${{ secrets.BOX_UPLOAD_PATH }} -T "$ARTIFACT_ARCHIVE_NAME"
351+
352+
ui-test-sdk:
353+
runs-on: ubuntu-latest
354+
355+
services:
356+
mongodb:
357+
image: mongo:8.0
358+
options: >-
359+
--health-cmd mongosh
360+
--health-interval 10s
361+
--health-timeout 5s
362+
--health-retries 5
363+
ports:
364+
- 27017:27017
365+
366+
container:
367+
image: countly/countly-core:pipelines-${{ inputs.custom_tag || github.base_ref || github.ref_name }}
368+
env:
369+
COUNTLY_CONFIG__MONGODB_HOST: mongodb
370+
COUNTLY_CONFIG_API_PREVENT_JOBS: true
371+
372+
steps:
373+
- uses: actions/checkout@v2
374+
375+
- name: Install Chrome
376+
shell: bash
377+
run: |
378+
apt update
379+
apt install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb wget
380+
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
381+
apt install -y /tmp/chrome.deb
382+
383+
- name: Copy code
384+
shell: bash
385+
run: cp -rf ./* /opt/countly
386+
387+
- name: Prepare files to use correct MongoDB host
388+
shell: bash
389+
run: "sed -i 's/mongosh --quiet/mongosh --host mongodb --quiet/' /opt/countly/bin/backup/import_events.sh && sed -i 's/mongoimport --db/mongoimport --host mongodb --db/' /opt/countly/bin/backup/import_events.sh"
390+
391+
- name: NPM install
392+
shell: bash
393+
working-directory: /opt/countly
394+
run: npm install
395+
396+
- name: Prepare environment
397+
shell: bash
398+
working-directory: /opt/countly
399+
run: |
400+
sed -i 's/port: 3001,/port: 3001, workers: 1,/' /opt/countly/api/config.js
401+
cp "./plugins/plugins.default.json" "/opt/countly/plugins/plugins.json"
402+
npm install
403+
sudo countly task dist-all
404+
bash bin/scripts/countly.prepare.ce.tests.sh
405+
cd ui-tests
406+
echo '{"username": "${{ secrets.CYPRESS_USER_USERNAME }}","email": "${{ secrets.CYPRESS_USER_EMAIL }}","password": "${{ secrets.CYPRESS_USER_PASSWORD }}"}' > cypress/fixtures/user.json
407+
sed -i 's/00000000-0000-0000-0000-000000000000/${{ secrets.CYPRESS_KEY }}/g' package.json
408+
cp cypress.config.sample.js cypress.config.js
409+
sed -i 's/000000/${{ secrets.CYPRESS_PROJECT_ID }}/g' cypress.config.js
410+
411+
- name: Run UI tests
412+
shell: bash
413+
working-directory: /opt/countly
414+
run: |
415+
/sbin/my_init &
416+
cd ui-tests
417+
npm install
418+
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" \
419+
npm run cy:run:sdk
420+
421+
- name: Upload UI tests artifacts
422+
if: ${{ failure() }}
423+
shell: bash
424+
working-directory: /opt/countly/ui-tests/cypress
425+
run: |
426+
ARTIFACT_ARCHIVE_NAME="$(date '+%Y%m%d-%H.%M')_${GITHUB_REPOSITORY#*/}_CI#${{ github.run_number }}_ui_test_sdk.tar.gz"
427+
mkdir -p screenshots videos
428+
tar zcvf "$ARTIFACT_ARCHIVE_NAME" screenshots videos
429+
curl -o /tmp/uploader.log -u "${{ secrets.BOX_UPLOAD_AUTH }}" ${{ secrets.BOX_UPLOAD_PATH }} -T "$ARTIFACT_ARCHIVE_NAME"

CHANGELOG.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 25.xx
2+
Dependencies:
3+
- Remove SQLite
4+
15
## Version 25.03.26
26
Fixes:
37
- [push] Fixed timeout setting
@@ -30,7 +34,6 @@ Fixes:
3034
Enterprise Fixes:
3135
- [ab-testing] Add script for fixing variant cohort
3236
- [groups] Fix user permission update after updating user group permission
33-
3437
## Version 25.03.24
3538
Fixes:
3639
- [jobs] Fix condition for scheduling alert job
@@ -63,7 +66,6 @@ Enterprise Fixes:
6366
- [users] Add survey section to user feedback page
6467
- [users] Fixed uploading user profile pictures
6568

66-
6769
## Version 25.03.22
6870
Fixes:
6971
- [alerts] Fix: Migrate alerts to the new events model
@@ -141,7 +143,6 @@ Enterprise Fixes:
141143
Dependencies:
142144
- Bump puppeteer from 24.16.2 to 24.17.0
143145

144-
145146
## Version 25.03.16
146147
Enterprise Fixes:
147148
- [journeys] Fix for skip threshold check in concurrent requests
@@ -151,7 +152,6 @@ Dependencies:
151152
- Bump get-random-values from 3.0.0 to 4.0.0
152153
- Bump puppeteer from 24.16.1 to 24.16.2
153154

154-
155155
## Version 25.03.15
156156
Enterprise Fixes:
157157
- [cohorts] Unescape segmentation properties options to prevent duplicated values
@@ -185,7 +185,6 @@ Enterprise Fixes:
185185
- [flows] Showing correct state for disabled flows
186186
- [surveys] Move "not likely" label next to 0 on mobile screens
187187

188-
189188
## Version 25.03.12
190189
Features:
191190
- [plugins] Add configuration warning tags to settings UI
@@ -208,7 +207,6 @@ Dependencies:
208207
- Bump puppeteer from 24.14.0 to 24.15.0
209208
- Bump supertest from 7.1.3 to 7.1.4
210209

211-
212210
## Version 25.03.11
213211
Fixes:
214212
- [core] Fix mongo connection url parsing
@@ -304,7 +302,6 @@ Fixes:
304302
- [hooks] Added null check for incoming data
305303
- [push] Fix external drawer initialization
306304
- [times-of-day] Fix chart component
307-
308305
Enterprise Fixes:
309306
- [content] Asset URL was wrongly constructed when user switches between apps
310307
- [ab-testing] Updates

Dockerfile-api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ RUN curl -s -L -o /tmp/tini.deb "https://github.com/krallin/tini/releases/downlo
4949
dpkg -i /tmp/tini.deb && \
5050
\
5151
# modify standard distribution
52-
apt-get update && apt-get install -y sqlite3 && \
5352
./bin/docker/modify.sh && \
5453
\
5554
# preinstall

Dockerfile-centos-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN curl -s -L -o /tmp/tini.rpm "https://github.com/krallin/tini/releases/downlo
5151
yum install -y epel-release && \
5252
yum install -y pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc && \
5353
yum install -y https://pkgs.sysadmins.ws/el8/base/x86_64/raven-release-1.0-2.el8.noarch.rpm && \
54-
yum install -y wget openssl-devel make git libsqlite* sqlite unzip bzip2 && \
54+
yum install -y wget openssl-devel make git unzip bzip2 && \
5555
# modify standard distribution
5656
./bin/docker/modify.sh && \
5757
\

Dockerfile-centos-frontend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RUN curl -s -L -o /tmp/tini.rpm "https://github.com/krallin/tini/releases/downlo
4949
yum install -y epel-release && \
5050
yum install -y pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc && \
5151
yum install -y https://pkgs.sysadmins.ws/el8/base/x86_64/raven-release-1.0-2.el8.noarch.rpm && \
52-
yum install -y wget openssl-devel make git sqlite libsqlite* unzip bzip2 && \
52+
yum install -y wget openssl-devel make git unzip bzip2 && \
5353
# modify standard distribution
5454
./bin/docker/modify.sh && \
5555
\

Dockerfile-core

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM phusion/baseimage:focal-1.2.0
1+
FROM phusion/baseimage:jammy-1.0.4
22

33
ARG COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,logger,systemlogs,populator,reports,crashes,push,star-rating,slipping-away-users,compare,server-stats,dbviewer,times-of-day,compliance-hub,alerts,onboarding,consolidate,remote-config,hooks,dashboards,sdk,data-manager,guides
44
# Countly Enterprise:
@@ -29,7 +29,7 @@ RUN useradd -r -M -U -d /opt/countly -s /bin/false countly && \
2929
apt-get update && \
3030
apt-get install -y \
3131
# standard
32-
build-essential libkrb5-dev git sqlite3 wget sudo \
32+
build-essential libkrb5-dev git wget sudo \
3333
# nginx
3434
nginx \
3535
# puppeteer
@@ -38,7 +38,7 @@ RUN useradd -r -M -U -d /opt/countly -s /bin/false countly && \
3838
libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils \
3939
# push / nghttp2
4040
gcc g++ make binutils autoconf automake autotools-dev libtool pkg-config zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev \
41-
libevent-dev libjansson-dev libjemalloc-dev cython python3-dev python-setuptools && \
41+
libevent-dev libjansson-dev libjemalloc-dev python3-dev python-setuptools && \
4242
# node
4343
wget -qO- https://deb.nodesource.com/setup_20.x | bash - && \
4444
# data_migration (mongo clients)
@@ -76,8 +76,8 @@ RUN useradd -r -M -U -d /opt/countly -s /bin/false countly && \
7676
chown -R countly:countly /opt/countly && \
7777
# cleanup
7878
npm remove -y --no-save mocha nyc should supertest && \
79-
apt-get remove -y build-essential libkrb5-dev sqlite3 wget \
80-
gcc g++ make binutils autoconf automake autotools-dev libtool pkg-config zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev libjemalloc-dev cython python3-dev python-setuptools && \
79+
apt-get remove -y build-essential libkrb5-dev wget \
80+
gcc g++ make binutils autoconf automake autotools-dev libtool pkg-config zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev libjemalloc-dev python3-dev python-setuptools && \
8181
apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils && \
8282
apt-get clean && \
8383
rm -rf /var/lib/apt/lists/* /tmp/* /tmp/.??* /var/tmp/* /var/tmp/.??* ~/.npm ~/.cache && \

Dockerfile-frontend

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ RUN curl -s -L -o /tmp/tini.deb "https://github.com/krallin/tini/releases/downlo
4646
dpkg -i /tmp/tini.deb && \
4747
\
4848
# modify standard distribution
49-
apt-get update && apt-get install -y sqlite3 && \
5049
./bin/docker/modify.sh && \
5150
\
5251
# preinstall

0 commit comments

Comments
 (0)