Rin Kuryloski
ea895a0023
Account for Elixir containing several core applications
...
- eex
- elixir
- ex_unit
- iex
- logger
- mix
So that apps (like rabbitmq_cli) can dialyze against the extra
components
2023-05-12 08:26:42 +02:00
Rin Kuryloski
08061144ad
Pass csv and json to rabbitmq_cli plt
...
So that they are no longer reported as unknown in
//deps/rabbitmq_cli:dialyze
2023-05-12 08:26:42 +02:00
Rin Kuryloski
19f4abd55b
Build cli deps as .ez archives
...
This provides an elixir/erlang agnostic way of providing them other
erlang rules
2023-05-12 08:26:42 +02:00
Michael Klishin
bffc5d519c
Correct a couple of typos
2023-05-02 16:48:14 +04:00
Michael Klishin
c9221bd717
Improve rabbitmq-queues {add,delete}_member error messages
...
when target queue was not found.
2023-05-02 13:28:29 +04:00
Michael Klishin
d5f16d4ce6
mix format
2023-05-02 13:08:31 +04:00
Michael Klishin
e8cb0c4947
rabbitmq-queues add_member: improve error reporting
2023-05-02 12:14:48 +04:00
Michael Klishin
29d17f05cd
rabbitmq-queues add_member: extract the correct argument
...
during execution environment validation.
2023-05-02 12:14:26 +04:00
Michael Klishin
247452de5d
rabbitmq-queues add_member: add a missing import
2023-05-02 11:08:00 +04:00
Michael Klishin
d4a2d48cea
rabbitmq-queues: validate cluster membership of the argument
...
Specifically of the node where new replicas should be
placed.
Closes #8007
2023-05-02 10:55:31 +04:00
Rin Kuryloski
a944439fba
Replace globs in bazel with explicit lists of files
...
As this is preferred in rules_erlang 3.9.14
2023-04-25 17:29:12 +02:00
Michael Klishin
26ebd5c061
Merge pull request #7970 from rabbitmq/mk-silence-remote-shell-dialyzer-on-otp-26
...
CLI: more OTP 26 compatibility for remote_shell
2023-04-24 21:44:51 +04:00
Michael Klishin
57cd750a1a
mix format
2023-04-24 21:16:41 +04:00
Michael Klishin
4e41246415
CLI: more OTP 26 compatibility for remote_shell
...
shell:start_interactive/1 takes a {node(), mfa()}, not
{node(), atom(), atom(), non_neg_integer()}
2023-04-24 20:54:13 +04:00
Michael Klishin
8625301e8d
CLI: drop two table formatter tests
...
The only way to make them reliable in their current form
would be converting to keyword lists, which are covered anyway.
2023-04-24 19:52:45 +04:00
Michael Klishin
ddf7926941
CLI: make input ordering preditable when formatting a table
...
if the input is given as a map.
References #7931 , #7921
2023-04-24 14:50:31 +04:00
Michael Klishin
c0ed80c625
Merge pull request #6466 from rabbitmq/gazelle
...
Use gazelle for some maintenance of bazel BUILD files
2023-04-19 09:33:44 +04:00
Michael Klishin
cec151df59
Introduce a way to update virtual host metadata using CLI tools ( #7914 )
...
Introduce 'ctl update_vhost_metadata'
that can be used to update the description, tags or default queue type of
any existing virtual hosts.
Closes #7912 , #7857 .
#7912 will need an HTTP API counterpart change.
2023-04-18 02:54:37 +04:00
Rin Kuryloski
8de8f59d47
Use gazelle generated bazel files
...
Bazel build files are now maintained primarily with `bazel run
gazelle`. This will analyze and merge changes into the build files as
necessitated by certain code changes (e.g. the introduction of new
modules).
In some cases there hints to gazelle in the build files, such as `#
gazelle:erlang...` or `# keep` comments. xref checks on plugins that
depend on the cli are a good example.
2023-04-17 18:13:18 +02:00
Michael Klishin
0f8a5899de
Merge branch 'main' into otp26-compatibility
2023-04-17 14:23:21 +04:00
Rin Kuryloski
8a7eee6a86
Ignore warnings when building plt files for dependencies
...
As we don't generally care if a dependency has warnings, only the
target
2023-04-17 10:09:24 +02:00
Michal Kuratczyk
e62bef164a
Don't rely on implicit order in CLI tests
2023-04-13 14:37:19 +02:00
Michal Kuratczyk
699af2c8c3
Don't rely on implicit order in a test
2023-04-13 14:37:18 +02:00
Rin Kuryloski
12dea642ef
Properly escape certain shell variables in bazel
...
In places where such files recently changed
2023-04-13 09:45:28 +02:00
Rin Kuryloski
12153ed823
Fetch github.com/hexpm/hex via bzlmod
...
This fixes a visibility issue when a bazel module depends on
rabbitmq-server
2023-04-13 09:45:28 +02:00
Rin Kuryloski
f09b31e8c5
Fetch all cli deps with bazel ( #7875 )
...
* Fetch all prod cli deps with bazel
This avoids issues with hex and OTP 26, and is needed for offline
bazel builds anyway
* Fetch test cli deps with bazel
* mix format
2023-04-12 16:27:32 +04:00
Michael Klishin
f1a922a17c
Virtual host limit: error type naming
...
vhost_precondition_failed => vhost_limit_exceeded
vhost_limit_exceeded is the error type used by
definition import when a per-vhost is exceeded.
It feels appropriate for this case, too.
2023-04-01 23:11:48 +04:00
Simon Unge
574ca55a3f
See #7777 . Use vhost_max to stop vhost creation in rabbitmq
2023-03-31 12:18:16 -07:00
Rin Kuryloski
0be0b7f82d
Merge pull request #7692 from rabbitmq/rin/rabbitmq-cli-branch-switching
...
fix up bazel build of rabbitmq_cli when branch switching
2023-03-30 08:46:49 +02:00
Michael Klishin
2b1a80f1e9
Merge pull request #7717 from rabbitmq/rabbitmq-server-7716
...
CLI: correctly override DocGuide.virtual_hosts path segment
2023-03-22 10:32:28 +04:00
Michael Klishin
4741b7a6f7
CLI: define a couple more doc guides
2023-03-22 10:31:55 +04:00
Michael Klishin
94cae1d3ed
CLI: correctly override DocGuide.virtual_hosts path segment
...
Closes #7716
2023-03-22 10:21:04 +04:00
Rin Kuryloski
5d27b3c246
Fix a compiler warning in the cli
2023-03-21 15:24:27 +01:00
Rin Kuryloski
87fc43df11
Try to make `bazel clean` unnecessary when switching branches
...
Sometimes switching branches seems to cause an issue with cli
compilation in bazel. This is an attempt to fix that.
2023-03-21 15:23:02 +01:00
Rin Kuryloski
7acfc4ed98
Merge pull request #7619 from rabbitmq/rin/bazel-rabbitmqctl-skip-test-deps
...
Avoid fetching test deps when building rabbitmqctl with bazel
2023-03-16 10:02:48 +01:00
Michael Klishin
aedd6cb6ff
Merge pull request #7620 from markus812498/add-cli-streams-help
...
added :streams to the help command scopes
2023-03-15 18:57:20 +04:00
Rin Kuryloski
8e7e891589
Avoid fetching test deps when building rabbitmqctl with bazel
2023-03-15 11:54:37 +01:00
Rin Kuryloski
eba1d531c9
Fetch cli prod deps via bazel or erlang.mk instead of mix
...
In preparation for offline bazel builds
2023-03-14 23:11:36 +01:00
Jean-Sébastien Pédron
091d756d97
rabbitmq_cli: Fix invalid feature flag definitions
...
`desc` was set to binaries instead of strings.
2023-03-10 09:25:42 +01:00
markus812498
e676ab7067
added :streams to the help command scopes
2023-03-09 15:01:05 +13:00
Rin Kuryloski
e66e5ed62d
Pin rabbitmq_cli non-test deps
...
- Use the same stdout_formatter copy for both erlang and rabbitmq_cli
- Use the same observer_cli copy for both erlang and rabbitmq_cli
2023-03-01 09:54:35 +01:00
Loïc Hoguin
74ce1a4bcc
Fix rabbitmq-diagnostics remote_shell for 26.0 ( #7441 )
2023-02-27 15:27:32 +01:00
Luke Bakken
f420487e5e
Add documentation for hashing passwords
...
Fixes #7432
Adds HTTP API documentation as well as `rabbitmqctl hash_password` docs.
Add `rabbitmqctl` docs
2023-02-26 15:16:38 -08:00
Luke Bakken
d9d6e1bef6
Move rabbit_password to rabbit_common
...
This allows `rabbitmqctl hash_password` to run without having RabbitMQ up.
Follow-up to:
* #5957
* #7003
2023-02-25 09:53:46 -08:00
Luke Bakken
b0d2f94eed
Remove RABBITMQ_ERLANG_COOKIE warning
...
Fixes #7262
2023-02-22 13:09:01 -08:00
Jean-Sébastien Pédron
42bcd94dce
rabbit_db_cluster: New module on top of databases clustering
...
This new module sits on top of `rabbit_mnesia` and provide an API with
all cluster-related functions.
`rabbit_mnesia` should be called directly inside Mnesia-specific code
only, `rabbit_mnesia_rename` or classic mirrored queues for instance.
Otherwise, `rabbit_db_cluster` must be used.
Several modules, in particular in `rabbitmq_cli`, continue to call
`rabbit_mnesia` as a fallback option if the `rabbit_db_cluster` module
unavailable. This will be the case when the CLI will interact with an
older RabbitMQ version.
This will help with the introduction of a new database backend.
2023-02-22 15:28:04 +01:00
Rin Kuryloski
609171ec70
Rename the tanzu cli scope to vmware
...
And update other references to commercial editions
2023-02-16 13:49:54 +01:00
Rin Kuryloski
f827490171
Merge pull request #7286 from rabbitmq/rin/add-v3.12.x-references
...
Add additional v3.12.x references
2023-02-14 18:28:51 +01:00
Rin Kuryloski
93be82d09f
Add 3.13.0 as an allowed version in the test plugin in cli tests
2023-02-14 18:11:23 +01:00
Michael Klishin
8ac0829c15
Merge pull request #7196 from rabbitmq/dialyzer-enable-Wunkown
...
Fix all dependencies for the dialyzer
2023-02-14 13:41:22 -03:00