Skip to content

Forward-port release-1.3#124

Merged
noaccOS merged 43 commits intoastarte-platform:masterfrom
mizzet1:push-usxxlmqpqlvt
Mar 2, 2026
Merged

Forward-port release-1.3#124
noaccOS merged 43 commits intoastarte-platform:masterfrom
mizzet1:push-usxxlmqpqlvt

Conversation

@mizzet1
Copy link
Copy Markdown
Contributor

@mizzet1 mizzet1 commented Mar 2, 2026

No description provided.

eddbbt and others added 30 commits May 29, 2024 10:47
Edit versions in mix file and changelog

Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
v1.2.x is now a supported version.

Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
Update astarte_core and astarte_rpc to 1.2rc-0

Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
Update astarte_core and astarte_rpc to 1.2.0

Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
Bump version and update CHANGELOG.md

Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
[Cache `v1` is deprecated](https://github.com/orgs/community/discussions/148746)
Updates the cache CI action version to 4.

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
This PR modifies the `vernemq.sh` entrypoint script to support dynamic
configuration of the Erlang distribution cookie used for clustering
VerneMQ nodes.

Key changes:
- The script now reads the `RELEASE_COOKIE` environment variable, if
set, and injects it into the vm.args file at runtime.
- If `RELEASE_COOKIE` is not set, the behavior falls back to the default
(previously set value `vmq` in vm.args), ensuring backward
compatibility.

Motivation:
In our deployment architecture, each instance of Astarte (Elixir
services + VerneMQ with the custom plugin) will require a possibly
unique Erlang cookie to securely form a cluster between the Erlang
nodes. This change enables per-instance configuration without modifying
the Docker image or baked-in vm.args file.

Signed-off-by: Davide Briani <davide.briani@secomind.com>
…ie-via-env-variable

feat(docker): allow dynamic Erlang cookie via environment variable
RPC requests are currently handled both by an `astarte_rpc` client and a
dedicated `GenServer`. This allows external services to also use the
default erlang clustering strategy to perform RPC calls instead of
relying on the custom library `artarte_rpc`

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
rerfactor: Add RPC server to handle RPC calls
Moves the `case` caluse of the lookup of an existing RPC server to a
`with` cluase, effectively starting a new child only if no other
children are present in the registry for the `:server` key

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
Add release date and a missing entry

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
Merge `feature/erlang-rpc` into `release-1.2`
Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
The most relevant change is the introduction of property-based tests
where relevant. Related to that, a number of support files are
added (e.g. generators for MQTT topics and Astarte payloads) or
reworked (e.g. most of database setup has been moved to a CaseTemplate).
This is the first step in reworking the whole test suite,
therefore existing tests have not been changed.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
Make sure the final message is sent and deletion is acked

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
As title says, just one test.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
Allow the external VerneMQ API dependency to
be mocked in order to better test code depending
on it (e.g. device disconnection).

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
Increase coverage of the RPC server module.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
previously, we avoided adding the server as a child to the supervisor
if a server existed already, leaving the job to horde to eventually
create a consistent status between the supervisors.

now, we do the same while making sure the rpc server is always added
as a child to the supervisor, so that it is not possible for it to
just not start

fixed some typos while at it

Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
Adds support for capabilities messages from devices

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
lucamarchiori and others added 12 commits August 19, 2025 15:12
Fix ENV vars definition
Define a single layer for ports
Pin the Debian image to avoid unwanted changes

Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
add a wrapper around the keepalive transport option, which is enabled
by default as it resolves a connection issue with scylla cloud

mimics astarte-platform/astarte_data_access#126

Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
Use \'- YYY-MM-DD\' everywhere

Signed-off-by: Arnaldo <arnaldo.cesco@secomind.com>
Bump version and update CHANGELOG.md

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>
@mizzet1 mizzet1 force-pushed the push-usxxlmqpqlvt branch 2 times, most recently from 7fbf053 to 524cbc5 Compare March 2, 2026 16:54
@mizzet1 mizzet1 force-pushed the push-usxxlmqpqlvt branch from 524cbc5 to 01ec228 Compare March 2, 2026 17:01
@noaccOS noaccOS merged commit 01ec228 into astarte-platform:master Mar 2, 2026
5 checks passed
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 2, 2026

Codecov Report

❌ Patch coverage is 60.46512% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.72%. Comparing base (17c62c8) to head (01ec228).
⚠️ Report is 55 commits behind head on master.

Files with missing lines Patch % Lines
lib/astarte_vmq_plugin/rpc/server.ex 58.62% 12 Missing ⚠️
lib/astarte_vmq_plugin/config.ex 60.00% 2 Missing ⚠️
lib/astarte_vmq_plugin/rpc/supervisor.ex 71.42% 2 Missing ⚠️
lib/astarte_vmq_plugin/vernemq_api.ex 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
+ Coverage   76.80%   81.72%   +4.91%     
==========================================
  Files          13       12       -1     
  Lines         332      279      -53     
==========================================
- Hits          255      228      -27     
+ Misses         77       51      -26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants