Commit Graph

59372 Commits

Author SHA1 Message Date
Aitor Perez 4efb3df39e
CI: tweak OCI build triggers
Building on push to any branch is wasteful and unnecessary, because most
of built images are never used. The workflow dispatch trigger covers the
use case to build an image from the latest commit in a branch.

The use case to validate/QA a PR is now covered by on pull request
trigger. This trigger has a caveat: PRs from forks won't produce a
docker image.

Why?
Because PRs from forks do not inject rabbitmq-server secrets. This is a
security mechanism from GitHub, to protect repository secrets.

With this trigger is possible to QA/validate PRs from other Core team
members. Technically, anyone with 'write' access to our repo to push
branches.
2025-05-13 11:10:19 +01:00
Michael Davis 3e1fa7bee7
Merge pull request #13888 from rabbitmq/md/scrub-health-check-returns
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (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 Management UI with Selenium / 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-05-12 20:42:05 -04:00
Michael Davis 3f53e0172d
Remove connection counts and limits from public API health checks
Returning the connection limit and active count are not really necessary
for these checks. Instead of returning them in the response to the
health check we log a warning when the connection limit is exceeded.
2025-05-12 19:59:25 -04:00
Michael Klishin 8805cdd9bf
Merge pull request #13883 from rabbitmq/dependabot/maven/deps/rabbit/test/amqp_jms_SUITE_data/main/dev-deps-dd1c27f4c1
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
Peer Discovery AWS Integration Test / Integration Test (push) Has been cancelled Details
[skip ci] Bump com.google.googlejavaformat:google-java-format from 1.26.0 to 1.27.0 in /deps/rabbit/test/amqp_jms_SUITE_data in the dev-deps group across 1 directory
2025-05-11 09:23:14 +04:00
dependabot[bot] 2365b94f98
[skip ci] Bump com.google.googlejavaformat:google-java-format
Bumps the dev-deps group with 1 update in the /deps/rabbit/test/amqp_jms_SUITE_data directory: [com.google.googlejavaformat:google-java-format](https://github.com/google/google-java-format).


Updates `com.google.googlejavaformat:google-java-format` from 1.26.0 to 1.27.0
- [Release notes](https://github.com/google/google-java-format/releases)
- [Commits](https://github.com/google/google-java-format/compare/v1.26.0...v1.27.0)

---
updated-dependencies:
- dependency-name: com.google.googlejavaformat:google-java-format
  dependency-version: 1.27.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-10 18:16:48 +00:00
Michael Klishin d19e90685b
Merge pull request #13878 from rabbitmq/remove-selenium-flakes
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (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
Test Management UI with Selenium / 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
Wait until page is fully loaded
2025-05-09 22:46:49 +04:00
Michael Klishin 44cebf2d6d
Merge pull request #13879 from rabbitmq/md/health-check-ready-to-serve
Add health checks for testing readiness to serve clients
2025-05-09 22:46:11 +04:00
Michael Davis 67bdc011cb
Add a health check for testing readiness to serve clients 2025-05-09 11:36:07 -04:00
Michael Davis 028b69213e
Add a health check for testing the node connection limit 2025-05-09 11:28:11 -04:00
Marcial Rosales f79c7229d5 Wait until page is fully loaded 2025-05-09 14:27:32 +02:00
Michael Klishin 4f9a55baad
Merge pull request #13868 from rabbitmq/fix-selenium-issue-starting-others
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (push) Waiting to run Details
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Blocked by required conditions Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Waiting to run Details
Fix selenium issues when running two rabbitmq
2025-05-08 21:45:05 +04:00
Michael Klishin a4afc2a44a
Merge pull request #13872 from rabbitmq/md/health-check-is-in-service
Add an 'is-in-service' health check wrapping `rabbit:is_serving/0`
2025-05-08 21:42:27 +04:00
Marcial Rosales 81cf5f2e46 Exclude other_rabbitmq when running start-others. And fix some issues 2025-05-08 18:29:54 +02:00
Michael Klishin 98ba31a381
Merge pull request #13871 from rabbitmq/md/health-check-multi-protocol-listener
Allow multiple protocols in protocol listener health check
2025-05-08 20:22:22 +04:00
Michael Davis 07fe6307c6
Add an 'is-in-service' health check wrapping `rabbit:is_serving/0`
This is useful for a load balancer, for example, to be able to avoid
sending new connections to a node which is running and has listeners
bound to TCP ports but is being drained for maintenance.
2025-05-08 11:11:52 -04:00
Michael Davis 5d319be3f9
Accept multiple protocols in protocol listener health check
This updates the health check for protocol listeners to accept a set of
protocols, comma-separated. The check only returns 200 OK when all
requested protocols have active listeners.
2025-05-08 11:01:59 -04:00
Michael Davis 0d692fa161
Prefer node-local listeners helper in protocol-listener health check
This is a minor change that avoids a cluster-wide query for active
listeners. The old code called `rabbit_networking:active_listeners/0`
and then filtered the results by ones available on the local node. This
caused an RPC and concatenation of all other cluster members' listeners
and then in the next line filtered down to local nodes. Equivalently we
can use `rabbit_networking:node_listeners(node())` which dumps a local
ETS table.

This is not a very impactful change but it's nice to keep the latency of
the health-check handlers low and reduce some unnecessary cluster noise.
2025-05-08 10:43:33 -04:00
Michael Klishin d27d5c48ce
Merge pull request #13856 from cloudamqp/faster_empty_cq_init
Make empty CQ init faster in case of clean shutdown
2025-05-08 18:24:28 +04:00
Michael Klishin f50a8d39cc
Merge pull request #13861 from rabbitmq/move-os_mon-users-back-to-rabbit
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Waiting to run Details
Move `file_handle_cache` and `vm_memory_monitor` back to `rabbit`
2025-05-07 21:59:22 +04:00
Michael Klishin 6ba73c2093
Merge pull request #13848 from rabbitmq/extend-mgt-api-selenium-lib
Add several functions to mgt-api.js for wsr testing with selenium
2025-05-07 19:59:37 +04:00
Marcial Rosales ea0dd8beb8 Add functions to mgt-api for selenium 2025-05-07 17:38:31 +02:00
Péter Gömöri 150172f008 Make empty CQ init faster in case of clean shutdown
At CQ startup variable_queue went through each seqid from 0 to
next_seq_id looking for the first message even if there were no
messages in the queue (no segment files).

In case of a clean shutdown the value next_seq_id is stored in
recovery terms. This value can be utilized by the queue index to
provide better seqid bounds in absence of segment files.

Before this patch starting an empty classic queue with next_seq_id =
100_000_000 used to take about 26 seconds. With this patch it takes
less than 1ms.
2025-05-07 14:59:46 +02:00
David Ansari cddfe3ba41 Removed unused function 2025-05-07 14:52:02 +02:00
Jean-Sébastien Pédron e58eb1807a
Move `file_handle_cache` and `vm_memory_monitor` back to `rabbit`
[Why]
They were moved from `rabbit` to `rabbit_common` several years ago to
solve an dependency issue because `amqp_client` depended on the file
handle cache. This is not the case anymore.

[How]
The modules are moved back to `rabbit`.

`rabbit_common` doesn't need to depend on `os_mon` anymore. `rabbit`
already depends on it, so no changes needed here.

`include/rabbit_memory.hrl` and some test cases are moved as well to
follow the `vm_memory_monitor` module.
2025-05-07 09:46:14 +02:00
Arnaud Cogoluègnes 8cc26c4acd
Merge pull request #13857 from rabbitmq/stream-coordinator-fix-partition-index-conflict
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details
Fix partition index conflict in stream SAC coordinator
2025-05-06 15:16:25 +00:00
Michael Klishin 1c0539f862
Merge pull request #13858 from rabbitmq/ik-stomp-utf8-check
STOMP: confirm utf-8 handling
2025-05-06 18:12:57 +04:00
Arnaud Cogoluègnes cad8b70ee8
Fix partition index conflict in stream SAC coordinator
Consumers with a same name, consuming from the same stream should have
the same partition index. This commit adds a check to enforce this rule
and make the subscription fail if it does not comply.

Fixes #13835
2025-05-06 16:11:46 +02:00
Iliia Khaprov 0ec25997b6
STOMP: confirm utf-8 handling 2025-05-06 13:51:37 +02:00
Michael Klishin 99a9237abb
Merge pull request #13850 from rabbitmq/ik-stomp-evergreen
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (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
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
STOMP: queue type tests - add queue.type assertions
2025-05-05 21:31:53 +04:00
Michael Klishin 53f511fa15
Merge pull request #13837 from rabbitmq/dqt-export-fix
Modify default queue type injection logic
2025-05-05 21:20:24 +04:00
Michael Klishin 451850f325
Merge pull request #13836 from rabbitmq/super-streams-ui
Management UI: new page and elements for superstreams (partitioned streams)
2025-05-05 20:34:04 +04:00
Iliia Khaprov a91371dfe6
STOMP: queue type tests - add queue.type assertions 2025-05-05 11:42:39 +02:00
Diana Parra Corbacho ef09b190ce Mgmt UI: Add super streams page 2025-05-04 19:53:55 +02:00
Michael Klishin c458cba923
4.1.0 release notes edits
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Has been cancelled Details
2025-05-03 11:41:49 -04:00
Michael Klishin 6bda6a610f
Minor 4.1.0 release notes correction 2025-05-03 11:37:51 -04:00
Michael Klishin cc33379f27
Merge pull request #13843 from rabbitmq/launch-other-rabbitmq
Launch another rabbitmq server from a Selenium test suite
2025-05-03 18:36:59 +04:00
Marcial Rosales 7653b6522a Fix test
it was necessary to add a queue first before checking which
columns are available
2025-05-03 11:27:05 +02:00
Marcial Rosales fa315e4d86 Fix location of definitions file 2025-05-03 10:56:05 +02:00
Marcial Rosales 64f7aa2c95 Minor test chnage 2025-05-02 18:08:09 +02:00
Marcial Rosales 438b77443c Modify scripts so that it is possible to start 2 rabbitmqs 2025-05-02 17:29:42 +02:00
Michael Klishin 8cbd7e6243
Merge pull request #13838 from rabbitmq/selenium-select-columns-for-virtualhosts
Test Management UI with Selenium / selenium (chrome, 1.17.3, 27.3) (push) Waiting to run Details
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Has been cancelled Details
Test Authentication/Authorization backends via mutiple messaging protocols / selenium (chrome, 1.17.3, 27.3) (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
Test Authentication/Authorization backends via mutiple messaging protocols / summary-selenium (push) Has been cancelled Details
Test management ui selection of vhost's tags columns
2025-05-02 18:35:14 +04:00
Marcial Rosales fb02466b20 Test columns for queues and exchanges 2025-05-02 16:25:01 +02:00
Michael Klishin 6c75497ac1
Merge pull request #13840 from rabbitmq/fix-formatter-crash
Fix formatter crash in rabbit_reader
2025-05-02 18:21:53 +04:00
Marcial Rosales ba0510f85d Test columns available for queues and stream 2025-05-02 16:12:32 +02:00
Marcial Rosales 175abbff87 Test virtual hosts and select tags column 2025-05-02 15:47:32 +02:00
Marcial Rosales ea66a25dfa Testing new vhost has the tag 2025-05-02 14:56:49 +02:00
Michal Kuratczyk 435274bc83
Fix formatter crash in rabbit_reader 2025-05-02 14:56:07 +02:00
Michal Kuratczyk f61b9d9bf4
Add a test for DQT upon vhost creation 2025-05-02 14:01:10 +02:00
Michal Kuratczyk 9bd11b449f
Set the DQT in rabbit_vhost:do_add 2025-05-02 13:58:00 +02:00
Marcial Rosales 7003fefa44 Select columns of vhosts 2025-05-02 13:05:25 +02:00