Commit Graph

50864 Commits

Author SHA1 Message Date
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
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
Rin Kuryloski 8bb93c5529
Merge pull request #5009 from rabbitmq/update-build-matrix
Remove Erlang 25 from the build matrix for now
2022-06-09 13:23:50 +02:00
Philip Kuryloski 4674dcd5a4 Remove Erlang 25 from the build matrix for now
Federation suites fail consistently, though manual testing does not
show a problem. These changes can be reverted once the suites are
fixed.
2022-06-09 13:11:32 +02:00
dependabot[bot] c32f18ef17
Bump actions/cache from 3.0.2 to 3.0.4
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.2 to 3.0.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.2...v3.0.4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-08 18:40:46 +00:00
Michael Klishin 2841149778
Merge pull request #4990 from rabbitmq/remove-guid-if-not-needed
Delay generating a guid for basic_messages until it is needed
2022-06-08 22:03:06 +04:00
Karl Nilsson ead68d2079 Delay generating the basic_message id (guid)
until we know if it is needed or not.
2022-06-08 15:31:05 +01:00
Philip Kuryloski 105f017e85 Follow up to #4884 addressing some --config=local issues 2022-06-08 15:34:16 +02:00
Arnaud Cogoluègnes c821890945
Merge pull request #4991 from rabbitmq/osiris-78-call-hook-for-file-consult
Use rabbit_prelaunch_file:consult_file/1 for Osiris TLS replication configuration
2022-06-08 15:25:29 +02:00
Rin Kuryloski a86e3100e4
Merge pull request #4884 from rabbitmq/use-rules_erlang-3
Use rules_erlang 3
2022-06-08 14:39:27 +02:00
Philip Kuryloski 0237fba515 Use rules_erlang 3.1.0
From github directly, until
https://github.com/bazelbuild/bazel-central-registry/pull/96 is merged
2022-06-08 14:12:21 +02:00
Philip Kuryloski 0b676e925f Again bump rules_erlang 2022-06-08 14:04:59 +02:00
Philip Kuryloski 712c2cebe6 Avoid building dialyzer files on the mixed-version actions workflow
Dialyzer is already run in the test.yaml workflow, so this just
eliminates unnecessary duplication
2022-06-08 14:04:59 +02:00
Philip Kuryloski c187406e33 Use rules_erlang main branch
now that some outstanding PRs have been merged
2022-06-08 14:04:59 +02:00
Philip Kuryloski 51f06d00e4 Restore some additional erlang versions to the build matrix 2022-06-08 14:04:59 +02:00
Philip Kuryloski f1da8c0e85 Use Elixir 1.12 with Erlang 24 in CI 2022-06-08 14:04:59 +02:00
Philip Kuryloski 327f075d57 Make rabbitmq-server work with rules_erlang 3
Also rework elixir dependency handling, so we no longer rely on mix to
fetch the rabbitmq_cli deps

Also:

- Specify ra version with a commit rather than a branch
- Fixup compilation options for erlang 23
- Add missing ra reference in MODULE.bazel
- Add missing flag in oci.yaml
- Reduce bazel rbe jobs to try to save memory
- Use bazel built erlang for erlang git master tests
- Use the same cache for all the workflows but windows
- Avoid using `mix local.hex --force` in elixir rules
  - Fetching seems blocked in CI, and this should reduce hex api usage in
    all builds, which is always nice
- Remove xref and dialyze tags since rules_erlang 3 includes them in
  the defaults
2022-06-08 14:04:53 +02:00
Philip Kuryloski f0b0a4f908 Add extra info for oci actions workflow
in preparation for #4884
2022-06-08 13:42:35 +02:00
Michael Klishin 5942990706
Merge pull request #4992 from rabbitmq/dependabot/github_actions/master/actions/cache-3.0.4 2022-06-08 01:28:25 +04:00
dependabot[bot] 137901e476
Bump actions/cache from 3.0.3 to 3.0.4
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-07 19:43:01 +00:00
Arnaud Cogoluègnes 2d8b7c9dd5
Use rabbit_prelaunch_file:consult_file/1 for Osiris TLS replication configuration
Instead of file:consult/1, which does not support parsing function definition.

References rabbitmq/osiris#78
2022-06-07 14:55:05 +02:00
Michael Klishin 744100ed2f
Merge pull request #4932 from rabbitmq/osiris-78
Add custom consult code to rabbit_prelaunch_file module
2022-06-07 07:23:18 +04:00
Michael Klishin 0b3946e5af
AMQP 1.0: correct log message formatting 2022-06-06 23:47:37 +04:00
Michael Klishin b83e7cc87e
Merge pull request #4982 from rabbitmq/mk-amqp1_0-connection-event-logging 2022-06-06 19:12:27 +04:00
Michael Klishin c882440d36
Log two more connection lifecycle events for AMQP 1.0 clients 2022-06-06 18:12:32 +04:00
Luke Bakken b172bca19b
Add rabbit_consult module
This will be used to fix rabbitmq/osiris#78

