Commit Graph

834 Commits

Author SHA1 Message Date
Michael Davis 23de117608
Update RabbitMQ series versions in discussion templates 2025-10-30 13:51:25 -04:00
Aitor Pérez Cedres 21b248d769
Merge pull request #14812 from rabbitmq/dependabot-selenium-deps
Configure dependabot to track NPM dependencies
2025-10-28 09:49:55 +00:00
Michael Klishin 8bda3da785
Merge pull request #14831 from rabbitmq/dependabot/github_actions/main/actions/download-artifact-6
Bump actions/download-artifact from 5 to 6
2025-10-27 13:20:34 -07:00
dependabot[bot] 74a6fb0bc2
Bump actions/upload-artifact from 4 to 5
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 19:01:18 +00:00
dependabot[bot] 8df73ae608
Bump actions/download-artifact from 5 to 6
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 18:31:13 +00:00
Aitor Perez 40d7c46830
feat: Configure Dependabot for NPM dependencies in
This commit configures Dependabot to track and update NPM dependencies in `selenium/package.json`.

Key changes include:
- Daily updates for `main`, `v4.2.x`, `v4.1.x`, and `v4.0.x` branches.
- A 3-day cooldown for minor and major version updates.
- Grouping of minor and patch releases into a single pull request.
2025-10-24 12:47:06 +01:00
dependabot[bot] 534f3f812f
Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-23 18:03:14 +00:00
Michael Klishin cd85cc92f2
Merge pull request #14703 from rabbitmq/loic-problem-matchers
CI: Enable Erlang problem matchers
2025-10-22 17:55:40 -07:00
Loïc Hoguin 8d34f3e4ec
Temporarily ignore the enough.erl warning 2025-10-16 17:13:27 +02:00
Loïc Hoguin 422ef89163
CI: Enable Erlang problem matchers
In order to get the right subdirectory for GH to find
our files we use `sed` to modify paths in the output.

We use `pipefail` to make sure failures are propagated.

We use `NON_DETERMINISTIC` to make sure our paths are
full and not just the file.erl.

