Commit Graph

756 Commits

Author SHA1 Message Date
Michael Klishin a02db1eaab Try a very minimalistic discussion form 2024-09-11 18:49:50 -04:00
Michael Klishin 40ce44f83b Try a discussion template [1]
Discussions without any relevant details remain
a fairly common problem. Our small team cannot
afford to justify why we need e.g. RabbitMQ
version information and deployment details
every single time.

If someone is looking for free help from the core
team, they must provide essential details to
save everyone some time, or they can go seek
RabbitMQ help elsewhere.

1. https://docs.github.com/en/discussions/managing-discussions-for-your-community/syntax-for-discussion-category-forms
2024-09-11 18:24:56 -04:00
dependabot[bot] 99310f7478
build(deps): bump peter-evans/create-pull-request from 7.0.0 to 7.0.1
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v7.0.0...v7.0.1)

---
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>
2024-09-05 18:47:11 +00:00
Michael Klishin 654fb75821
Merge pull request #12198 from rabbitmq/move-selenium-to-root
Move selenium to root
2024-09-04 11:53:55 -04:00
Michael Klishin 7323abc946
Merge pull request #12165 from rabbitmq/run-selenium-on-cluster
Run Selenium suites against a cluster of nodes
2024-09-04 11:14:03 -04:00
Marcial Rosales a1206dc801 Move selenium to the root of the repo 2024-09-04 14:59:58 +01:00
Marcial Rosales 77b63d6799 Run selenium test suite against 3-node cluster 2024-09-04 10:06:54 +01:00
dependabot[bot] f6846e1d01
Bump peter-evans/create-pull-request from 6.1.0 to 7.0.0
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.1.0 to 7.0.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.1.0...v7.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-03 18:24:43 +00:00
Michal Kuratczyk 301424235c
Update .NET to 8.0 2024-08-30 08:42:53 +02:00
Michael Klishin 733ec1ec23 Sync google-github-actions/auth version in workflow files
(cherry picked from commit a627c2c043)
2024-08-21 15:17:56 -04:00
dependabot[bot] 11bad7b7c5
Bump google-github-actions/auth from 2.1.4 to 2.1.5
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 2.1.4 to 2.1.5.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.4...v2.1.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 18:34:42 +00:00
Michael Klishin f0f2ed44df gmake .github/workflows/test.yaml, gmake .github/workflows/test-mixed-versions.yaml 2024-08-08 01:42:48 -04:00
Michael Klishin 7634ce9a87 Update workflows 2024-08-08 01:38:09 -04:00
Michael Klishin bec3dcb111 Workflows: update google-github-actions/auth version in the templates 2024-08-06 16:38:08 -04:00
dependabot[bot] 93059acf32
Bump google-github-actions/auth from 2.1.3 to 2.1.4
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.3...v2.1.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-06 18:22:09 +00:00
Michael Klishin 40903581ef Bump version to 4.0 in a few places 2024-07-19 01:21:30 -04:00
Michael Klishin e6da989e00 Mergify: re-introduce multi-branch backports
to both v4.0.x and v3.13.x at the moment.
2024-07-19 01:04:04 -04:00
Michael Klishin 6eebb20581 gazelle-scheduled.yaml: Drop 3.11.x and 3.10.x, add 3.13.x and 4.0.x 2024-07-11 22:13:38 -04:00
Michael Klishin 4f4e62cf1a dependabot.yaml: drop 3.11.x, add 3.13.x and 4.0.x 2024-07-11 22:11:52 -04:00
Michael Klishin 599727ab22 Revisit Mergify settings
* Add v4.0.x
 * Drop more complex workflows/backport rules we
   do not really use in practice
2024-07-11 10:01:19 -04:00
Michael Davis e08310ab13
CI: Turn off mixed version tests running Khepri
Khepri is experimental and not guaranteed to be upgradable. We should
re-enable mixed version testing as Khepri stabilizes but for now we
should turn it off.

