Commit Graph

50910 Commits

Author SHA1 Message Date
Michael Klishin adb6e0468d
Merge pull request #5078 from rabbitmq/test-logs-enhancements
Allow `bazel run test-logs` to work when logs are compressed
2022-06-22 12:15:56 +04:00
Michael Klishin bebe9654a0
Merge pull request #5085 from rabbitmq/amqp-stream-consumer-file-handle-leak-fix 2022-06-21 23:17:23 +04:00
Karl Nilsson 8635ded7fe Close osiris log when cancelling AMQP stream consumer
Else we'd end up leaking file handles.
2022-06-21 16:22:13 +01:00
Philip Kuryloski 8facde8f8d Allow `bazel run test-logs` to work when logs are compressed
As happens if the spawn_strategy is not set to local

Also makes the implementaion of related commands more consistent
2022-06-20 18:18:22 +02:00
Jean-Sébastien Pédron 2e3ba4c1d7
unit_config_value_encryption_SUITE: Fix log message + add stacktrace
The format string started with "~s" but there was no corresponding
argument. I just removed the "~s".

While here, the log message now contains the stacktrace too.
2022-06-20 13:37:20 +02:00
Jean-Sébastien Pédron 3eb6374e4e
rabbitmq_cli: Take "make" command from $MAKE env. variable
This unbreaks the build of rabbitmq_cli on platforms where GNU Make is
installed under another name than `make`. This is the case on Mac OSX
and *BSD for instance where GNU Make is available as `gmake`.
2022-06-20 11:36:02 +02:00
Rin Kuryloski 3bbd28a50a
Merge pull request #5058 from rabbitmq/add-missing-module-deps
Add missing bazel deps
2022-06-18 17:49:20 +02:00
Philip Kuryloski 4b870a5b98 Adjustments to :package-generic-unix for rules_pkg 0.5.1 2022-06-18 14:12:28 +02:00
Michael Klishin cb78795fe8
Merge pull request #5068 from rabbitmq/bump-rbe
Adopt latest rabbitmq-server-buildenv:linux-rbe for RBE
2022-06-18 12:04:38 +04:00
GitHub 71e93fc201 Use latest rbe-erlang-platform/linux-rbe
for remote build execution (RBE) with BuildBuddy
2022-06-18 03:29:53 +00:00
Philip Kuryloski 9b73834cdd Match the rules_pkg version across WORKSPACE.bazel and MODULE.bazel 2022-06-18 00:26:10 +02:00
Philip Kuryloski 7c76498dca Add minimal conflict resolution for the rbe module extension
This is a very simple strategy - multiple declarations of the same
repository for rbe are allowed, only if identical
2022-06-17 09:16:14 +00:00
Philip Kuryloski 4afd473af3 Additional fixes for use of rabbitmq-server as a bazel module
- add more missing deps
- add an extension that allows @rbe to be fetched via bzlmod
2022-06-17 09:16:14 +00:00
Philip Kuryloski 136630841c Add missing bazel deps 2022-06-17 09:16:14 +00:00
Rin Kuryloski cb9950dc29
Merge pull request #5059 from rabbitmq/more-oci-flake-mitigations
Again try to make Dockerfile more cacheable
2022-06-17 11:14:12 +02:00
Philip Kuryloski 178a7fa539 Again try to make Dockerfile more cacheable 2022-06-17 10:58:43 +02:00
Rin Kuryloski 843911919d
Merge pull request #5051 from rabbitmq/nobzlmod-build-fixes
Fixup the bazel build when used without bzlmod
2022-06-15 11:51:58 +02:00
Philip Kuryloski 2fd155e55d Fixup the bazel build when used without bzlmod
As currently we do not use bzlmod when building on Windows
2022-06-15 11:18:41 +02:00
Rin Kuryloski 295f6e2afb
Merge pull request #5044 from rabbitmq/improve-oci-cache-hits
Attempt to improve the cache hit rate for the oci.yaml workflow
2022-06-15 09:24:04 +02:00
Michael Klishin fcd45342c8
Merge pull request #5045 from rabbitmq/fixup-local-build 2022-06-14 20:41:38 +04:00
Philip Kuryloski 09fa85e570 Remove extra tar options not supported on macos
They would have improved the reproducibility of the :source_archive
rule, but are not essential. Fixes the macos breakage introduced by
5027.
2022-06-14 17:53:49 +02:00
Philip Kuryloski 0dcf896677 Attempt to improve the cache hit rate for the oci.yaml workflow 2022-06-14 15:30:55 +02:00
Rin Kuryloski e80022428f
Merge pull request #5027 from rabbitmq/bazel-source-archive
Add a rule for building a source archive
2022-06-14 15:02:01 +02:00
Michael Klishin 8b41ea0960
Merge pull request #5036 from rabbitmq/improve-stream-log-msg
Add action to stream coordinator warning
2022-06-14 17:01:07 +04:00
Michael Klishin ceec38505e
Merge pull request #5037 from rabbitmq/stream-log-level-connection-closed 2022-06-14 16:38:10 +04:00
David Ansari b2e821e772 Change normal connection close log level from warning to debug
This line gets logged when the client closes the connection to the
stream port before it authenticates successfully.

Some external load balancers for example connect to the stream port to
do health checks without sending any stream protocol frame.

