Commit Graph

165 Commits

Author SHA1 Message Date
Andrew Mayorov 501f0fc8d5
ci: reduce test matrix size
Test emqx profile under OTP-25 only. Build test matrix programmatically
for that purpose.
2022-12-18 23:12:22 +03:00
Andrew Mayorov 2e1cdd039e
ci: include OTP-25 in some workflows
* Use OTP-25 exclusively for Elixir builds
* Include OTP-25 in slim package builds
* Include OTP-25 in test workflow matrices
2022-12-16 13:45:04 +03:00
Zaiming (Stone) Shi 56066a03b5 Merge remote-tracking branch 'origin/release-50' into 1214-sync-master-upstreams 2022-12-14 20:04:20 +01:00
Zaiming (Stone) Shi 416990bd8f ci: no need to run ct with static profile matrix 2022-12-14 16:42:44 +01:00
Zaiming (Stone) Shi 42c58e2a91 Merge remote-tracking branch 'origin/release-50' into 1214-sync-master-upstreams 2022-12-14 15:29:13 +01:00
Ivan Dyachkov 3013b982cc ci: build amzn2 package
also
- upgrade emqx-builder to 5.0.24
- use amzn2 instead of el8 by default
- cross-cover emqx and emqx-enterprise in slim packages
2022-12-13 09:04:45 +01:00
Ivan Dyachkov 93789fb872 ci: fix logs artefact name 2022-12-09 16:13:53 +01:00
Zaiming (Stone) Shi e1f09d9899 Merge remote-tracking branch 'origin/release-50' into 1208-merge-release-50-back-to-master 2022-12-08 14:27:01 +01:00
Zaiming (Stone) Shi c87c9e886e ci: rename build step for docker-ct 2022-12-07 17:34:17 +01:00
Zaiming (Stone) Shi 1c8a9079b9 ci: remove undefined matrix from artifact name 2022-12-07 17:27:59 +01:00
Zaiming (Stone) Shi 1c2fc4b6c3 Merge remote-tracking branch 'origin/release-50' into 1206-chore-merge-ee50-to-release-50 2022-12-06 16:35:56 +01:00
William Yang 4c493affda ci: make test runnable without self-hosted in fork repo 2022-12-05 12:16:46 +01:00
Zaiming (Stone) Shi c53a815555 ci: pre-compile test profile 2022-11-30 14:03:24 +01:00
Zaiming (Stone) Shi 86e86c5a85 ci: clean before prepare and 'make' the default target
the eunit & proper step depends on a pre-built default target
2022-11-30 09:45:56 +01:00
Zaiming (Stone) Shi 5eacc84d1f ci: delete otp_release from log artifact name 2022-11-30 09:30:40 +01:00
Zaiming (Stone) Shi e4a4956c19 ci: fix find-apps.sh default printout 2022-11-18 21:18:14 +01:00
Zaiming (Stone) Shi 83fe35b148 Merge remote-tracking branch 'origin/dev/ee5.0' into 1116-sync-v5.0.10-to-ee50 2022-11-18 19:23:31 +01:00
Zaiming (Stone) Shi aeac9bf43f ci: refactor, find-app.sh produced matrix 2022-11-18 19:22:02 +01:00
Zaiming (Stone) Shi 3d75a1db3b ci: refactor run_test_cases to prepare ce and ee source zips 2022-11-18 13:17:31 +01:00
Zaiming (Stone) Shi 36404a52ab ci: add DIAGNOSTIC=1 to inspect rebar3 error 2022-11-18 12:59:27 +01:00
Zaiming (Stone) Shi 95f3df9a10 ci: ensure docker-compose up erlang container with root when test Kafka 2022-11-18 00:12:48 +01:00
firest 6ef7123bb9 chore: bump OTP version 2022-11-09 09:53:03 +08:00
Thales Macedo Garitezi 04588148b7 test(influxdb): increase influxdb bridge/connector coverage (ee5.0) 2022-11-07 15:15:49 -03:00
Traphalet f920ff341b ci(actions): update git actions to latest versions 2022-10-28 15:53:26 +03:00
Zaiming (Stone) Shi f785da075b ci: only start required docker for integration tests 2022-09-06 19:25:53 +02:00
Zaiming (Stone) Shi 150465a600 ci: run eunit and proper tests per build profile 2022-08-14 19:07:40 +02:00
Zaiming (Stone) Shi d63d6b5f27 ci: do not run opensource edition test for lib-ee apps 2022-08-13 21:04:48 +02:00
Zaiming (Stone) Shi 4949fb222e ci(test): do not fail coverdata uppload if no file found
the optional make <app>-ct action should not fail the
following upload action
2022-08-13 19:09:41 +02:00
Zaiming (Stone) Shi fbb97b16be ci: test all apps with dual profile
no need to test emqx-enterprise profile if the
EMQX_RELEASE_EDITION compilation flag is not used though
2022-08-12 16:21:22 +02:00
JimMoen ab17fd80e7 ci: common test add redis-sentinel 2022-07-13 10:37:16 +08:00
Zaiming (Stone) Shi 8383e592cd
ci: delete empty var 2022-07-02 08:23:58 +02:00
JianBo He e464c3890e chore: get coverall logs 2022-07-01 13:52:07 +08:00
JianBo He 3696c3d333 chore: print coverall fails log 2022-07-01 09:51:37 +08:00
Zaiming (Stone) Shi d3f8ebd10f ci: fix relup test workflow and upgrade builder to 5.0-17
builder 5.0-17 has emqtt-bench and lux included
so we do not need to rebuild the software for each ci job
2022-06-27 12:06:13 +02:00
Zaiming (Stone) Shi fc4d9e4dcd ci: use emqx-builder 5.0-16
Fixed openssl compatibility issue
2022-06-06 10:54:26 +02:00
JianBo He aae5e55e21 ci: upload all cover files 2022-05-19 14:13:53 +08:00
Shawn 5d65bdaa47 chore: ping emqx-builder to 5.0-15 2022-05-16 18:10:42 +08:00
Zaiming (Stone) Shi 3bcd76a681 ci: try to prepare a compiled test profile for test jobs 2022-05-11 20:55:18 +02:00
Zaiming (Stone) Shi e95a14843d ci: delete otp 23 from ci matrix 2022-05-10 16:34:53 +02:00
Kjell Winblad 74c33cd4e5 feat(rule_engine): add jq function to the rule engine
This commit adds a function to the rule engine that alows users
to transform text or JSON objects using [jq filter programs][1].