We disable styling in non-parallel CT runs. This is
needed in order to pick up errors. Currently these
errors will not be annotated directly in PRs, a
pending OTP PR will improve that. Parallel CT runs
write GH annotations directly.
2025-10-16 17:11:02 +02:00
Arnaud Cogoluègnes e5fdae6f7a
Use branch latest sha in nightly OCI
Instead of the SHA from the GitHub context, which returns the SHA from
the cloned repository (so always main). The SHA from main then ends up
in the broker version, which is confusing for other branches.
2025-10-15 11:41:38 +02:00
Michael Klishin 88abb96162
Merge pull request #14691 from rabbitmq/run-mixed-3.13-4.2
Make 3.13->4.2 tests actually use v4.2.x, not main
2025-10-07 19:33:08 -07:00
Arnaud Cogoluègnes cae2b4b038
Make worflow runnable with dispatch
Trigger a 4.3.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 27) (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 28) (push) Waiting to run Details
Test (make) / Test (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.18, 28) (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Has been cancelled Details
2025-10-06 14:14:43 +02:00
Arnaud Cogoluègnes 3790fa3707
Set up nightly-built Docker image for main and 4.2 2025-10-06 14:12:42 +02:00
Arnaud Cogoluègnes 1faae0aed8
Use 4.3.0+ prefix for Docker image tag 2025-10-06 13:52:01 +02:00
dependabot[bot] da10f30f79
Bump actions/download-artifact from 4 to 5
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 12:33:30 +02:00
Arnaud Cogoluègnes 51309eac3c
Exclude JUnit 6 from dependabot
Requires Java 17.
2025-10-06 10:54:02 +02:00
Michal Kuratczyk c2ff0ccbca
Make 3.13->4.2 tests actually use v4.2.x, not main
Scheduled workflows get `main` as ref. This was fine when this workflow
was added since that was before v4.2.x branch existed. Now we need
a bit of gymnastics to test 3.13.7->v4.2.x, even though by default
we get main, not v4.2.x
2025-10-06 10:44:49 +02:00
Arnaud Cogoluègnes 29618a243e
Add workflow to trigger a 4.3 alpha build 2025-10-06 10:27:44 +02:00
Arnaud Cogoluègnes 55f9cfd433
Update dependabot configuration
Exclude JUnit 6 (requires Java 17), add v4.2.x branch for GitHub actions
and Maven.
2025-10-06 09:38:43 +02:00
Aitor Pérez Cedres 7a972e050b
Cleanup dependabot.yaml by 3.13.x configurations
Removed GitHub Actions and Maven dependency configurations for v3.13.x.
2025-10-03 16:50:16 +01:00
Jean-Sébastien Pédron 4917048397
clustering_recovery_SUITE: Run on its own in CI
... instead of as part of a parallel CT group.

[Why]
This testsuite takes quite a lot of time. It affects the time to run the
parallel CT set 2 significantly, especially if it has to be restarted.
2025-10-02 19:34:46 +02:00
dependabot[bot] 4270620cfb
Bump peter-evans/repository-dispatch from 3 to 4
Bumps [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) from 3 to 4.
- [Release notes](https://github.com/peter-evans/repository-dispatch/releases)
- [Commits](https://github.com/peter-evans/repository-dispatch/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peter-evans/repository-dispatch
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 18:03:34 +00:00
Aitor Perez f188d67ba0
Fix OCI gate keeper condition
Follow up to #14449
2025-09-22 15:25:51 +01:00
Aitor Perez dea3514e22
Revert "Fix OCI trigger in PR"
This reverts commit 771874ca6c.
2025-09-22 15:25:24 +01:00
David Ansari 72cd7a35c2 Support Direct Reply-To for AMQP 1.0
# What?
* Support Direct Reply-To for AMQP 1.0
* Compared to AMQP 0.9.1, this PR allows for multiple volatile queues on a single
  AMQP 1.0 session. Use case: JMS clients can create multiple temporary queues on
  the same JMS/AMQP session:
  * https://jakarta.ee/specifications/messaging/3.1/apidocs/jakarta.messaging/jakarta/jms/session#createTemporaryQueue()
  * https://jakarta.ee/specifications/messaging/3.1/apidocs/jakarta.messaging/jakarta/jms/jmscontext#createTemporaryQueue()
* Fix missing metrics in for Direct Reply-To in AMQP 0.9.1, e.g.
  `messages_delivered_total`
* Fix missing metrics (even without using Direct Reply-To ) in AMQP 0.9.1:
  If stats level is not `fine`, global metrics `rabbitmq_global_messages_delivered_*` should still be incremented.

 # Why?
* Allow for scalable at-most-once RPC reply delivery
  Example use case: thousands of requesters connect, send a single
  request, wait for a single reply, and disconnect.
  This PR won't create any queue and won't write to the metadata store.
  Therefore, there's less pressure on the metadata store, less pressure
  on the Management API when listing all queues, less pressure on the
  metrics subsystem, etc.
* Feature parity with AMQP 0.9.1

 # How?
This PR extracts the previously channel specific Direct Reply-To code
into a new queue type: `rabbit_volatile_queue`.
"Volatile" describes the semantics, not a use-case. It signals non-durable,
zero-buffer, at-most-once, may-drop, and "not stored in Khepri."

This new queue type is then used for AMQP 1.0 and AMQP 0.9.1.

Sending to the volatile queue is stateless like previously with Direct Reply-To in AMQP 0.9.1 and like done
for the MQTT QoS 0 queue.
This allows for use cases where a single responder replies to e.g. 100k different requesters.

RabbitMQ will automatically auto grant new link-credit to the responder because the new queue type confirms immediately.

The key gets implicitly checked by the channel/session:
If the queue name (including the key) doesn’t exist, the `handle_event` callback for this queue isn’t invoked and therefore
no delivery will be sent to the responder.

This commit supports Direct Reply-To across AMQP 1.0 and 0.9.1. In other
words, the requester can be an AMQP 1.0 client while the responder is an
AMQP 0.9.1 client or vice versa.
RabbitMQ will internally convert between AMQP 0.9.1 `reply_to` and AMQP
1.0 `/queues/<queue>` address. The AMQP 0.9.1 `reply_to` property is
expected to contain a queue name. That's in line with the AMQP 0.9.1
spec:
> One of the standard message properties is Reply-To, which is designed
specifically for carrying the name of reply queues.

Compared to AMQP 0.9.1 where the requester sets the `reply_to` property
to `amq.rabbitmq.reply-to` and RabbitMQ modifies this field when
forwarding the message to the request queue, in AMQP 1.0 the requester
learns about the queue name from the broker at link attachment time.
The requester has to set the reply-to property to the server generated
queue name. That's because the server isn't allowed to modify the bare
message.

During link attachment time, the client has to set certain fields.
These fields are expected to be set by the RabbitMQ client libraries.
Here is an Erlang example:
```erl
Source = #{address => undefined,
           durable => none,
           expiry_policy => <<"link-detach">>,
           dynamic => true,
           capabilities => [<<"rabbitmq:volatile-queue">>]},
AttachArgs = #{name => <<"receiver">>,
               role => {receiver, Source, self()},
               snd_settle_mode => settled,
               rcv_settle_mode => first},
{ok, Receiver} = amqp10_client:attach_link(Session, AttachArgs),
AddressReplyQ = receive {amqp10_event, {link, Receiver, {attached, Attach}}} ->
                  #'v1_0.attach'{source = #'v1_0.source'{address = {utf8, Addr}}} = Attach,
                  Addr
end,
```

The client then sends the message by setting the reply-to address as
follows:
```erl
amqp10_client:send_msg(
  SenderRequester,
  amqp10_msg:set_properties(
    #{message_id => <<"my ID">>,
      reply_to => AddressReplyQ},
    amqp10_msg:new(<<"tag">>, <<"request">>))),
```

If the responder attaches to the queue target in the reply-to field,
RabbitMQ will check if the requester link is still attached. If the
requester detached, the link will be refused.

The responder can also attach to the anonymous null target and set the
`to` field to the `reply-to` address.

If RabbitMQ cannot deliver a reply, instead of buffering the reply,
RabbitMQ will be drop the reply and increment the following Prometheus metric:
```
rabbitmq_global_messages_dead_lettered_maxlen_total{queue_type="rabbit_volatile_queue",dead_letter_strategy="disabled"} 0.0
```
That's in line with the MQTT QoS 0 queue type.

A reply message could be dropped for a variety of reasons:
1. The requester ran out of link-credit. It's therefore the requester's
   responsibility to grant sufficient link-credit on its receiving link.
2. RabbitMQ isn't allowed to deliver any message to due session flow
   control. It's the requster's responsibility to keep the session window
   large enough.
3. The requester doesn't consume messages fast enough causing TCP
   backpressure being applied or the RabbitMQ AMQP writer proc isn't
   scheduled quickly enough. The latter can happen for example if
   RabbitMQ runs with a single scheduler (is assigned a single CPU
   core). In either case, RabbitMQ internal flow control causes the
   volatile queue to drop messages.

Therefore, if high throughput is required while message loss is undesirable, a classic queue should be used
instead of a volatile queue since the former buffers messages while the
latter doesn't.

The main difference between the volatile queue and the MQTT QoS 0 queue
is that the former isn't written to the metadata store.

 # Breaking Change
Prior to this PR the following [documented caveat](https://www.rabbitmq.com/docs/4.0/direct-reply-to#limitations) applied:
> If the RPC server publishes with the mandatory flag set then `amq.rabbitmq.reply-to.*`
is treated as **not** a queue; i.e. if the server only publishes to this name then the message
will be considered "not routed"; a `basic.return` will be sent if the mandatory flag was set.

This PR removes this caveat.
This PR introduces the following new behaviour:
> If the RPC server publishes with the mandatory flag set, then `amq.rabbitmq.reply-to.*`
is treated as a queue (assuming this queue name is encoded correctly). However,
whether the requester is still there to consume the reply is not checked at routing time.
In other words, if the RPC server only publishes to this name, then the message will be
considered "routed" and RabbitMQ will therefore not send a `basic.return`.
2025-09-09 14:52:22 +02:00
Michael Klishin c791e518e1
Tweak mergify.yml for 4.2.x 2025-09-02 03:48:15 -04:00
Michael Klishin 0bc0b6171e
mergify.yml: updates for the v4.2.x era 2025-09-01 12:18:49 -04:00
dependabot[bot] 275c62d46c
Bump google-github-actions/auth from 2.1.12 to 3.0.0
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 2.1.12 to 3.0.0.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.12...v3.0.0)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-29 18:03:26 +00:00
Aitor Perez 771874ca6c
Fix OCI trigger in PR
The output is of type bool, and the comparison was checking for string
'true'. In JS 'true' is not equal true (bool) 🤷
2025-08-28 11:03:17 +01:00
Michael Klishin 0c35f0fec3
Workflows: bump expected IBM MQ tag to 9.4.0.12 2025-08-12 20:31:14 -04:00
dependabot[bot] 8c53b69b1a
build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 23:05:28 +00:00
Jean-Sébastien Pédron 8d0f1001af
rabbitmq_cli: Create a symlink to test node's logs
[Why]
This doesn't replicate the common_test logs layout, but it will be good
enough to let our GitHub Actions workflow to upload the logs without
specific instructions in the workflow.
2025-08-08 10:12:56 +02:00
Marcial Rosales 8fb36030a5 Add spring authorization server for testing purposes
with Selenium. And ci job to build the docker image
2025-08-06 10:33:49 +02:00
Michael Klishin 018c4b189b
Closes #14327 2025-08-04 11:15:18 -04:00
dependabot[bot] eb6eb953d4
Bump google-github-actions/auth from 2.1.11 to 2.1.12
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 2.1.11 to 2.1.12.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.11...v2.1.12)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-version: 2.1.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-01 18:04:45 +00:00
dependabot[bot] 95746940fb
Bump google-github-actions/auth from 2.1.10 to 2.1.11
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 2.1.10 to 2.1.11.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.10...v2.1.11)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-version: 2.1.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-21 20:11:29 +00:00
Michal Kuratczyk 6acc2b15ea
[skip ci] update version in discussion templates 2025-07-10 11:52:29 +02:00
Michal Kuratczyk cedace734b
[skip ci] add previous_version input to test-make-tests
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Has been cancelled Details
2025-07-09 11:57:08 +02:00
Michal Kuratczyk 6e4058c3ba
[skip ci] Add input to 3.13 mixed version test request
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.18, 26) (push) Has been cancelled Details
Test (make) / Build and Xref (1.18, 27) (push) Has been cancelled Details
Test (make) / Build and Xref (1.18, 28) (push) Has been cancelled Details
Test (make) / Test (1.18, 28, khepri) (push) Has been cancelled Details
Test (make) / Test (1.18, 28, mnesia) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.18, 28, khepri) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.18, 28, mnesia) (push) Has been cancelled Details
Test (make) / Type check (1.18, 28) (push) Has been cancelled Details
2025-07-09 11:46:13 +02:00
Michal Kuratczyk d0dad7375a
Run mixed-version tests with 3.13 weekly 2025-07-08 10:52:24 +02:00
Michal Kuratczyk d2111d35db
Add previous_version input for mixed-version tests 2025-07-08 10:52:24 +02:00
Michal Kuratczyk 3033154717
Cache ActiveMQ to reduce downloads/flakes 2025-06-27 15:05:16 +02:00
Michal Kuratczyk f0705acd19
Disable dialyzer for some modules
Elixir 1.18 comes with a JSON package which leads to errors like this:

