Commit Graph

97 Commits

Author SHA1 Message Date
GitHub 817808b9ef Adopt otp 25.3.2 2023-05-06 03:05:31 +00:00
GitHub 13d5bb2329 Adopt otp 25.3.1 2023-04-28 03:14:13 +00:00
Rin Kuryloski 1844f71c7f Update the sha for otp 26 as used in the dev oci
it had been copied from 25.3 without an update
2023-04-26 10:58:41 +02:00
GitHub 1b8c4b258d Adopt elixir 1.14.4 2023-04-26 07:12:03 +00:00
Rin Kuryloski 09af4fdd25 Use rules_erlang 3.9.14 2023-04-25 16:15:36 +02:00
Rin Kuryloski 854d01d9a5 Restore the original -include_lib statements from before #6466
since this broke erlang_ls

requires rules_erlang 3.9.13
2023-04-20 12:40:45 +02:00
Rin Kuryloski 2bb0b42c85 Add OTP 26.0-rc3 config to bazel 2023-04-14 18:23:33 +02:00
Rin Kuryloski 42268d8c75 Use rules_erlang 3.9.12 which has the new plt attrs 2023-04-14 11:41:37 +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
Rin Kuryloski 6209180f80 Use pkg_files rules to avoid extra tars
in package-generic-unix and source_archive macros
2023-03-14 23:18:00 +01:00
Rin Kuryloski 3ebfa257e2 Add OTP 25.3 to the build and CI matrix as otp-max 2023-03-08 15:21:27 +01:00
Rin Kuryloski 778ee998a6 Further annotate test deps with new rules_erlang 3.9.9 features 2023-02-28 16:47:02 +01:00
GitHub 209a815af7 Adopt otp 25.2.3 2023-02-18 03:05:21 +00:00
Rin Kuryloski 2dc0236101 Regenerate bazel/BUILD.eetcd with the latest rules_erlang
`bazel run gazelle -- update-repos --verbose --build_files_dir=bazel
hex.pm/eetcd@0.3.6`

