Commit Graph

49431 Commits

Author SHA1 Message Date
Philip Kuryloski 3e2976384a Make it convenient to run the "secondary umbrella" under bazel
i.e. `bazel run @rabbitmq-server-generic-unix-3.8.18//:broker` or
`bazel run @rabbitmq-server-generic-unix-3.8.18//:rabbitmqctl`
2021-09-08 12:01:38 +02:00
Philip Kuryloski 2b6296c4e2 Mark //deps/rabbitmq_mqtt:cluster_SUITE as flaky 2021-09-08 11:53:05 +02:00
Philip Kuryloski ff3ef92bee Workflow syntax needs a string rather than a list here 2021-09-08 10:01:27 +02:00
Philip Kuryloski 5e7ca3fadf
Merge pull request #3378 from rabbitmq/add-debug-utils-to-docker-oci
Add debug utilities to Docker image
2021-09-08 08:48:25 +02:00
Gerhard Lazu 0d607a6bea
Do not run tests if packaging changes
This change does not affect tests, and the other workflows (esp. the one
that builds OCIs) will check if something breaks in packaging.

Would you disagree with this @pjk25?

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-07 16:40:03 +01:00
Gerhard Lazu 37ea496273
Add debug utilities to Docker image
We need these to debug various rabbitmq-related issues. Ephemeral debug
containers are not enabled on GKE Autopilot (not sure if GKE enables
this alpha feature at all), so we are doing this instead.

    error: ephemeral containers are disabled for this cluster (error from server: "the server could not find the requested resource").

Backport to v3.9.x & v3.8.x if build passes

Pair @Gsantomaggio

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-07 16:29:40 +01:00
Michal Kuratczyk ed43633fa2
3.8.15 release notes correction
`consumer_timeout` affects classic queues as well
2021-09-07 17:08:13 +02:00
Philip Kuryloski efe8da4d41 Allow the rabbit_ct_config_schema helper to work on v3.8 & v3.9
by checking for the presence of lager on the code path as a marker
distinguising rabbit versions
2021-09-07 14:47:51 +02:00
Michael Klishin 5f779f4adf
Update 3.9.6 release notes 2021-09-07 15:00:51 +03:00
Philip Kuryloski 3a449ff4c9 Update "Update OTP Versions for OCI Workflow" to auto-backport
Add labels to created PRs that will be handled by Mergifyio to
automatically backport them
2021-09-07 09:12:50 +02:00
Philip Kuryloski 0d6372159e Add Mergify config to backport based on label
A PR labeled with `backport-v3.9.x` will be cloned to the v3.9.x
branch automatically upon merge. `backport-v3.8.x` does the same for
v3.8.x
2021-09-07 09:02:06 +02:00
Michael Klishin 14e1a53f76
Merge pull request #3371 from processone/3175-fixup
Fix some edge cases in handling ssl information from PROXY protocol
2021-09-07 09:11:52 +03:00
Paweł Chmielowski 6af41527f1 Fix some edge cases in handling ssl information from PROXY protocol
When we fail to parse name of cipher suite from PROXY protocol
just say that no ssl is used, instead of trying to fill that
with data from connection between proxy and our server.
2021-09-06 19:36:42 +02:00
Philip Kuryloski 47a3531cf7 Use a better means of avoiding simultaneous test runs locally 2021-09-06 09:25:02 +02:00
Michael Klishin f493529fec
Add a note on replicated queue types 2021-09-05 16:51:30 +03:00
Michael Klishin f6c8380be5
rabbit_vhost: handle imported tags that are atom lists 2021-09-03 18:38:47 +03:00
Philip Kuryloski dfa8e92118 Allow manual triggering of the AWS Actions Workflow 2021-09-03 17:28:48 +02:00
Philip Kuryloski 2adb37a1bb
Merge pull request #3366 from rabbitmq/bump-otp-for-oci
Adopt latest patch of otp 24.0 for OCI workflow
2021-09-03 17:22:10 +02:00
Philip Kuryloski f7a8824350 Fix cross-workflow reference in AWS peer discovery workflow 2021-09-03 17:16:12 +02:00
pjk25 bcdbe14e44 [create-pull-request] automated change 2021-09-03 13:54:52 +00:00
Philip Kuryloski 5c603f0820 Enable the update-otp-for-oci.yaml workflow 2021-09-03 15:51:34 +02:00
Philip Kuryloski e83e223fb5 And again update-otp-for-oci.yaml 2021-09-03 15:48:28 +02:00
Philip Kuryloski 29830c7992 Again update-otp-for-oci.yaml 2021-09-03 15:45:37 +02:00
Philip Kuryloski 59e7da84f7 Additional updates for update-otp-for-oci.yaml workflow 2021-09-03 15:39:46 +02:00
Philip Kuryloski 7ef470590e Fixup update-otp-for-oci.yaml workflow
It would be nice to try this out on a branch, but the
'workflow_dispatch' trigger on github actions only works on master
2021-09-03 15:34:59 +02:00
Philip Kuryloski ef7bc79b70 Decouple the aws peer discovery workflow from the oci workflow 2021-09-03 15:20:08 +02:00
Philip Kuryloski 5f9c571cae Fixup use of yq in oci workflow 2021-09-03 15:08:23 +02:00
Philip Kuryloski b562b08db0 Add a workflow that will open PRs to bump otp_max patch version
in the OCI workflow
2021-09-03 14:58:58 +02:00
Philip Kuryloski 513a643e91
Merge pull request #3363 from rabbitmq/bazel-files-trigger-actions
Update Github Actions workflow triggering to include bazel build
2021-09-02 16:41:12 +02:00
Philip Kuryloski 3176d8b27a Update Github Actions workflow triggering to include bazel build 2021-09-02 15:15:17 +02:00
Arnaud Cogoluègnes 49bfc51782
Merge pull request #3360 from korsmakolnikov/patch-1
Fix store offset parameters
2021-09-02 09:21:02 +02:00
Federico Caprari 2246727428
Fix store offset parameters
As you can see 860333a088/deps/rabbitmq_stream_common/src/rabbit_stream_core.erl (L239)