This saves some CI time and avoids some failures that will be introduced
when we upgrade Khepri to v0.14.0.
2024-07-10 13:45:09 -04:00
Michal Kuratczyk e5ca8bd6b7
Rename image to avoid conflicts
Right now when we push the ARM64 image, it overwrites the x86 image.
2024-07-08 12:31:34 +02:00
Michal Kuratczyk d2b49454f6
Separate workflow for building ARM64 OCI on main 2024-07-08 10:36:38 +02:00
Michal Kuratczyk a23196925b
Diable ARM64 OCI (#11624) 2024-07-05 13:47:10 +02:00
Michal Kuratczyk 342702dce0
Use GHA cache for OCI; reenable ARM (#11620) 2024-07-04 18:39:20 +02:00
Michal Kuratczyk 1ebb868810
Don't build ARM64 OCI (#11609)
These are built on x86 runners in CPU emulation mode, which is very slow
(over an hour to build the image, instead of minutes). It'd be nice to have
these back at some point but for now - they are blocking the publication of
amd64 images
2024-07-03 17:19:33 +02:00
Michael Davis f52a7d3cd5
CI: Regenerate test-mixed-versions workflow
These changes are generated by 'make actions-workflows'. The change to
the template that causes the diff is in the parent commit - adding a
suffixed of "-mixed" to the job names.
2024-07-01 14:21:29 -04:00
Michael Davis 1102cdc1ea
CI: Add '-mixed' suffix to mixed-version job names
Without the suffix it's hard to tell apart regular and mixed version
workflows by name. Currently you need to go into the "Set up job" step
or look at the bazelisk cquery. Changing the names should have no
functional change - it's just easier to tell the jobs apart in the
GitHub UI.

This commit only updates the template. The child commit will regenerate
the workflow file via 'make actions-workflows'.
2024-07-01 14:21:25 -04:00
Michael Davis 0f7160e18b
CI: Use 'test-plugin-mixed.yaml' for CLI tests in mixed version template
This appears to be an oversight when creating the mixed version
template: the CLI should use the mixed version workflow template rather
than the regular plugin workflow.
2024-07-01 14:17:22 -04:00
Karl Nilsson ef7de9cbcc Actions: use a secondary cache bucket for mixed versions tests.
To hopefully reduce the amount of write limiting seen in ci.
2024-06-25 17:01:55 +01:00
Michael Klishin 806efd8c65
Merge pull request #11468 from rabbitmq/dependabot/github_actions/main/docker/build-push-action-6
build(deps): bump docker/build-push-action from 5 to 6
2024-06-19 13:21:12 -04:00
Rin Kuryloski 71fa6e3d31
Merge pull request #11478 from rabbitmq/more-turn-off-buildbuddy
Remove remaining buildbuddy usage
2024-06-19 12:47:34 +02:00
Rin Kuryloski b59da95c2d
Merge pull request #11456 from rabbitmq/rin/rules_elixir
Use rules_elixir for rabbitmqctl
2024-06-19 10:57:41 +02:00
dependabot[bot] b50f2ce991
build(deps): bump peter-evans/create-pull-request from 6.0.5 to 6.1.0
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.0.5 to 6.1.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.0.5...v6.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 19:00:10 +00:00
Rin Kuryloski a2709dfd05 Remove remaining buildbuddy usage 2024-06-18 15:13:03 +02:00
Rin Kuryloski f2add661f4 Check that the cli can compile with --warnings-as-errors in ci
It's technically a build target, so we didn't need to create a whole
new test rule, but it's marked as "manual" so that it doesn't cause
bazel build //... to fail
2024-06-18 14:50:35 +02:00
Rin Kuryloski b5b7605219 Maybe reduce cache errors
- https://bazel.build/reference/command-line-reference#flag--experimental_guard_against_concurrent_changes
2024-06-18 12:06:29 +02:00
dependabot[bot] c3b0cd884c
build(deps): bump docker/build-push-action from 5 to 6
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 18:26:22 +00:00
Marcial Rosales 14bf2bb0c1 Remove branch and add paths on PRs 2024-06-13 11:30:34 +02:00
Marcial Rosales fe304d4447 Add workflow that builds ibm mq docker image 2024-06-13 11:30:34 +02:00
Karl Nilsson 5a94049496 Add alt mirror for setup-beam action.
As the primary mirror may sometimes fail there is now a fall back.
2024-06-12 15:34:52 +01:00
Michael Klishin d109430a42 Bump google-github-actions/auth here 2024-06-06 21:51:43 -04:00
Michael Klishin 2b397246dc
Merge pull request #11402 from rabbitmq/rin/add-back-cli-tests-to-ci
Add back rabbitmq_cli tests to CI
2024-06-06 18:14:35 -04:00
dependabot[bot] 06eb76ec2d
Bump google-github-actions/auth from 2.1.2 to 2.1.3
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google-github-actions/auth/compare/v2.1.2...v2.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-06 18:47:44 +00:00
Rin Kuryloski bdd18ed800 Add back rabbitmq_cli tests to CI
Accidentally left out of #11343
2024-06-06 19:48:23 +02:00
Rin Kuryloski a6874e39cc
Turn off BuildBuddy integration (#11343)
Builds now execute on the github actions workers, using Google Cloud Storage (GCS) as a cache
2024-06-06 11:37:10 +02:00
Rin Kuryloski b2bd7a33a2 Setup erlang for the gazelle workflow
It must have been removed from the default actions image
2024-05-17 11:21:42 +02:00
Michael Klishin 6465b4a409
Merge pull request #11129 from rabbitmq/md/ci/bump-runner
CI: Bump actions runner to Ubuntu 22.04
2024-05-01 12:08:56 -04:00
Michael Klishin b7a7b0f429 Update current GitHub issue and PR templates
In the future we should follow [1] to add
a more focussed form.

1. https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository
2024-05-01 11:55:12 -04:00
Michael Davis 6f163592f7
CI: Bump actions runner to Ubuntu 22.04 2024-05-01 11:47:57 -04:00
dependabot[bot] db4e7a6ea7
Bump peter-evans/create-pull-request from 6.0.4 to 6.0.5
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.0.4 to 6.0.5.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.0.4...v6.0.5)

---
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>
2024-04-25 18:40:55 +00:00
Rin Kuryloski 07c97580bd Make the OCI workflows conditional on push access
When dependabot creates PRs, secrets are not injected, and the OCI
workflow can't push the image
2024-04-23 13:23:22 +02:00
David Ansari 6e056e5701 Fix failing test
Fix the failing GitHub action Test Authentication/Authorization backends
via mutiple messaging protocols / selenium originally caused by #11023
2024-04-22 17:51:02 +02:00
Rin Kuryloski 82f001cea6 Set the PROJECT_VERSION to 4.0.0 to match the bazel behavior
in the OCI workflow
2024-04-22 15:45:54 +02:00
dependabot[bot] b2f58075a9
Bump docker/metadata-action from 4 to 5
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4 to 5.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 18:25:56 +00:00
Rin Kuryloski 4e720d7fe1
Use make for OCI workflow (#11042)
* Use make instead of bazel for the OCI workflow
2024-04-19 20:05:24 +02:00
dependabot[bot] ff6678f4b8
Bump actions/upload-artifact from 4.3.1 to 4.3.2
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.3.1...v4.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-18 18:06:19 +00:00
dependabot[bot] 89673aa33a
Bump peter-evans/create-pull-request from 6.0.3 to 6.0.4
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.0.3...v6.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>
2024-04-17 18:45:23 +00:00
dependabot[bot] 583db619ad
Bump peter-evans/create-pull-request from 6.0.2 to 6.0.3
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.0.2...v6.0.3)

---
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>
2024-04-12 18:47:40 +00:00
Rin Kuryloski 2efc3114e7 Use the modern auth for ghcr within actions
https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-docker-hub-and-github-packages
2024-04-12 14:31:20 +02:00
Jean-Sébastien Pédron 2ae6e79bb3 GitHub Actions: Add GHCR login step to `test-{authnz,selenium}.yaml` workflows
[Why]
Both workflows build and publish docker images but they currently fail
to publish them because of a permission denied.

[How]
This patch replicates (copy-pastes) what was done to the `oci.yaml`
workflow.
2024-04-12 14:31:20 +02:00
Rin Kuryloski 1581f7e26b
Merge pull request #10941 from rabbitmq/rin/oci-always-push
Always use GHCR when building the docker image
2024-04-09 14:56:57 +02:00
dependabot[bot] f4acb823de
Bump docker/login-action from 1 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08 18:37:47 +00:00
Rin Kuryloski 09f2190606 Always use GHCR when building the docker image
when splitting the image, depending on the platform, docker buildx
cannot always see the imported image. So, we'll just push to GHCR
always. Members of the rabbitmq github org can log into GHCR, and be
able to perform local builds of the image
2024-04-08 18:12:00 +02:00
Rin Kuryloski 9b4486ac0f
Split the docker image to improve caching (#10924)
* Split the docker image to improve caching
2024-04-08 16:01:28 +02:00
dependabot[bot] c695dc593f
Bump lewagon/wait-on-check-action from 1.3.3 to 1.3.4
Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/lewagon/wait-on-check-action/releases)
- [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.3.3...v1.3.4)

---
updated-dependencies:
- dependency-name: lewagon/wait-on-check-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-04 18:44:49 +00:00
Rin Kuryloski c9ab302e79
Remove rules_docker in favor of rules_oci (#10869)
Local builds of images are extremely slow, but buildbuddy runners
don't have the emulator available
2024-04-02 19:04:38 +02:00
Rin Kuryloski 6531bb45b9
Merge pull request #10849 from rabbitmq/rin/windows-no_focus_no_shard
Use rules_erlang 3.15.1
2024-03-27 15:45:04 +01:00
Rin Kuryloski d59e843540
Update OTP version bump automation (#10857)
* Update OTP version bump automation

Use the newer method of updating WORKSPACE files that does not reorder
all the load statements

* Buildozer exits with status 3 if it makes no change
2024-03-27 11:17:36 +01:00
Rin Kuryloski 86211f240a Cache more artifacts from the windows build
for debugging purposes
2024-03-26 17:46:10 +01:00
Rin Kuryloski d4b86e71cb Add v3.13.x to the bazel/make equivalence check 2024-03-26 13:26:13 +01:00
dependabot[bot] 9463d05eb1
Bump actions/cache from 4.0.1 to 4.0.2
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.1 to 4.0.2.
- [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/v4.0.1...v4.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 18:38:47 +00:00
Rin Kuryloski a74ddcc1cd Use the new save-always flag on the cache action
Since bazel does not cache the failures, this is desirable
2024-03-14 10:16:51 +01:00
Rin Kuryloski 0510f450fc Actions, Mergify: 3.13 is in, 3.10, 3.9 are out
(cherry picked from commit f936919cc0)
2024-03-13 11:28:29 +01:00
Rin Kuryloski 8d1ecacb02 Update mergify for v3.13.x branch
The way this was done
1. find replace "v3.12.x" with "v3.13.x"
2. find replace "v3.11.x" with "v3.12.x"
3. find replace "v3.10.x" with "v3.11.x"
4. find replace "v3.9.x" with "v3.10.x"

"v3.10.x" was left in for simplicity, in case we need a 4 branch
cascade again
2024-03-13 11:19:31 +01:00
Rin Kuryloski c51195d4c9 Revert "Actions, Mergify: 3.13 is in, 3.10, 3.9 are out"
This reverts commit f936919cc0.
2024-03-13 11:14:42 +01:00
dependabot[bot] 8a9eaac503
Bump peter-evans/create-pull-request from 6.0.1 to 6.0.2
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.0.1...v6.0.2)

---
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>
2024-03-12 18:47:34 +00:00
dependabot[bot] 22d30dbdc8
Bump actions/cache from 4.0.0 to 4.0.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.0 to 4.0.1.
- [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/v4.0.0...v4.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-01 18:03:54 +00:00
dependabot[bot] 52d661e096
Bump peter-evans/create-pull-request from 6.0.0 to 6.0.1
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.0.0...v6.0.1)

---
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>
2024-02-28 18:29:05 +00:00
Michael Klishin f936919cc0 Actions, Mergify: 3.13 is in, 3.10, 3.9 are out 2024-02-24 20:06:19 -05:00
Marcial Rosales 09ca2f69ea Rename workflow 2024-02-10 20:12:12 +01:00
dependabot[bot] c9aaf42aef
build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.3.0...v4.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-06 18:28:18 +00:00
dependabot[bot] 1901811ff8
build(deps): bump peter-evans/create-pull-request from 5.0.2 to 6.0.0
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v5.0.2...v6.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 18:38:24 +00:00
dependabot[bot] be4b00e8e8
build(deps): bump actions/upload-artifact from 4.2.0 to 4.3.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 18:29:12 +00:00
dependabot[bot] 42143f9e41
build(deps): bump actions/upload-artifact from 4.1.0 to 4.2.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 18:38:29 +00:00
dependabot[bot] 5d1664504f
build(deps): bump actions/cache from 3.3.3 to 4.0.0
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.3 to 4.0.0.
- [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.3.3...v4.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-17 18:11:05 +00:00
dependabot[bot] 26e4eb68fa
build(deps): bump actions/upload-artifact from 4.0.0 to 4.1.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-12 18:02:19 +00:00
Michael Klishin f23e2bdd74
Merge pull request #10323 from rabbitmq/dependabot/github_actions/main/erlef/setup-beam-1.17
build(deps): bump erlef/setup-beam from 1.16 to 1.17
2024-01-11 13:11:44 -05:00
dependabot[bot] 80b0f9c0b6
build(deps): bump erlef/setup-beam from 1.16 to 1.17
Bumps [erlef/setup-beam](https://github.com/erlef/setup-beam) from 1.16 to 1.17.
- [Release notes](https://github.com/erlef/setup-beam/releases)
- [Commits](https://github.com/erlef/setup-beam/compare/v1.16...v1.17)

---
updated-dependencies:
- dependency-name: erlef/setup-beam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 18:09:20 +00:00
dependabot[bot] dd3fb30078
build(deps): bump actions/cache from 3.3.2 to 3.3.3
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.2 to 3.3.3.
- [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.3.2...v3.3.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 18:09:16 +00:00
Michal Kuratczyk 8d2657ef2f Adopt OTP 26.2.1 2024-01-09 10:14:08 +01:00
Marcial Rosales 90db360e6b Trigger workflow that run authnz-messaging suite
when either the suite, or the test changes
2023-12-27 14:08:08 +00:00
Michael Klishin 5af5f0cf3d
Selenium: update run-suites.sh argument to match #10200 2023-12-23 20:33:21 -05:00
Michael Klishin f39570cc73
GHA Erlang/OTP updates: keep both 26.2 and 26.1 2023-12-22 01:44:11 -05:00
Michael Klishin a75bee72ee
GHA: use Erlang 26.2.x 2023-12-22 01:41:29 -05:00
Michael Klishin 05ed950806
Do not bump Erlang versions for v3.10.x 2023-12-21 23:23:46 -05:00
dependabot[bot] 89114dd65e
build(deps): bump lewagon/wait-on-check-action from 1.3.1 to 1.3.3
Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.3.1 to 1.3.3.
- [Release notes](https://github.com/lewagon/wait-on-check-action/releases)
- [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.3.1...v1.3.3)

---
updated-dependencies:
- dependency-name: lewagon/wait-on-check-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-21 18:53:07 +00:00
Michael Klishin f4bf4fe1d1
Merge pull request #10152 from rabbitmq/dependabot/github_actions/main/actions/download-artifact-4
build(deps): bump actions/download-artifact from 3 to 4
2023-12-14 13:56:07 -05:00
dependabot[bot] 9b3475f5e5
build(deps): bump actions/download-artifact from 3 to 4
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-14 18:49:18 +00:00
dependabot[bot] 8ceeaba9d9
build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.3 to 4.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.3...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-14 18:49:13 +00:00
Michael Klishin 9d944390f3
Disable Dependabot for older branches
3.8, 3.9 and 3.10 (which goes EOL in less than three weeks)
2023-12-14 13:48:46 -05:00
Michael Davis a12ea5fdd9
CI: Use 'bazel cquery' to find OCI tests
Bazel 7 can't seem to resolve Osiris 1.7.1 when running this query using
'bazel query':

    ERROR: Error computing the main repository mapping: in module dependency chain <root> -> rabbitmq_osiris@1.7.1: module not found in registries: rabbitmq_osiris@1.7.1

Switching to cquery resolves the tests correctly. It also prints the
configuration hashes per case which we need to cut off with awk.
2023-12-12 11:44:32 -05:00
Jean-Sébastien Pédron b3dac51df1
GitHub Actions: Convert '_' to '-' in $AWS_ECS_CLUSTER_NAME
[Why]
The AWS ECS cluster name must match the regex `[a-zA-Z][-a-zA-Z0-9]*`.
Underscores are forbidden.

[How]
Like '.' was converted, we convert '_' to '.' using Bash parameter
expansion.
2023-12-01 15:32:29 +01:00
Rin Kuryloski 9837a5486e Match the workflow triggering to oci.yaml
But also add a concurrency group to serialize runs
2023-11-30 15:21:02 +01:00
Rin Kuryloski 8905346959 sync otp_version_id across oci.yaml and rabbitmq_peer_discovery_aws.yaml 2023-11-30 15:06:21 +01:00
Michael Klishin e9958e92b6 Workflows: use Erlang 26 as 25.3 is no longer supported 2023-10-25 22:53:57 -04:00
Michael Klishin 680c36d509 Require Erlang/OTP 26.0 (ERTS 14.0) 2023-10-25 22:53:57 -04:00
Diana Parra Corbacho 5f0981c5a3
Allow to use Khepri database to store metadata instead of Mnesia
[Why]

Mnesia is a very powerful and convenient tool for Erlang applications:
it is a persistent disc-based database, it handles replication accross
multiple Erlang nodes and it is available out-of-the-box from the
Erlang/OTP distribution. RabbitMQ relies on Mnesia to manage all its
metadata:

* virtual hosts' properties
* intenal users
* queue, exchange and binding declarations (not queues data)
* runtime parameters and policies
* ...

Unfortunately Mnesia makes it difficult to handle network partition and,
as a consequence, the merge conflicts between Erlang nodes once the
network partition is resolved. RabbitMQ provides several partition
handling strategies but they are not bullet-proof. Users still hit
situations where it is a pain to repair a cluster following a network
partition.

[How]

@kjnilsson created Ra [1], a Raft consensus library that RabbitMQ
already uses successfully to implement quorum queues and streams for
instance. Those queues do not suffer from network partitions.

We created Khepri [2], a new persistent and replicated database engine
based on Ra and we want to use it in place of Mnesia in RabbitMQ to
solve the problems with network partitions.

This patch integrates Khepri as an experimental feature. When enabled,
RabbitMQ will store all its metadata in Khepri instead of Mnesia.

This change comes with behavior changes. While Khepri remains disabled,
you should see no changes to the behavior of RabbitMQ. If there are
changes, it is a bug. After Khepri is enabled, there are significant
changes of behavior that you should be aware of.

Because it is based on the Raft consensus algorithm, when there is a
network partition, only the cluster members that are in the partition
with at least `(Number of nodes in the cluster ÷ 2) + 1` number of nodes
can "make progress". In other words, only those nodes may write to the
Khepri database and read from the database and expect a consistent
result.

For instance in a cluster of 5 RabbitMQ nodes:
* If there are two partitions, one with 3 nodes, one with 2 nodes, only
  the group of 3 nodes will be able to write to the database.
* If there are three partitions, two with 2 nodes, one with 1 node, none
  of the group can write to the database.

Because the Khepri database will be used for all kind of metadata, it
means that RabbitMQ nodes that can't write to the database will be
unable to perform some operations. A list of operations and what to
expect is documented in the associated pull request and the RabbitMQ
website.

This requirement from Raft also affects the startup of RabbitMQ nodes in
a cluster. Indeed, at least a quorum number of nodes must be started at
once to allow nodes to become ready.

To enable Khepri, you need to enable the `khepri_db` feature flag:

    rabbitmqctl enable_feature_flag khepri_db

When the `khepri_db` feature flag is enabled, the migration code
performs the following two tasks:
1. It synchronizes the Khepri cluster membership from the Mnesia
   cluster. It uses `mnesia_to_khepri:sync_cluster_membership/1` from
   the `khepri_mnesia_migration` application [3].
2. It copies data from relevant Mnesia tables to Khepri, doing some
   conversion if necessary on the way. Again, it uses
   `mnesia_to_khepri:copy_tables/4` from `khepri_mnesia_migration` to do
   it.

This can be performed on a running standalone RabbitMQ node or cluster.
Data will be migrated from Mnesia to Khepri without any service
interruption. Note that during the migration, the performance may
decrease and the memory footprint may go up.

Because this feature flag is considered experimental, it is not enabled
by default even on a brand new RabbitMQ deployment.

More about the implementation details below:

In the past months, all accesses to Mnesia were isolated in a collection
of `rabbit_db*` modules. This is where the integration of Khepri mostly
takes place: we use a function called `rabbit_khepri:handle_fallback/1`
which selects the database and perform the query or the transaction.
Here is an example from `rabbit_db_vhost`:

* Up until RabbitMQ 3.12.x:

        get(VHostName) when is_binary(VHostName) ->
            get_in_mnesia(VHostName).

* Starting with RabbitMQ 3.13.0:

        get(VHostName) when is_binary(VHostName) ->
            rabbit_khepri:handle_fallback(
              #{mnesia => fun() -> get_in_mnesia(VHostName) end,
                khepri => fun() -> get_in_khepri(VHostName) end}).

This `rabbit_khepri:handle_fallback/1` function relies on two things:
1. the fact that the `khepri_db` feature flag is enabled, in which case
   it always executes the Khepri-based variant.
4. the ability or not to read and write to Mnesia tables otherwise.

Before the feature flag is enabled, or during the migration, the
function will try to execute the Mnesia-based variant. If it succeeds,
then it returns the result. If it fails because one or more Mnesia
tables can't be used, it restarts from scratch: it means the feature
flag is being enabled and depending on the outcome, either the
Mnesia-based variant will succeed (the feature flag couldn't be enabled)
or the feature flag will be marked as enabled and it will call the
Khepri-based variant. The meat of this function really lives in the
`khepri_mnesia_migration` application [3] and
`rabbit_khepri:handle_fallback/1` is a wrapper on top of it that knows
about the feature flag.

However, some calls to the database do not depend on the existence of
Mnesia tables, such as functions where we need to learn about the
members of a cluster. For those, we can't rely on exceptions from
Mnesia. Therefore, we just look at the state of the feature flag to
determine which database to use. There are two situations though:

* Sometimes, we need the feature flag state query to block because the
  function interested in it can't return a valid answer during the
  migration. Here is an example:

        case rabbit_khepri:is_enabled(RemoteNode) of
            true  -> can_join_using_khepri(RemoteNode);
            false -> can_join_using_mnesia(RemoteNode)
        end

* Sometimes, we need the feature flag state query to NOT block (for
  instance because it would cause a deadlock). Here is an example:

        case rabbit_khepri:get_feature_state() of
            enabled -> members_using_khepri();
            _       -> members_using_mnesia()
        end

Direct accesses to Mnesia still exists. They are limited to code that is
specific to Mnesia such as classic queue mirroring or network partitions
handling strategies.

Now, to discover the Mnesia tables to migrate and how to migrate them,
we use an Erlang module attribute called
`rabbit_mnesia_tables_to_khepri_db` which indicates a list of Mnesia
tables and an associated converter module. Here is an example in the
`rabbitmq_recent_history_exchange` plugin:

    -rabbit_mnesia_tables_to_khepri_db(
       [{?RH_TABLE, rabbit_db_rh_exchange_m2k_converter}]).

The converter module  — `rabbit_db_rh_exchange_m2k_converter` in this
example  — is is fact a "sub" converter module called but
`rabbit_db_m2k_converter`. See the documentation of a `mnesia_to_khepri`
converter module to learn more about these modules.

[1] https://github.com/rabbitmq/ra
[2] https://github.com/rabbitmq/khepri
[3] https://github.com/rabbitmq/khepri_mnesia_migration

See #7206.

Co-authored-by: Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com>
Co-authored-by: Diana Parra Corbacho <dparracorbac@vmware.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2023-09-29 16:00:11 +02:00
Rin Kuryloski 35110d8261 Do not backport otp 26 toolchain updates to v3.11.x 2023-09-29 15:39:24 +02:00
Michael Klishin 27d88dafd8 Drop an action that we no longer need
What was running out of disk space were BuildBuddy
worker hosts, not GitHub Actions worker ones.

Plus the Action is currently broken because it tries
to delete a package that was renamed.
2023-09-28 10:08:49 -04:00
Rin Kuryloski 4974adb6cb Fixup a workflow 2023-09-21 09:21:30 +02:00
Michael Klishin db9425e2b5
Merge pull request #9486 from rabbitmq/rin/use-otp-26.1
Use OTP 26.1 as OTP 26 in CI
2023-09-20 15:38:54 -04:00
Rin Kuryloski 75eb0621fc Use OTP 26.1 as OTP 26 in CI 2023-09-20 15:33:34 +02:00
Rin Kuryloski 0ce931a7d7 Add Elixir 1.15 to update-elixir-patches.yaml workflow 2023-09-20 14:58:44 +02:00
Rin Kuryloski 929794c9ee Fix branch checkout in check-build-system-equivalence.yaml 2023-09-14 09:35:58 +02:00
Rin Kuryloski 9ffb3c11fa Fixup nightly build system check
Use different archive names based on the server version, so that they
don't conflict when running the nightly matrix
2023-09-13 11:13:21 +02:00
Rin Kuryloski e6f9d6ef73 More output when comparing build systems in actions 2023-09-13 10:44:37 +02:00
Michael Klishin 6a5b95425c
Merge pull request #9394 from rabbitmq/dependabot/github_actions/main/docker/setup-buildx-action-3
build(deps): bump docker/setup-buildx-action from 1 to 3
2023-09-12 15:25:24 -04:00
Michael Klishin f25bbb863c
Merge pull request #9392 from rabbitmq/dependabot/github_actions/main/docker/build-push-action-5
build(deps): bump docker/build-push-action from 4 to 5
2023-09-12 15:25:16 -04:00
Michael Klishin 3d50d2c5b1
Merge pull request #9391 from rabbitmq/dependabot/github_actions/main/docker/login-action-3
build(deps): bump docker/login-action from 1 to 3
2023-09-12 15:25:11 -04:00
dependabot[bot] aeb0911f02
build(deps): bump docker/setup-buildx-action from 1 to 3
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 18:34:29 +00:00
dependabot[bot] 31460fa8bf
build(deps): bump docker/setup-qemu-action from 2 to 3
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 18:34:27 +00:00
dependabot[bot] bf550dfb25
build(deps): bump docker/build-push-action from 4 to 5
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 18:34:23 +00:00
dependabot[bot] 287186ba87
build(deps): bump docker/login-action from 1 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 18:34:21 +00:00
dependabot[bot] 0db9a2f3c7
build(deps): bump actions/cache from 3.3.1 to 3.3.2
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.1 to 3.3.2.
- [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.3.1...v3.3.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 18:12:02 +00:00
Rin Kuryloski f2a5eeb6a5 Try to avoid running out of space in the OCI workflow in actions 2023-09-08 16:19:59 +02:00
dependabot[bot] fcd82abf6c
build(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.2...v3.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 18:28:12 +00:00
Marcial Rosales d91bfbd0af Run authnz workflow when workflow or code
changes around authnz
2023-09-06 15:26:31 +02:00
Marcial Rosales 7b0e667647 Consolidate the two pipeline files into one 2023-09-05 19:50:46 +02:00
Marcial Rosales 71faa1714d Fix pipeline 2023-09-05 19:50:46 +02:00
Marcial Rosales 7fb55881a4 Refactor suites to shorten pipeline execution
- Separate pure management ui suites from authnz
- Run full management ui suite on every commit to main or
 release brances
 - Fun full management ui suite on every change done to
 rabbitmq_management plugin on any PR
2023-09-05 19:50:46 +02:00
Rin Kuryloski 84d9abe43c Update key and restore-key for the actions/cache action in actions
The github actions cache works better when individual runs have unique
keys, otherwise I believe the contents are never updated
2023-09-05 14:16:18 +02:00
dependabot[bot] 7992ee495e
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 18:31:26 +00:00
Rin Kuryloski ac2d4e6023 Run the local and remote suites in a single pass 2023-09-01 18:07:40 +02:00
Rin Kuryloski c814b604bb Use the no-remote-exec instead of exclusive tag for some tests
This allows results to be cached while still indicating that they
don't pass with RBE, only locally
2023-09-01 18:07:40 +02:00
Rin Kuryloski 94a51be6dd Update automation for otp/elixir version updates in bazel
Since the WORKSPACE file no longer contains duplicate definitions
2023-08-23 09:42:49 +02:00
Rin Kuryloski 2b177e56a3 Add extra logging to action workflow 2023-08-22 18:11:09 +02:00
Rin Kuryloski 66a887bc6a Run bazel/make equivalence checks on all release branches
The original workflow has been made reusable since it has multiple
jobs, and is then called by an outer workflow for main, v3.12.x &
v3.11.x
2023-08-14 09:48:05 +02:00
Rin Kuryloski f3f0c5dd93 Use elixir 1.15.2 with windows 2023-07-17 21:24:44 +02:00
Rin Kuryloski ca1806dbcd
Check additional applications when comparing bazel and make results (#8209)
* Check additional applications when comparing bazel and make results

* Sync bazel/make for amqp_client

* Do not fail-fast in build system comparison

* promethus -> prometheus

* Regenerate BUILD.redbug

* When comparing build systems & .app files ignore empty 'registered'

It's listed as a required key in
https://www.erlang.org/doc/man/app.html, but the same docs state the
default is "[]". It seems to ignore it if it's empty.

* Copy bazel/BUILD.osiris from BUILD.bazel in the osiris repo

Normally it would be generated with `bazel run gazelle-update-repos --
-args osiris@1.5.1=github.com/rabbitmq/osiris@v1.5.1`, but in this
case we just want to match it's compilation with erlang.mk with some
manual tweaks.

* Use elixir 1.15, otherwise mix format fails

* Sync bazel/make for rabbitmq_web_dispatch, rabbitmq_management_agent
2023-07-12 17:26:16 +02:00
Rin Kuryloski 6e692df153 Drop deprecated set-output github actions command in oci-base.yaml
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2023-07-09 12:48:41 +02:00
Arnaud Cogoluègnes b94a7d876d
Revamp AMQP 1.0 plugin Java test project
Bump dependencies (using JMS 3.1 now, which requires Java 11),
format code.
2023-06-30 10:02:01 +02:00
Arnaud Cogoluègnes 87d8460751
Add logback dependency to MQTT Java test project
To avoid no-binding warning from SLF4J.
2023-06-30 09:30:10 +02:00
Arnaud Cogoluègnes 331821a652
Add dependabot for Java test projects 2023-06-30 09:25:53 +02:00
Rin Kuryloski 464182a797
Avoid secondary umbrella archive collisions in actions (#8653)
* Store secondary umbrella archives used in mixed version tests

in a path which implies the erlang version used

* Infer the secondary umbrella otp version from the url

This avoids having two copies that need to be kept in sync
2023-06-23 16:03:22 +02:00
dependabot[bot] 292d85bad6
Bump erlef/setup-beam from 1.15 to 1.16
Bumps [erlef/setup-beam](https://github.com/erlef/setup-beam) from 1.15 to 1.16.
- [Release notes](https://github.com/erlef/setup-beam/releases)
- [Commits](https://github.com/erlef/setup-beam/compare/v1.15...v1.16)

---
updated-dependencies:
- dependency-name: erlef/setup-beam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-22 18:59:31 +00:00
Michael Klishin 55442aa914 Replace @rabbitmq.com addresses with rabbitmq-core@groups.vmware.com
Don't ask why we have to do it. Because reasons!
2023-06-20 15:40:13 +04:00
dependabot[bot] 3d87651aef
Bump peter-evans/create-pull-request from 5.0.1 to 5.0.2
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v5.0.1...v5.0.2)

---
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>
2023-06-14 18:59:32 +00:00
Rin Kuryloski c0889df3c5 Use RBE for the OCI workflow
This avoids the need for erlang on the github actions worker

Uses a buildbuddy option for firecracker VMs instead of containers,
where docker can be made available to actions
2023-06-13 09:31:45 +02:00
Rin Kuryloski e34d140412 Test with OTP 26 in github actions 2023-05-31 09:57:18 +02:00
Rin Kuryloski 75d760932d Fix gazelle actions workflow automated PR titles 2023-05-25 12:44:22 +02:00
Michal Kuratczyk 22b27cbb82
Use OTP26.0 and Elixir 1.14.5 in Windows tests 2023-05-23 09:51:02 +02:00
Rin Kuryloski 56aab34fb5 Use erlang 26.0 instead of rc3 in bazel 2023-05-17 15:45:26 +02:00
Rin Kuryloski eb94a58bc9 Add a workflow to compare the bazel/erlang.mk output
To catch any drift between the builds
2023-05-15 13:54:14 +02:00
Rin Kuryloski 204d0177c2 Fix github actions cache key for the bazel repo-cache 2023-05-12 12:45:01 +02:00
Michal Kuratczyk a8b00a3298
Try elixir 1.14.3 for Windows tests
Debugging a setup-beam issue:
https://github.com/erlef/setup-beam/issues/189
2023-05-09 11:26:45 +02:00
Michal Kuratczyk 6d4acc4281
Enable dialyzer for Erlang git-master action 2023-05-04 17:03:59 +02:00
dependabot[bot] 0bd3f78c06
Bump peter-evans/create-pull-request from 5.0.0 to 5.0.1
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v5.0.0...v5.0.1)

---
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>
2023-05-02 18:59:38 +00:00
Rin Kuryloski eed1d0148d Do not run windows tests in github actions on any pushes
while there was a filter to restrict the build-on-push to the windows
workflow itself, it's not worth the side effect of having the workflow
run unexpectedly on backports
2023-04-27 21:39:19 +02:00
Michal Kuratczyk b35e4b3847
Bump erlef/setup-beam to 1.15.3 2023-04-26 15:37:04 +02:00
Michal Kuratczyk ac30ea2569
OCI workflow: otp-min: 25.3, otp-max: 26 2023-04-26 11:06:23 +02:00
Rin Kuryloski bb6c50311f Update the automation to bump erlang/elixir patches in CI
so that the workflow fails if the branch already exists, instead of
just skipping

We had a period of many weeks where the elixir workflow was being
skipped because the branch was left around after a PR was closed, so
we want to avoid that in the future
2023-04-26 09:26:48 +02:00
Rin Kuryloski 4babbb2abc Add gazelle workflows
Add a nightly and manual workflow that will run gazelle and open a PR
if there are any changes. This will ensure that bazel files stay up to
date.
2023-04-26 08:48:30 +02:00
Michal Kuratczyk 69f48a07a3
Run daily tests on OTP26/Windows 2023-04-15 14:45:05 +02:00
Michal Kuratczyk cd75fc92ac
Disable dialyzer in `master` OTP workflow 2023-04-13 14:37:18 +02:00
dependabot[bot] 8d3e471556
Bump peter-evans/create-pull-request from 4.2.4 to 5.0.0
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4.2.4 to 5.0.0.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v4.2.4...v5.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 18:59:27 +00:00
Marcial Rosales 829d9d9428 Read JWT token from Authorization Header 2023-04-04 12:00:08 +04:00
Rin Kuryloski 9467c2eab3 Give each of the summary jobs in actions different names
Otherwise they do not appear to be selectable in the github branch
protection rules UI
2023-03-16 12:52:56 +01:00
Rin Kuryloski f32e34691e Add "Summary" jobs to test workflows in actions
These exist to make it easier to manage the branch protection rules,
so that required checks don't change when OTP versions change in a
branch
2023-03-16 12:16:41 +01:00
dependabot[bot] d5c243802d
Bump peter-evans/create-pull-request from 4.2.3 to 4.2.4
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4.2.3 to 4.2.4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v4.2.3...v4.2.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>
2023-03-15 19:00:19 +00:00
dependabot[bot] 855be3bd52
Bump actions/cache from 3.3.0 to 3.3.1
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.0 to 3.3.1.
- [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.3.0...v3.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 19:06:00 +00:00
dependabot[bot] 123cdfb0dc
Bump actions/cache from 3.2.6 to 3.3.0
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.6 to 3.3.0.
- [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.2.6...v3.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 19:00:18 +00:00
Rin Kuryloski a49d9a2088 Fixup remaining otp 25.2 reference 2023-03-08 21:35:51 +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
Arnaud Cogoluègnes 4c2b01649b
Keep APP_VERSION for broker version in dev Docker image
Instead of SHA1. This helps applications and test suites
knowing about the broker version they are running against.
2023-03-08 14:16:30 +01:00
Rin Kuryloski ed1055e36d Remove v3.9.x from automatic elixir/erlang PRs 2023-02-24 10:25:15 +01:00
dependabot[bot] b8ced8be4e
Bump actions/cache from 3.2.5 to 3.2.6
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.5 to 3.2.6.
- [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.2.5...v3.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-22 09:47:39 +00:00
dependabot[bot] c6a1dd5862
Bump lewagon/wait-on-check-action from 1.2.0 to 1.3.1
Bumps [lewagon/wait-on-check-action](https://github.com/lewagon/wait-on-check-action) from 1.2.0 to 1.3.1.
- [Release notes](https://github.com/lewagon/wait-on-check-action/releases)
- [Commits](https://github.com/lewagon/wait-on-check-action/compare/v1.2.0...v1.3.1)

---
updated-dependencies:
- dependency-name: lewagon/wait-on-check-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 18:11:51 +00:00
Rin Kuryloski 609171ec70 Rename the tanzu cli scope to vmware
And update other references to commercial editions
2023-02-16 13:49:54 +01:00
Rin Kuryloski d17811107a Add v3.12.x branch to actions workflows 2023-02-14 16:35:52 +01:00
Rin Kuryloski e1129f6b8c Update the mergify config to account for v3.12.x branch 2023-02-14 16:25:31 +01:00
Rin Kuryloski de78f84e2f Remove "Generate Mixed Version Testing Artifacts (v3.8.x only)"
workflow from GitHub actions

Newer mixed version workflows produce these artifacts on demand, given
the support status of v3.9.x, it shall be reasonable to remove the
v3.8.x/v3.9.x mixed version tests from the v3.9.x branch
2023-02-13 17:35:51 +01:00
dependabot[bot] 92eb02ea9d
Bump actions/cache from 3.2.4 to 3.2.5
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.4 to 3.2.5.
- [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.2.4...v3.2.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-10 18:59:44 +00:00
dependabot[bot] fa94682c61
Bump docker/build-push-action from 2 to 4
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 18:04:44 +00:00
dependabot[bot] 5fd24e6546
Bump actions/cache from 3.2.3 to 3.2.4
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.3 to 3.2.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.2.3...v3.2.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>
2023-01-30 18:13:33 +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
Rin Kuryloski 9735534d63 Update the image reference in the AWS integration suite 2023-01-24 15:24:07 +01:00
Rin Kuryloski a29afa39c8
Update rabbitmq_peer_discovery_aws.yaml
Another attempt at #6982
2023-01-20 17:50:43 +01:00
Rin Kuryloski 40a3cac628
Update rabbitmq_peer_discovery_aws.yaml
Fix the cross-workflow reference to the oci workflow
2023-01-20 17:06:43 +01:00
dependabot[bot] 99d149ab60
Bump actions/cache from 3.2.2 to 3.2.3
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.2 to 3.2.3.
- [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.2.2...v3.2.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 18:34:05 +00:00
dependabot[bot] 8f4798ad29
Bump actions/upload-artifact from 3.1.1 to 3.1.2
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.1...v3.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06 18:05:44 +00:00
Marcial Rosales 3556cc25eb
Remove branch 2023-01-03 07:09:05 -05:00
Marcial Rosales 9921526f7a
Run selenium GH Action on oidc_idp_initiated_login branch
This is to force GH Action run selenium tests.
for some reason it is not running it
2023-01-03 07:09:05 -05:00
Marcial Rosales 9354397cbf
Support Idp initiated logon in mgt ui with Oauth
Configure preferred username from a token
Make client_secret optional
2023-01-03 07:09:00 -05:00
dependabot[bot] 95dcde644c
Bump actions/cache from 3.2.1 to 3.2.2
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.1 to 3.2.2.
- [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.2.1...v3.2.2)

---
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-12-27 18:04:48 +00:00
dependabot[bot] df5d8cf706
Bump actions/cache from 3.2.0 to 3.2.1
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.0 to 3.2.1.
- [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.2.0...v3.2.1)

---
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-12-23 18:05:12 +00:00
dependabot[bot] 7d302c80bb
Bump actions/cache from 3.0.11 to 3.2.0
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.11 to 3.2.0.
- [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.11...v3.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-21 18:05:21 +00:00
Michal Kuratczyk d78b8b3a2a
Adopt OTP 25.2 2022-12-15 11:08:21 +01:00
Michael Klishin 95c2750c5e
Update SECURITY.md 2022-12-14 02:47:37 +04:00
Rin Kuryloski d7200647ca Use ubuntu-20.04 in actions as the base OS
The ubuntu-latest tag is being switched to 22.04, and seems to be
causing some issues
2022-12-12 14:33:38 +01:00