Related to #7196
2023-02-15 15:35:51 +01:00
Rin Kuryloski 8a7e43e11a enable maybe expression in all tests 2023-02-07 16:36:08 +01:00
Rin Kuryloski bdb2046185
Add rabbitmq_cli dialyze to bazel (#7066)
* Add rabbitmq_cli dialyze to bazel

and fix a number of warnings

Because we stop mix from recompiling rabbit_common in bazel, many
unknown functions are reported, so this dialyzer analysis is somewhat
incomplete.

* Use erlang dialyzer for rabbitmq_cli rather than mix dialyzer

Since this resolves all of the rabbit functions, there are far fewer
unknown functions.

Requires yet to be released rules_erlang 3.9.2

* Temporarily use pre-release rules_erlang

So that checks can run on this PR without a release

* Fix additional dialyzer warnings in rabbitmq_cli

* rabbitmq_cli: mix format

* Additional fixes for ignored return values

* Revert "Temporarily use pre-release rules_erlang"

This reverts commit c16b5b6815.

* Use rules_erlang 3.9.2
2023-01-31 15:05:52 +01:00
GitHub 463682242e Adopt otp 25.2.2 2023-01-31 03:06:46 +00:00
Rin Kuryloski 2c7b37d7af
Use gazelle for external erlang deps (#6935)
* Add gazelle for use with update-repos command

* Use explicit BUILD.app_name files for erlang app deps

This allows us to remove the duplicate definitions in
workspace_helpers.bzl

These files are generated with gazelle. For instance:
BUILD.ra is generated with `bazel run gazelle -- update-repos
--verbose --build_files_dir=bazel hex.pm/ra@2.4.6`

Running gazelle this way will modify the WORKSPACE file, as gazelle
does not yet support MODULE.bazel files. Such changes to the WORKSPACE
can be dropped, and should not be committed. It may also update the
`moduleindex.yaml` file. Changes to `moduleindex.yaml` should be
committed.

However
* skip the explicit bazel/BUILD.osiris file, as osiris already contains the file in its repo
* skip the explict BUILD.inet_tcp_proxy_dist file, since the repo already contains a bazel BUILD.bazel file
  gazelle command: `bazel run gazelle -- update-repos --verbose --build_files_dir=bazel
inet_tcp_proxy_dist=github.com/rabbitmq/inet_tcp_proxy@master`
* jose is imported with `bazel run gazelle -- update-repos --verbose --build_files_dir=bazel
jose=github.com/michaelklishin/erlang-jose@d63c1c5c8f9c1a4f1438e234b886de8607a0034e`

* Move the bats dep directly to WORKSPACE, drop workspace_helpers.bzl

* Use bzlmod in windows tests
2023-01-25 09:41:56 +01:00
GitHub 20ff35eef8 Adopt otp 25.1.2.1 2023-01-19 03:06:50 +00:00
GitHub 7a4a8db4b9 Adopt otp 25.2.1 2023-01-18 03:06:33 +00:00
Rin Kuryloski 2cd020a0da rules_erlang 3.9.0 compatibility
the elixir toolchain uses some private apis, and needed updating to
match internal changes in rules_erlang
2023-01-17 17:08:09 +01:00
Rin Kuryloski e799daa24e Use rules_erlang 3.8.5 2022-12-19 11:16:04 +01:00
Michal Kuratczyk d78b8b3a2a
Adopt OTP 25.2 2022-12-15 11:08:21 +01:00
Rin Kuryloski 27653f5130
Fix rules erlang version in WORKSPACE file
it did not match MODULE.bazel as it should
2022-12-14 14:12:13 +01:00
GitHub ea18d7f2a6 Adopt otp 25.1.2 2022-10-25 03:58:07 +00:00
Michael Klishin 9cae4b5d4b
Drop Elixir 1.12 toolchain
All currently supported series require 1.13+
2022-10-11 14:56:59 +04:00
GitHub c4109d7854 Adopt elixir 1.14.1 2022-10-11 03:50:18 +00:00
Rin Kuryloski 18bccf5873 Remove erlang 23 from bazel build 2022-10-10 09:30:29 +02:00
GitHub bdcb55f81b Adopt otp 24.3.4.6 2022-10-08 03:31:45 +00:00
GitHub b5ebd52e68 Adopt otp 25.1.1 2022-10-04 08:45:49 +00:00
Rin Kuryloski 702784ccd8 Use rules_erlang 3.7.2 2022-10-03 14:52:08 +02:00
Rin Kuryloski 71fd6a9978 Add otp 25.1 to //packaging/docker-image:rabbitmq 2022-10-03 10:37:52 +02:00
Rin Kuryloski 25c0eae13f Add erlang 25.1 to github actions 2022-09-30 09:21:56 +02:00
Rin Kuryloski ad043228f2 Fixup config drift causing the Windows Actions to fail 2022-09-29 11:54:06 +02:00
Rin Kuryloski 502730b32d Apply the @erlang_config pattern for elixir via the WORKSPACE
and use rules_erlang 3.7.0
2022-09-28 16:09:18 +02:00
Rin Kuryloski 6d35adc740 Fixup platform references for erlang git master nightly tests 2022-09-28 10:49:31 +02:00
GitHub 6671070d18 Adopt otp 24.3.4.5 2022-09-27 03:48:48 +00:00
Rin Kuryloski 8537d0428b Use rules_erlang 3.6.3
Use the new @erlang_config repo from rules_erlang 3.6+ for simplified
config and the elimiation of the need for --config=local
2022-09-19 16:43:10 +02:00
Rin Kuryloski 9017f76809 Add elixir 1.14 to bazel 2022-09-19 09:41:18 +02:00
GitHub 8c7e891767 Adopt otp 24.3.4.5 2022-09-14 03:51:53 +00:00
GitHub f2f14938c3 Adopt otp 24.3.4.4 2022-08-27 03:46:56 +00:00
Michael Klishin 2335e67381
Merge pull request #5624 from rabbitmq/bump-otp-25.0
Adopt otp 25.0.4
2022-08-23 13:44:19 +04:00
GitHub 4755010e3b Adopt otp 25.0.4 2022-08-23 07:59:44 +00:00
GitHub 9d65dc14c6 Adopt otp 24.3.4.3 2022-08-23 07:59:08 +00:00
Rin Kuryloski 242e068037 Add sha256s for otp source archives 2022-08-22 09:56:57 +02:00
Rin Kuryloski f8e141db63 Add a bazel based OCI image build to the oci.yaml workflow 2022-08-22 09:36:37 +02:00