[jq][1] is a command line tool that can be used to transform
and filter JSON text using jq's built-in language. The rule engine
function that is added with this commit uses the
[Erlang jq NIF library][2] that wraps the jq C library in an
Erlang NIF function.

[1]: https://stedolan.github.io/jq/
[2]: https://github.com/emqx/jq
2022-05-04 17:09:16 +02:00
Zaiming (Stone) Shi 8ff552c9cf
Merge pull request #7827 from qzhuyan/ci/william/build-ct-self-hosted
cI: ct self-hosted pull image from docker proxy instead
2022-04-29 16:31:22 +01:00
William Yang be375ae621 ci: use docker image cache in aws 2022-04-28 18:01:12 +02:00
William Yang 9bce83c10d ci(self-hosted): ct docker 2022-04-28 16:40:24 +02:00
Zaiming (Stone) Shi 71d166af27 ci: remove 'if: always()' from allgood jobs 2022-04-28 15:09:59 +02:00
Zaiming (Stone) Shi 89d242c3a3 ci: add 'allgood' summary jobs to a few builds
* build_slim_packages
* run_emqx_app_tests
* run_jmeter_tests
* run_test_cases
2022-04-28 15:09:59 +02:00
Zaiming (Stone) Shi fdde829ab9 ci: better names to ci checks 2022-04-28 15:09:59 +02:00
William Yang 89b7c87e19 ci(self-hosted): run ct 2022-04-28 13:32:55 +02:00
Zaiming (Stone) Shi b49df4599a build: use latest builder images (alpine 3.15.1)
OpenSSL-1.1.1n
2022-03-25 07:38:39 +01:00
Zaiming (Stone) Shi f9aba61dbb ci: run ct in concurrent jobs 2022-03-15 20:40:22 +01:00
Zaiming (Stone) Shi 49ad66b4bd ci: no need for rocksdb cache anymore 2022-03-11 14:54:00 +01:00
Zaiming (Stone) Shi 4d59cbdbdc ci: ensure github token env variable for coveralls 2022-03-09 15:58:28 +01:00
Zaiming (Stone) Shi b78c70a378 ci: merge proper coverdata 2022-03-09 13:32:29 +01:00
Zaiming (Stone) Shi e6495f4300 ci: upgrade emqx-builder to 5.0-8:1.13.3-24.2.1-1 2022-03-02 21:57:26 +01:00
Thales Macedo Garitezi 8cac5f6b39
chore(ci): update emqx-builder image
Uses Elixir 1.13.3 and OTP 24.2.1-1.
2022-02-23 15:00:07 -03:00
William Yang 978abe1798 ci: fix jobs triggers 2022-02-01 13:04:52 +01:00
Thales Macedo Garitezi 6165ed010a
fix(ci): fix branch wildcard syntax 2022-01-31 10:50:20 -03:00
William Yang 528817d620 ci: enable ci tests on pushes.
- Secure tests on master branch after merge.

- Improve build cache hit rates
  Due to security reason, github only allow reuse cache from
  - same branch
  - base branch
  - default branch

  Branch Feature-A could not reuse the cache from Feature-B

- Developers could run the workflow in their own forked repo
  before make the PR, this could relieve the runners on upstream repo