```
Duplicate modules: [["/home/runner/work/_temp/.setup-beam/elixir/bin/../lib/elixir/ebin/Elixir.JSON.Encoder.Float.beam",
                     "/home/runner/work/rabbitmq-server/rabbitmq-server/deps/json/ebin/Elixir.JSON.Encoder.Float.beam"],
```
2025-06-27 12:42:57 +02:00
Michal Kuratczyk 57b1ec13fd
Use OTP28/Elixir 1.18 in the pipelines 2025-06-27 09:49:35 +02:00
Michal Kuratczyk 2b83238e72
[skip ci] Add 4.1.1 to discussion template 2025-06-16 09:14:08 +02:00
Aitor Perez 5a83ec98b1
ci: nightly OCI project version without leading 'v'
The leading `v` in the PROJECT_VERSION is breaking some tests, that
expect to parse the version returned by the broker, without a leading
`v`.
2025-06-12 10:36:27 +01:00
Aitor Perez d304d98ac1
ci: build nightly with `{{branch_name}}-{{otp_version}}` tag 2025-06-11 10:08:22 +01:00
David Ansari eccf9fee1e Run Quorum Queue property test on different OTP versions
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Has been cancelled Details
Test (make) / Build and Xref (1.17, 26) (push) Has been cancelled Details
Test (make) / Build and Xref (1.17, 27) (push) Has been cancelled Details
Test (make) / Test (1.17, 27, khepri) (push) Has been cancelled Details
Test (make) / Test (1.17, 27, mnesia) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Has been cancelled Details
Test (make) / Type check (1.17, 27) (push) Has been cancelled Details
## What?

