Commit Graph

56755 Commits

Author SHA1 Message Date
Michael Klishin c67c940bcc
Merge pull request #11448 from rabbitmq/dynamic-load-oauth-deps-ui
Dynamically load oauth-related libraries
2024-06-20 21:37:51 -04:00
Michael Klishin 7ee91ce600
Merge pull request #11517 from rabbitmq/dependabot/maven/deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot_kotlin/main/org.springframework.boot-spring-boot-starter-parent-3.3.1
build(deps): bump org.springframework.boot:spring-boot-starter-parent from 3.3.0 to 3.3.1 in /deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot_kotlin
2024-06-20 20:16:48 -04:00
Michael Klishin 71be018ecb
Merge pull request #11516 from rabbitmq/dependabot/maven/deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot/main/org.springframework.boot-spring-boot-starter-parent-3.3.1
build(deps): bump org.springframework.boot:spring-boot-starter-parent from 3.3.0 to 3.3.1 in /deps/rabbitmq_auth_backend_http/examples/rabbitmq_auth_backend_spring_boot
2024-06-20 19:41:08 -04:00
Michael Klishin a95fcec569 Bazel: depend on Horus 0.2.6 2024-06-20 17:52:27 -04:00
Michael Klishin 59deb56039 Revert "bazel/BUILD.horus: do not include license files"
This reverts commit 5beaa3d912.

