diff --git a/modules/rabbitmq_ra/2.7.0-pre.3/MODULE.bazel b/modules/rabbitmq_ra/2.7.0-pre.3/MODULE.bazel new file mode 100644 index 00000000000..6f086d2abb8 --- /dev/null +++ b/modules/rabbitmq_ra/2.7.0-pre.3/MODULE.bazel @@ -0,0 +1,103 @@ +module( + name = "rabbitmq_ra", + version = "2.7.0-pre.3", +) + +bazel_dep( + name = "rules_erlang", + version = "3.11.4", +) + +bazel_dep( + name = "rabbitmq_seshat", + version = "0.6.1", + repo_name = "seshat", +) + +erlang_config = use_extension( + "@rules_erlang//bzlmod:extensions.bzl", + "erlang_config", + dev_dependency = True, +) + +erlang_config.internal_erlang_from_github_release( + name = "24", + sha256 = "8444ff9abe23aea268adbb95463561fc222c965052d35d7c950b17be01c3ad82", + version = "24.3.4.6", +) + +erlang_config.internal_erlang_from_github_release( + name = "25", + sha256 = "42840c32e13a27bdb2c376d69aa22466513d441bfe5eb882de23baf8218308d3", + version = "25.1.1", +) + +erlang_config.internal_erlang_from_github_release( + name = "26", + sha256 = "3ff3c53d7ef9a45b5720e95b8756269c1a1b58eb51accc992ca97522fdb234d4", + version = "26.0", +) + +use_repo( + erlang_config, + "erlang_config", +) + +erlang_package = use_extension( + "@rules_erlang//bzlmod:extensions.bzl", + "erlang_package", +) + +erlang_package.hex_package( + name = "aten", + version = "0.5.8", + sha256 = "64d40a8cf0ddfea4e13af00b7327f0925147f83612d0627d9506cbffe90c13ef", +) + +erlang_package.hex_package( + name = "gen_batch_server", + sha256 = "94a49a528486298b009d2a1b452132c0a0d68b3e89d17d3764cb1ec879b7557a", + version = "0.8.7", +) + +erlang_package.git_package( + name = "inet_tcp_proxy_dist", + repository = "rabbitmq/inet_tcp_proxy", + branch = "master", +) + +erlang_package.git_package( + repository = "eproxus/meck", + branch = "master", +) + +erlang_package.git_package( + repository = "manopapad/proper", + branch = "master", +) + +use_repo( + erlang_package, + "aten", + "gen_batch_server", + "inet_tcp_proxy_dist", + "meck", + "proper", +) + +erlang_dev_package = use_extension( + "@rules_erlang//bzlmod:extensions.bzl", + "erlang_package", + dev_dependency = True, +) + +erlang_package.hex_package( + name = "eunit_formatters", + version = "0.5.0", + build_file = "@rabbitmq_ra//bzl:BUILD.eunit_formatters", +) + +use_repo( + erlang_dev_package, + "eunit_formatters", +) diff --git a/modules/rabbitmq_ra/2.7.0-pre.3/presubmit.yml b/modules/rabbitmq_ra/2.7.0-pre.3/presubmit.yml new file mode 100644 index 00000000000..62faa2b59d4 --- /dev/null +++ b/modules/rabbitmq_ra/2.7.0-pre.3/presubmit.yml @@ -0,0 +1,27 @@ +shell_commands: &shell_commands +- curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl +- chmod a+x kerl +- ./kerl update releases +- ./kerl build ${ERLANG_VERSION} +- ./kerl install ${ERLANG_VERSION} ~/kerl/${ERLANG_VERSION} +- realpath ~/kerl/${ERLANG_VERSION} + +platforms: + macos: + environment: + ERLANG_VERSION: "25.0" + ERLANG_HOME: /Users/buildkite/kerl/25.0 + shell_commands: *shell_commands + build_flags: + - --incompatible_strict_action_env + build_targets: + - '@rabbitmq_ra//:erlang_app' + ubuntu2004: + environment: + ERLANG_VERSION: "25.0" + ERLANG_HOME: /var/lib/buildkite-agent/kerl/25.0 + shell_commands: *shell_commands + build_flags: + - --incompatible_strict_action_env + build_targets: + - '@rabbitmq_ra//:erlang_app' diff --git a/modules/rabbitmq_ra/2.7.0-pre.3/source.json b/modules/rabbitmq_ra/2.7.0-pre.3/source.json new file mode 100644 index 00000000000..3eab38f7150 --- /dev/null +++ b/modules/rabbitmq_ra/2.7.0-pre.3/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-gKoJSgWaS2irbIaDxVhtr2ZZQuug90jXyzIfCJxLoF4=", + "strip_prefix": "ra-2.7.0-pre.3", + "url": "https://github.com/rabbitmq/ra/releases/download/v2.7.0-pre.3/ra-2.7.0-pre.3.tar.gz" +} diff --git a/modules/rabbitmq_ra/metadata.json b/modules/rabbitmq_ra/metadata.json index be23c7dc1c9..19f6a07866d 100644 --- a/modules/rabbitmq_ra/metadata.json +++ b/modules/rabbitmq_ra/metadata.json @@ -16,7 +16,8 @@ "github:rabbitmq/ra" ], "versions": [ - "2.6.2" + "2.6.2", + "2.7.0-pre.3" ], "yanked_versions": {} -} \ No newline at end of file +}