There is the stream name and not the subscription id in this message.
2021-09-01 22:13:07 +02:00
Gerhard Lazu 6d374ec492
Revert "Match OCI latest supported Elixir version with rabbitmq_cli"
This reverts commit c74e920588.

The latest Elixir version is 1.12.2 🤦

Next time, read & follow the comments above 🚶

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-01 16:15:23 +01:00
Gerhard Lazu c74e920588
Match OCI latest supported Elixir version with rabbitmq_cli
cc @pjk25

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-01 16:12:03 +01:00
Gerhard Lazu e1486f36c4
Bump Erlang OTP to latest 24 version in OCI
We should have a GitHub Action for this (dependabot doesn't support it),
but this is still the simplest thing for now. It takes just a few
minutes, happens every few months, so we would be saving at most 1h per
year, which doesn't seem worth the effort.

cc @pjk25

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-01 16:09:27 +01:00
Gerhard Lazu bceccf5943
Limit when certain GitHub Actions workflows run
Rather than running these all the time, especially tests, we only want
to run them when files in specific paths change. cc @pjk25

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-01 16:05:48 +01:00
Jean-Sébastien Pédron 156cc36c37
Merge pull request #3323 from rabbitmq/set-xterm-titlebar-if-running-in-foreground
Set terminal titlebar to the node name & RabbitMQ version
2021-09-01 15:17:14 +02:00
Gerhard Lazu 09b92baced
Add release notes item to PR template checklist
Remove hard line breaks, otherwise the text of a new PR will start with
"weird looking" formatting.

cc @michaelklishin

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-01 12:53:48 +01:00
Gerhard Lazu f6c8356d2a
Add 3.9.6 release notes
I've missed adding notes to the release part of
https://github.com/rabbitmq/rabbitmq-server/pull/3340

I am going to add a new item to the PULL_REQUEST_TEMPLATE.md checklist
so that we get reminded about it next time.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-09-01 12:40:50 +01:00
Jean-Sébastien Pédron ef9eee8229
rabbit_boot_state: Fix style bug 2021-09-01 12:24:02 +02:00
Jean-Sébastien Pédron 409dc0e52a
rabbit_boot_state: Support Xterm titlebar update
With this change and if the RabbitMQ node is running on Unix and accepts
input, the titlebar of an Xterm-compatible terminal emulator will show a
few details about the running node. Specifically, it will indicate the
name of the node and the version of RabbitMQ.
2021-09-01 12:23:58 +02:00
Jean-Sébastien Pédron 6fa4cb824f
Merge pull request #3355 from rabbitmq/fix-feature-flag-name-cli-testsuite
rabbitmq_cli: Fix `maintenance_mode_status` feature flag name in testsuite
2021-09-01 12:10:57 +02:00
Jean-Sébastien Pédron b95d540669
rabbitmq_cli: Fix `maintenance_mode_status` feature flag name
... in testsuite.

This didn't really affect the testsuite because all feature flags are
enabled earlier if I understand correctly.
2021-09-01 11:30:48 +02:00
Jean-Sébastien Pédron 745e42ac0f
Merge pull request #3338 from rabbitmq/enable-single_line-logging-from-env-var
Logging: Add `single_line` flag support to $RABBITMQ_LOG
2021-09-01 11:27:57 +02:00
Arnaud Cogoluègnes 902fa429dd
Use awaitMatch to check global counters
Assertion fails on CI environment.
2021-09-01 09:51:06 +02:00
Jean-Sébastien Pédron 689c56cb04
Logging: Add `single_line` flag support to $RABBITMQ_LOG
A user could already enable single-line logging (the `single_line`
option of `logger_formatter` or RabbitMQ internal formatters) from the
configuration file. For example:

    log.console.formatter.single_line = on

With this patch, the option can be enabled from the `$RABBITMQ_LOG`
environment variable as well:

    make run-broker RABBITMQ_LOG=+single_line
2021-09-01 09:31:54 +02:00
Gerhard Lazu 2a35b1cc87
Merge pull request #3340 from rabbitmq/improve-stream-reader-metrics-cleanup
Improve stream reader metrics cleanup
2021-08-31 18:36:40 +01:00
Gerhard Lazu 6a1faa6fd6
Keep checking that replica recovered in rabbit_stream_queue
Rather than sleeping for 6 seconds, we want to check that replica
recovered multiple times within 30 seconds, and either eventually
succeed, or fail if this does not recover within 30 seconds, the default
await_condition time interval.

Pair: @kjnilsson

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-08-31 17:02:21 +01:00
Karl Nilsson c240ec2985
Fix function_clause error in stream reader
When the server initiate connection close.
2021-08-31 15:29:16 +01:00
Karl Nilsson c016567359
stream coordinator: further logging improvements
Also increased the tick timeout to avoid checking for new rabbit nodes
to auto add too often.

Also increased sleep times for nodedowns to retry less often.
2021-08-31 15:29:16 +01:00