Horus 0.2.6 should address the root cause.
2024-06-20 15:37:33 -04:00
dependabot[bot] ac03e9bcb8
build(deps): bump org.springframework.boot:spring-boot-starter-parent
Bumps [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-parent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 18:22:05 +00:00
dependabot[bot] 070b605ee7
build(deps): bump org.springframework.boot:spring-boot-starter-parent
Bumps [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-parent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 18:10:48 +00:00
Marcial Rosales f0adf3a2e8 Do not expose which backend was used
instead just indicate if the user is internal or not
2024-06-20 12:42:32 -04:00
Marcial Rosales dc7d41042b Refactor 2024-06-20 12:42:32 -04:00
Marcial Rosales b9966295bf Move most javascript logic to helper.js 2024-06-20 12:42:32 -04:00
Marcial Rosales ccb0059cd4 Dynamically load oauth-related libraries 2024-06-20 12:42:32 -04:00
Jean-Sébastien Pédron 8f1219ae55
Merge pull request #11507 from rabbitmq/revert-retry-after-noconnection-in-feature-flags-subsystem
Revert "rabbit_feature_flags: Retry after erpc:call() fails with `noconnection`"
2024-06-20 16:31:04 +02:00
Rin Kuryloski 71d882e48f
Merge pull request #11506 from rabbitmq/use-rules_elixir-1.1.0
Use the latest rules_erlang & rules_elixir
2024-06-20 14:54:33 +02:00
Jean-Sébastien Pédron d0c13b4a42
Revert "rabbit_feature_flags: Retry after erpc:call() fails with `noconnection`"
This reverts commit 8749c605f5.

[Why]
The patch was supposed to solve an issue that we didn't understand and
that was likely a network/DNS problem outside of RabbitMQ. We know it
didn't solve that issue because it was reported again 6 months after the
initial pull request (#8411).

What we are sure however is that it increased the testing of RabbitMQ
significantly because the code loops for 10+ minutes if the remote node
is not running.

The retry in the Feature flags subsystem was not the right place either.
The `noconnection` error is visible there because it runs earlier during
RabbitMQ startup. But retrying there won't solve a network issue
magically.

There are two ways to create a cluster:
1. peer discovery and this subsystem takes care of retries if necessary
   and appropriate
2. manually using the CLI, in which case the user is responsible for
   starting RabbitMQ nodes and clustering them

Let's revert it until the root cause is really understood.
2024-06-20 14:26:24 +02:00
Loïc Hoguin 7146274f8d
Merge pull request #11509 from rabbitmq/loic-fix-circ-dep
make: Fix circular dependency
2024-06-20 13:34:53 +02:00
Loïc Hoguin 21619bba40
make: Fix circular dependency
Running "make -C deps/rabbit ct-feature_flags_v2" on a clean
repository would not work due to a circular dependency. Since
the plugin in question is a no-op in 4.x, only used in tests,
we make the plugin depend on nothing to avoid the issue.
2024-06-20 11:56:08 +02:00
Rin Kuryloski 3465eef2cd Use the latest rules_erlang & rules_elixir 2024-06-20 11:13:02 +02:00
Michael Klishin 0d3363857f
Merge pull request #11503 from rabbitmq/gazelle-main
bazel run gazelle
2024-06-20 00:14:56 -04:00
GitHub 24bfab3453 bazel run gazelle 2024-06-20 04:02:18 +00:00
Michael Klishin 5beaa3d912 bazel/BUILD.horus: do not include license files
for now, because they are not included into
Horus releases.

See rabbitmq/horus#22.
2024-06-19 23:20:22 -04:00
Karl Nilsson 077c027d52
MQTT: speed up shared_SUITE:many_qos1_messages (#11477)
* MQTT: speed up shared_SUITE:many_qos1_messages

* speed up block_only_publisher

* MQTT: reorganise tests groups

To avoid starting a new broker for each protocol group (v3,v4,v5).

Instead we run all protocol groups under a single cluster configuration
group.

* MQTT: speed up publish_to_all_queue_types_qos* tests.

* Remove separate mnesia_store group

to speed up the test suite

* Fix wrong_shard_count

* Remove unused field

* Run subset of v3 tests

The code being tested under v3 and v4 is almost identical.
To save time in CI, we therefore run only a very small subset of tests in v3.

This cuts the total time reported by CT for the shared_SUITE from 898
seconds to 614 seconds.

Also, the java_SUITE tests in v3.

* Fix wrong_shard_count

* Fix mixed version failure

---------

Co-authored-by: David Ansari <david.ansari@gmx.de>
2024-06-19 20:02:33 +02:00
Michael Klishin 806efd8c65
Merge pull request #11468 from rabbitmq/dependabot/github_actions/main/docker/build-push-action-6
build(deps): bump docker/build-push-action from 5 to 6
2024-06-19 13:21:12 -04:00
Loïc Hoguin 5bf2b678c8
Merge pull request #11486 from rabbitmq/loic-fix-make-full1-regression
make: Don't propagate FULL=1 to "make test-dist"
2024-06-19 16:25:33 +02:00
Michael Klishin 2979ff99ee
Merge pull request #11490 from rabbitmq/vhost-test-flake
Deflake vhost_is_created_with_default_user
2024-06-19 10:10:57 -04:00
Michal Kuratczyk 27f735f49e
Use emqx/emqtt instead of a fork (#11479)
* Use emqx/emqtt instead of a fork
* Specify SNI in test connections (otherwise OTP26 secure TLS defaults make some tests fail)
2024-06-19 14:03:30 +02:00
Michal Kuratczyk 489de21a76
Deflake vhost_is_created_with_default_user
This test relied on the order of items
in the list of users returned and would crash
with `case_clause` if `guest` was returned first.
2024-06-19 13:52:56 +02:00
Rin Kuryloski 71fa6e3d31
Merge pull request #11478 from rabbitmq/more-turn-off-buildbuddy
Remove remaining buildbuddy usage
2024-06-19 12:47:34 +02:00
Loïc Hoguin c79ae49b5a
make: Don't propagate FULL=1 to "make test-dist"
Both FULL and MAKEFLAGS env variables need to be unset
as FULL=1 is present in both. This is a bit of a band-aid,
it's possible that other variables get propagated that
shouldn't be, but we'll fix them when they are detected.
2024-06-19 11:02:06 +02:00
Rin Kuryloski b59da95c2d
Merge pull request #11456 from rabbitmq/rin/rules_elixir
Use rules_elixir for rabbitmqctl
2024-06-19 10:57:41 +02:00
Michael Klishin 60337eb8d0
Merge pull request #11482 from rabbitmq/dependabot/github_actions/main/peter-evans/create-pull-request-6.1.0
build(deps): bump peter-evans/create-pull-request from 6.0.5 to 6.1.0
2024-06-18 15:47:24 -04:00
dependabot[bot] b50f2ce991
build(deps): bump peter-evans/create-pull-request from 6.0.5 to 6.1.0
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.0.5 to 6.1.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.0.5...v6.1.0)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 19:00:10 +00:00
Rin Kuryloski 46250dce11 ensure that csv and json elixir deps are embedded in the cli escript
also set 'cfg =' appropriately
2024-06-18 16:50:02 +02:00
Rin Kuryloski a2709dfd05 Remove remaining buildbuddy usage 2024-06-18 15:13:03 +02:00
Rin Kuryloski 5fc8a8cb9a use the latest rules_erlang
which fixes and issue with escript_archive that was breaking the rabbitmqctl escript
2024-06-18 14:50:35 +02:00
Rin Kuryloski a6b3916a9c use the latest bazel_skylib 2024-06-18 14:50:35 +02:00
Rin Kuryloski f2add661f4 Check that the cli can compile with --warnings-as-errors in ci
It's technically a build target, so we didn't need to create a whole
new test rule, but it's marked as "manual" so that it doesn't cause
bazel build //... to fail
2024-06-18 14:50:35 +02:00
Rin Kuryloski 662ad8edf4 amqp_client system_SUITE apparently needs the cli on the code path
I'm not actually sure why the changes to rabbitmqctl compilation
necessitated this change, but it seems to be the case
2024-06-18 14:50:35 +02:00
Rin Kuryloski ba8cf2c2f7 Set the locale with elixir 2024-06-18 14:50:34 +02:00
Rin Kuryloski 35171ebdeb Add erlang binaries to the path in rabbitmq-run.sh
As they are no longer added automatically by the enclosing rule
2024-06-18 14:50:34 +02:00
Rin Kuryloski 5debebfaf3 Use rules_elixir to build the cli without mix
Certain elixir-native deps are still build with mix, but this can be
corrected later
2024-06-18 14:50:34 +02:00
Karl Nilsson 817bb64b54
Merge pull request #11473 from rabbitmq/add-bazel-cache-flag
Maybe reduce cache errors
2024-06-18 12:58:03 +01:00
Rin Kuryloski b5b7605219 Maybe reduce cache errors
- https://bazel.build/reference/command-line-reference#flag--experimental_guard_against_concurrent_changes
2024-06-18 12:06:29 +02:00
Arnaud Cogoluègnes 6c1f96a826
Merge pull request #11470 from rabbitmq/bump-maven-to-3-9-8
Bump Maven to 3.9.8 in Java test suites
2024-06-18 11:47:59 +02:00
Arnaud Cogoluègnes a52b8c0eb3
Bump Maven to 3.9.8 in Java test suites 2024-06-18 08:55:19 +02:00
Michal Kuratczyk 41a4d1711d
OTP27 support (#11366)
* "maybe" is now a keyword
* Bump horus to 0.2.5 and switch to hex
* Get rid of some deprecated callbacks/functions
2024-06-18 07:32:58 +02:00
Michael Klishin c9a593f444
Merge pull request #11447 from rabbitmq/ra-2.11.0
Ra v2.11.0
2024-06-17 15:44:37 -04:00
dependabot[bot] c3b0cd884c
build(deps): bump docker/build-push-action from 5 to 6
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 18:26:22 +00:00
Karl Nilsson 1abf7a3886
Upgrade maven for MQTT java tests. (#11465) 2024-06-17 19:06:40 +02:00
Karl Nilsson fdaef55213 Ra v2.11.0
This release includes a new machine API `snapshot_installed/2`. This new
API will only be used indirectly through khepri.

This release also includes an performance improvement that reduces the chances
of building a large WAL mailbox backlog when a node is low on scheduling
resources and commands are committed by followers completing writes to disk
before the leader.

There is also a fix for a potential election deadlock.
2024-06-17 15:43:12 +01:00
Loïc Hoguin d959c8a43d
Merge pull request #11112 from rabbitmq/loic-faster-cq-shared-store-gc
4.x: Additional CQv2 message store optimisations
2024-06-17 15:30:25 +02:00