If a RabbitMQ `advanced.config` file contains the following:

```
{customize_hostname_check, [
    {match_fun, public_key:pkix_verify_hostname_match_fun(https)}
]}
```

...`file:consult/1` will fail because it does not evaluate terms in the
file.

The code in `rabbit_consult` was copied from this OTP module:

https://github.com/erlang/otp/blob/master/lib/ssl/src/ssl_dist_sup.erl

...and then modified for our use.

Add Bazel suite

Use the same license as Erlang/OTP, add link to source cc @dumbbell

Add test and ensure value returned matches file:consult/1

Add test data file

Ensure that Funs are converted to binaries before jsx:encode is called

Add a check that customize_hostname_check can be JSON encoded

Ensure that customize_hostname_check and match_fun are filtered out from listener data
2022-06-05 06:13:49 -07:00
Michael Klishin 727fe6ca4e
Update CLI build requirements to match our pipelines 2022-06-05 16:36:53 +04:00
Michael Klishin 09f125bed3
Bump Elixir versions used by Actions workflows 2022-06-05 16:06:27 +04:00
Michael Klishin b5ddd15523
Merge pull request #4968 from rabbitmq/dependabot/github_actions/master/peter-evans/create-pull-request-4.0.4 2022-06-03 22:43:29 +04:00
dependabot[bot] 480986df3e
Bump peter-evans/create-pull-request from 4.0.3 to 4.0.4
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v4.0.3...v4.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 18:38:40 +00:00
Michael Klishin c675d8e5b4
Merge pull request #4962 from rabbitmq/rabbitmq-server-4926-take-2
Remove duplicate call to rabbit_exchange_decorator:set/1
2022-06-03 12:03:01 +04:00
Michael Klishin 7ae8e8a0b3
Remove duplicate call to rabbit_exchange_decorator:set/1
Same as #4926 by @gomoripeti which fails for no apparent reason
on BuildBuddy.
2022-06-03 11:18:56 +04:00
Philip Kuryloski 018a28de2b Run the aws peer discovery integration tests manually only
These often flag when triggered by release branchs, despite no changes
being made to the plugin
2022-06-02 14:51:33 +02:00
Michael Klishin 5777dc9d44
Merge pull request #4955 from rabbitmq/switch-from-python-to-python3 2022-06-02 13:37:15 +04:00
Rin Kuryloski 3bab7fe3c2
Merge pull request #4929 from rabbitmq/loic-xref
Update Erlang.mk and switch to new xref code
2022-06-02 11:01:17 +02:00
Philip Kuryloski b24ab46a1a Switch the default python binary for codegen scripts to python3 2022-06-02 10:58:42 +02:00
Michael Klishin aef3741000
3.10.5 release notes update 2022-06-01 22:11:05 +04:00
Karl Nilsson 9383f9aff6
Merge pull request #4947 from rabbitmq/gh-4940
Fix quorum queue crash when reject with requeue followed by dead-letter
2022-06-01 17:09:34 +01:00
David Ansari cd2f5e0694 Avoid code duplication 2022-06-01 15:54:01 +00:00
Karl Nilsson 884566b50c
Merge pull request #4928 from rabbitmq/seshat_0_2_0
Seshat 0.3.2
2022-06-01 16:18:47 +01:00
Michael Klishin b9e35308f4
3.8.34 release notes 2022-06-01 18:44:11 +04:00
Michael Klishin f99468045f
3.9.20 release notes 2022-06-01 18:42:58 +04:00
Michael Klishin cec05e956b
3.10.5 release notes 2022-06-01 18:42:22 +04:00
David Ansari e26dd85a18 Fix quorum queue crash when reject with requeue followed by dead-letter
Prior to this commit, for at-most-once and at-least-once dead lettering
a quorum queue crashed if:
1. no delivery-limit set (causing Ra #requeue{} instead of #enqueue{} command
when message gets requeued)
2. message got rejected with requeue = true
3. requeued message got dead lettered

Fixes #4940
2022-06-01 13:53:19 +00:00
Karl Nilsson 140441740d Switch osiris back to main 2022-06-01 13:47:23 +01:00
Karl Nilsson 0a1afe35f4 Replace uses of osiris_counters:overview/0 with overview/1
Where applicable to avoid a full ETS table read just to get the counter
for a single key

Seshat 0.3.2
2022-06-01 13:47:20 +01:00
Michael Klishin b061af1128
3.9.20 release notes stub 2022-06-01 15:21:50 +04:00
Michael Klishin 7a6e9f7a4b
Update Osiris ref in workspace_helpers.bzl #4941 2022-06-01 15:13:47 +04:00