2022-01-28 18:33:53 +01:00
Thales Macedo Garitezi 506dad169a
chore(elixir_otp): bump emqx-builder images 2022-01-26 16:59:50 -03:00
Thales Macedo Garitezi e874ec2b36
chore(images): use new image in more CI workflows 2022-01-26 16:59:49 -03:00
William Yang a67c463e8c ci: fix typo 2022-01-18 09:47:25 +01:00
William Yang b347769721 ci: fix indentation in yaml 2022-01-18 09:37:28 +01:00
William Yang 451324300b ci: speed up run_test_case jobs with cache 2022-01-17 08:33:15 +01:00
Zaiming (Stone) Shi b98a00c35d ci: run dialyzer check on self-hosted runner 2022-01-03 16:07:14 +01:00
Ilya Averyanov a7ca6cb39f chore(authn): test MongoDB authn via ssl connection 2021-12-29 16:24:52 +03:00
Ilya Averyanov e2e2c98679 chore(authn): test Mysql authn via ssl connection 2021-12-27 11:16:31 +03:00
Ilya Averyanov 6de89d1207 chore(authn): test PostgreSQL authn via ssl connection 2021-12-27 11:16:31 +03:00
Ilya Averyanov 520629d6e2 chore(authn): test Redis authn via ssl connection 2021-12-27 11:16:31 +03:00
zhouzb caf1784a90 build: update otp version 2021-12-02 15:25:11 +08:00
Ilya Averyanov 390575eafb chore(authn): add MongoDB backend tests 2021-11-29 21:17:56 +03:00
Zaiming Shi e2d7ff2b0f build: rename emqx-ee to emqx-enterprise 2021-11-29 14:53:47 +01:00
Ilya Averyanov 8cc0b43de7 chore(authn): add MySQL & PostgreSQL backend tests 2021-11-23 11:52:51 +03:00
Ilya Averyanov 071c2c99e8 refactor(authn resources): add `emqx_resource` and `emqx_authn` tests 2021-11-22 21:08:04 +03:00
Zaiming Shi a705bc1fc7 build: change package name scheme
`${PROFILE}-${PKG_VSN}-otp${OTP_VSN}-${SYSTEM}-${ARCH}.zip`
2021-11-20 20:44:48 +01:00
zhanghongtong f817ba0075 chore(CI): rename image 2021-10-22 13:40:01 +08:00
zhanghongtong 46a794e38b chore(CI): use concurrency to cancel in-progress workflows 2021-10-22 13:40:01 +08:00
zhanghongtong 4d27d371eb chore(CI): change otp version for workflows 2021-10-22 13:40:01 +08:00
zhanghongtong 1e8948e091 chore(CI): use ghcr
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-16 14:33:59 +08:00
zhongwencool 11e87ab9a3 chore(CI): DIAGNOSTIC=1 for more error message 2021-08-26 17:17:47 +08:00
zhanghongtong 0111306224 chore(CI): fix log attachment overwrite error 2021-08-24 16:15:14 +08:00
Zaiming Shi bf94051d56 chore: update otp version in CI 2021-08-10 15:56:22 +02:00
x1001100011 0fe3083cd7 build: add erlang 24.0.1 for ci 2021-08-09 11:12:25 +02:00
Rory Z 503088186e chore(CI): update ci env 2021-06-25 18:45:34 +08:00
zhanghongtong d825535d04 chore(CI): update events that trigger workflows 2021-06-05 14:09:12 +08:00
JianBo He 3a89b1f00b
chore(action): fix syntax error (#4885) 2021-05-31 15:08:52 +08:00
zhanghongtong 18036fdf3b chore(CI): show rebar3.crushdump when actions failed 2021-05-17 15:09:12 +08:00
Zaiming Shi cd53568f36 build: pin otp 23.2.7.2-emqx-2 2021-05-06 21:05:39 +02:00
Zaiming Shi cacb56a25c build: pin erl23.2.7.2-emqx-1 2021-04-27 21:23:40 +02:00
k32 5fe1e30ad9 chore(ci): Don't fail builds when coveralls is misbehaving 2021-04-26 14:27:22 +02:00
Zaiming Shi 5c49d5e49d chore(build): Pin Erlang/OTP 23.2.7.1-emqx-1 2021-04-17 22:15:34 +02:00
JianBo He 9e8c379ab4 test(ci): add proper testing back 2021-04-14 19:38:56 +08:00
Zaiming Shi df5dc78dff chore(ci): add coveralls finished github action step 2021-04-12 07:00:29 +02:00
Zaiming Shi 08305f8ddf chore(cover): pass host env to container for cover data upload 2021-04-12 07:00:29 +02:00
zhanghongtong 1e249cfd73 chore(CI): target workflows event support enteprise tags 2021-04-08 18:11:59 +08:00
zhanghongtong e3c2461e54 chore(CI): update test case workflows for enterprise repos 2021-03-31 19:44:38 +08:00
zhanghongtong ac9a229c37 chore(CI): update docker compose file 2021-03-30 18:02:37 +08:00
zhanghongtong 5ea897f0f6 chore(CI): check client exited 2021-03-23 09:42:33 +08:00
zhanghongtong be4faa6d7c chore(CI): app test workflows support enterprose repo 2021-03-20 09:31:32 +08:00
Zaiming Shi ddec66fe35 chore(build): remove plugin regression for now
We do not have Elixir in build environment
2021-03-19 12:22:43 +01:00
Zaiming Shi 1ee0432301 chore(build): bump to OTP-23.2.7 2021-03-18 09:04:08 +08:00
Zaiming Shi de6359b5fd chore(ci): find and run plugin tests 2021-03-07 09:49:11 +01:00