PR #13971 added a property test that applies the same quorum queue Raft
command on different quorum queue members on different Erlang nodes
ensuring that the state machine ends up in exaclty the same state.
The different Erlang nodes run the **same** Erlang/OTP version however.

This commit adds another property test where the different Erlang nodes
run **different** Erlang/OTP versions.

 ## Why?

This test allows spotting any non-determinism that could occur when
running quorum queue members in a mixed version cluster, where mixed
version means in our context different Erlang/OTP versions.

 ## How?

CI runs currently tests with Erlang 27.

This commit starts an Erlang 26 node in docker, specifically for the
`rabbit_fifo_prop_SUITE`.

Test case `two_nodes_different_otp_version` running Erlang 27 then transfers
a few Erlang modules (e.g. module `rabbit_fifo`) to the Erlang 26 node.
The test case then runs the Ra commands on its own node in Erlang 27 and
on the Erlang 26 node in Docker.

By default, this test case is skipped locally.
However, to run this test case locally, simply start an Erlang node as
follows:
```
erl -sname rabbit_fifo_prop@localhost
```
2025-06-06 17:08:28 +02:00
Aitor Perez 4f35561ed6
ci: build nightly OCI image
It's a middle ground between building on every commit, and not building
at all. We currently have a workflow to build the OCI on every PR.
However, building on every PR does not cover some use cases. For
example, providing an image to a user to preview some changes coming in
the next minor or patch. Another use case: compare main with a PR in
Kubernetes.

It's better to have a separate workflow, even at the expense of
duplication, because the "on schedule" trigger only runs on the default
branch of the repository. This "limitation" makes it complicated to
extend the current "build OCI on PRs" to also build nightly for main and
release branches.
2025-06-04 17:03:25 +01:00