This commits prevents the RabbitMQ log from being polluted.
2022-06-14 14:12:33 +02:00
Karl Nilsson dc35e6dc8b Add action to stream coordinator warning 2022-06-14 10:13:50 +01:00
Philip Kuryloski 34db1a3c38 Add a rule for building a source archive
that includes the external dependencies
2022-06-14 10:44:09 +02:00
Rin Kuryloski 4fd20ad376
Merge pull request #5025 from rabbitmq/fix-rabbitmqctl-missing-libs
Fixup rabbitmqctl build for missing formatters & otp 25
2022-06-13 16:09:05 +02:00
Philip Kuryloski 247a5ba91e Fixup an echo statement in oci.yaml 2022-06-13 12:43:35 +02:00
Philip Kuryloski 1633c00638 Use rules_erlang 3.2.0 2022-06-13 12:13:54 +02:00
Philip Kuryloski f52efbb909 Fixup rabbitmqctl build for missing formatters & otp 25 2022-06-13 12:08:57 +02:00
Michael Klishin b8718c736e
Merge pull request #5020 from rabbitmq/stream-max-segment-size-limit
Limit stream max segment size to 3 GB
2022-06-10 18:53:15 +04:00
Michael Klishin cf635a972a
Merge pull request #5022 from rabbitmq/use-rabbit_feature_flags-instead-of-rabbit_ff_registry
rabbit_classic_queue: Use `rabbit_feature_flags`, not `rabbit_ff_registry`
2022-06-10 18:52:27 +04:00
Arnaud Cogoluègnes 68a1a848a9
Limit stream max segment size value in policy
To 3 GB.
2022-06-10 13:42:52 +02:00
Jean-Sébastien Pédron 7b51242eb7
rabbit_classic_queue: Use `rabbit_feature_flags`, not `rabbit_ff_registry`
`rabbit_ff_registry` is an internal module of the feature flags
subsystem, it is not meant to be called outside of it. In particular, it
may lead to crashes very difficult to debug when a feature flag is
enabled. The reason is that this module is compiled and reloaded at
runtime, so the module may disappear for a small period of time. Another
reason is that a process calling `rabbit_ff_registry` may hold that
module, preventing the feature flags subsystem from performing its task.

The correct public API to query the state of a feature flag is
`rabbit_feature_flags:is_enabled/1`. It will always return a boolean. If
the feature flag being queried is in `state_changing` state, this
function takes care of waiting for the outcome.

See #5018.
2022-06-10 13:17:29 +02:00
Michael Klishin aa8b0dc778
Merge pull request #4985 from rabbitmq/rabbitmq-server-4981
Fix cluster links statistic
2022-06-10 13:50:03 +04:00
Arnaud Cogoluègnes e44b65957d
Limit stream max segment size to 3 GB
Values too large can overflow the stream position field
in the index (32 bit int).
2022-06-10 11:45:57 +02:00
Rin Kuryloski 7e80db7b70
Merge pull request #5013 from rabbitmq/use-xref2
Use xref2 from rules_erlang 3
2022-06-10 10:50:30 +02:00
Rin Kuryloski 678d16d063
Merge pull request #5014 from rabbitmq/bump-rbe
Adopt latest rabbitmq-server-buildenv:linux-rbe for RBE
2022-06-10 10:44:59 +02:00
Philip Kuryloski afc2a91a31 Remove the update-rules_erlang workflow
Since master is now using released versions of rules_erlang, which
simplifies backports
2022-06-10 10:27:49 +02:00
GitHub f618ab0552 Use latest rbe-erlang-platform/linux-rbe
for remote build execution (RBE) with BuildBuddy
2022-06-10 08:19:01 +00:00
Philip Kuryloski 6ba6590ce9 Fixup the update-rbe-images.yaml workflow
This workflow ensures that the remote build exection on buildbuddy is
using the latest docker image.
2022-06-10 10:14:31 +02:00
Philip Kuryloski 8789b60287 Remove an additional -ignore_xref 2022-06-09 23:18:55 +02:00
Philip Kuryloski a250a533a4 Remove elixir related -ignore_xref calls
As they are no longer necessary with xref2 and the erlang.mk updates
2022-06-09 23:18:40 +02:00
Philip Kuryloski 15a79466b1 Use the new xref2 macro from rules_erlang
That adopts the modern erlang.mk xref behaviour
2022-06-09 23:18:28 +02:00
Philip Kuryloski 46c400afca Temporarily mark //deps/rabbitmq_amqp1_0:system_SUITE as exclusive
this test is currently failing with remote execution
2022-06-09 16:35:19 +02:00
Luke Bakken 86a509df80
Fix cluster links statistic
Use the `sys_dist` ets table to get distribution port information.

Fixes #4981

Get cluster links stats for TLS dist

Use code from prometheus.erl to get dist links info
2022-06-09 07:20:45 -07:00
Rin Kuryloski 81297546de
Merge pull request #5006 from rabbitmq/dependabot/github_actions/master/actions/cache-3.0.4
Bump actions/cache from 3.0.2 to 3.0.4
2022-06-09 13:59:39 +02:00
Philip Kuryloski 1452d92353 Use otp 25 as otp-max in update-otp-for-oci workflow 2022-06-09 13:24:43 +02:00