Skip to content

Commit

Permalink
WIP fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ansd committed Oct 16, 2024
1 parent e4d20bb commit 422cc01
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 168 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/oci-make.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# https://github.com/marketplace/actions/build-and-push-docker-images
name: OCI (make)
on:
push:
paths-ignore:
- '.github/workflows/secondary-umbrella.yaml'
- '.github/workflows/update-elixir-patches.yaml'
- '.github/workflows/update-otp-patches.yaml'
workflow_dispatch:
# push:
# paths-ignore:
# - '.github/workflows/secondary-umbrella.yaml'
# - '.github/workflows/update-elixir-patches.yaml'
# - '.github/workflows/update-otp-patches.yaml'
# workflow_dispatch:
env:
REGISTRY_IMAGE: pivotalrabbitmq/rabbitmq
concurrency:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/rabbitmq_peer_discovery_aws.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Peer Discovery AWS Integration Test
on:
push:
paths-ignore:
- '.github/workflows/secondary-umbrella.yaml'
- '.github/workflows/update-elixir-patches.yaml'
- '.github/workflows/update-otp-patches.yaml'
workflow_dispatch:
# push:
# paths-ignore:
# - '.github/workflows/secondary-umbrella.yaml'
# - '.github/workflows/update-elixir-patches.yaml'
# - '.github/workflows/update-otp-patches.yaml'
# workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/test-authnz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ on:
- main
- v3.12.x
- v3.11.x
paths:
- 'deps/rabbit/**'
- 'deps/rabbitmq_auth_**'
- 'deps/rabbitmq_management/selenium/**'
- 'scripts/**'
- .bazelrc
- .bazelversion
- BUILD.*
- '*.bzl'
- '*.bazel'
- .github/workflows/test-authnz.yaml
pull_request:
paths:
- 'deps/rabbit/**'
- 'deps/rabbitmq_auth_/**'
- 'deps/rabbitmq_mqtt/**'
- 'deps/rabbitmq_management/selenium/full-suite-authnz-messaging'
- 'deps/rabbitmq_management/selenium/suites/authnz-messaging'
- 'deps/rabbitmq_management/selenium/test/authnz-msg-protocols'
- .github/workflows/test-authnz.yaml
# paths:
# - 'deps/rabbit/**'
# - 'deps/rabbitmq_auth_**'
# - 'deps/rabbitmq_management/selenium/**'
# - 'scripts/**'
# - .bazelrc
# - .bazelversion
# - BUILD.*
# - '*.bzl'
# - '*.bazel'
# - .github/workflows/test-authnz.yaml
# pull_request:
# paths:
# - 'deps/rabbit/**'
# - 'deps/rabbitmq_auth_/**'
# - 'deps/rabbitmq_mqtt/**'
# - 'deps/rabbitmq_management/selenium/full-suite-authnz-messaging'
# - 'deps/rabbitmq_management/selenium/suites/authnz-messaging'
# - 'deps/rabbitmq_management/selenium/test/authnz-msg-protocols'
# - .github/workflows/test-authnz.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down
168 changes: 84 additions & 84 deletions .github/workflows/test-make-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
fail-fast: false
matrix:
make_target:
- parallel-ct-set-1
- parallel-ct-set-2
- parallel-ct-set-3
- parallel-ct-set-4
- ct-clustering_management
- eunit ct-dead_lettering
- ct-feature_flags
- ct-metadata_store_clustering
- ct-quorum_queue
- ct-rabbit_stream_queue
- ct-amqp_system
# - parallel-ct-set-2
# - parallel-ct-set-3
# - parallel-ct-set-4
# - ct-clustering_management
# - eunit ct-dead_lettering
# - ct-feature_flags
# - ct-metadata_store_clustering
# - ct-quorum_queue
# - ct-rabbit_stream_queue
uses: ./.github/workflows/test-make-target.yaml
with:
erlang_version: ${{ inputs.erlang_version }}
Expand All @@ -36,79 +36,79 @@ jobs:
make_target: ${{ matrix.make_target }}
plugin: rabbit

test-rabbitmq-mqtt:
name: Test rabbitmq_mqtt
uses: ./.github/workflows/test-make-target.yaml
with:
erlang_version: ${{ inputs.erlang_version }}
elixir_version: ${{ inputs.elixir_version }}
metadata_store: ${{ inputs.metadata_store }}
make_target: parallel-ct-set-1
plugin: rabbitmq_mqtt
# test-rabbitmq-mqtt:
# name: Test rabbitmq_mqtt
# uses: ./.github/workflows/test-make-target.yaml
# with:
# erlang_version: ${{ inputs.erlang_version }}
# elixir_version: ${{ inputs.elixir_version }}
# metadata_store: ${{ inputs.metadata_store }}
# make_target: parallel-ct-set-1
# plugin: rabbitmq_mqtt

# The integration_SUITE requires secrets and
# is therefore run from a separate workflow.
test-rabbitmq-peer-discovery-aws:
name: Test rabbitmq_peer_discovery_aws (partially)
uses: ./.github/workflows/test-make-target.yaml
with:
erlang_version: ${{ inputs.erlang_version }}
elixir_version: ${{ inputs.elixir_version }}
metadata_store: ${{ inputs.metadata_store }}
make_target: ct-config_schema ct-unit
plugin: rabbitmq_peer_discovery_aws
# # The integration_SUITE requires secrets and
# # is therefore run from a separate workflow.
# test-rabbitmq-peer-discovery-aws:
# name: Test rabbitmq_peer_discovery_aws (partially)
# uses: ./.github/workflows/test-make-target.yaml
# with:
# erlang_version: ${{ inputs.erlang_version }}
# elixir_version: ${{ inputs.elixir_version }}
# metadata_store: ${{ inputs.metadata_store }}
# make_target: ct-config_schema ct-unit
# plugin: rabbitmq_peer_discovery_aws

test-plugin:
name: Test plugins
strategy:
fail-fast: false
matrix:
plugin:
- amqp10_client
- amqp10_common
- amqp_client
- oauth2_client
- rabbit_common
- rabbitmq_amqp_client
- rabbitmq_auth_backend_cache
- rabbitmq_auth_backend_http
- rabbitmq_auth_backend_ldap
- rabbitmq_auth_backend_oauth2
- rabbitmq_auth_mechanism_ssl
- rabbitmq_aws
- rabbitmq_cli
- rabbitmq_consistent_hash_exchange
- rabbitmq_event_exchange
- rabbitmq_federation
- rabbitmq_federation_management
- rabbitmq_federation_prometheus
- rabbitmq_jms_topic_exchange
- rabbitmq_management
- rabbitmq_management_agent
- rabbitmq_peer_discovery_common
- rabbitmq_peer_discovery_consul
- rabbitmq_peer_discovery_etcd
- rabbitmq_peer_discovery_k8s
- rabbitmq_prelaunch
- rabbitmq_prometheus
- rabbitmq_recent_history_exchange
- rabbitmq_sharding
- rabbitmq_shovel
- rabbitmq_shovel_management
- rabbitmq_shovel_prometheus
- rabbitmq_stomp
- rabbitmq_stream
- rabbitmq_stream_common
- rabbitmq_stream_management
- rabbitmq_tracing
- rabbitmq_trust_store
- rabbitmq_web_dispatch
- rabbitmq_web_mqtt
- rabbitmq_web_stomp
uses: ./.github/workflows/test-make-target.yaml
with:
erlang_version: ${{ inputs.erlang_version }}
elixir_version: ${{ inputs.elixir_version }}
metadata_store: ${{ inputs.metadata_store }}
make_target: tests
plugin: ${{ matrix.plugin }}
# test-plugin:
# name: Test plugins
# strategy:
# fail-fast: false
# matrix:
# plugin:
# - amqp10_client
# - amqp10_common
# - amqp_client
# - oauth2_client
# - rabbit_common
# - rabbitmq_amqp_client
# - rabbitmq_auth_backend_cache
# - rabbitmq_auth_backend_http
# - rabbitmq_auth_backend_ldap
# - rabbitmq_auth_backend_oauth2
# - rabbitmq_auth_mechanism_ssl
# - rabbitmq_aws
# - rabbitmq_cli
# - rabbitmq_consistent_hash_exchange
# - rabbitmq_event_exchange
# - rabbitmq_federation
# - rabbitmq_federation_management
# - rabbitmq_federation_prometheus
# - rabbitmq_jms_topic_exchange
# - rabbitmq_management
# - rabbitmq_management_agent
# - rabbitmq_peer_discovery_common
# - rabbitmq_peer_discovery_consul
# - rabbitmq_peer_discovery_etcd
# - rabbitmq_peer_discovery_k8s
# - rabbitmq_prelaunch
# - rabbitmq_prometheus
# - rabbitmq_recent_history_exchange
# - rabbitmq_sharding
# - rabbitmq_shovel
# - rabbitmq_shovel_management
# - rabbitmq_shovel_prometheus
# - rabbitmq_stomp
# - rabbitmq_stream
# - rabbitmq_stream_common
# - rabbitmq_stream_management
# - rabbitmq_tracing
# - rabbitmq_trust_store
# - rabbitmq_web_dispatch
# - rabbitmq_web_mqtt
# - rabbitmq_web_stomp
# uses: ./.github/workflows/test-make-target.yaml
# with:
# erlang_version: ${{ inputs.erlang_version }}
# elixir_version: ${{ inputs.elixir_version }}
# metadata_store: ${{ inputs.metadata_store }}
# make_target: tests
# plugin: ${{ matrix.plugin }}
88 changes: 44 additions & 44 deletions .github/workflows/test-make.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,40 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-xref:
name: Build and Xref
strategy:
fail-fast: false
matrix:
erlang_version:
- '26'
- '27'
elixir_version:
- '1.17'
# @todo Add macOS and Windows.
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: CHECKOUT REPOSITORY
uses: actions/checkout@v4
# build-and-xref:
# name: Build and Xref
# strategy:
# fail-fast: false
# matrix:
# erlang_version:
# - '26'
# - '27'
# elixir_version:
# - '1.17'
# # @todo Add macOS and Windows.
# runs-on: ubuntu-latest
# timeout-minutes: 30
# steps:
# - name: CHECKOUT REPOSITORY
# uses: actions/checkout@v4

- name: FETCH TAGS
run: git fetch --tags
# - name: FETCH TAGS
# run: git fetch --tags

- name: SETUP OTP & ELIXIR
uses: erlef/setup-beam@v1.17
with:
otp-version: ${{ matrix.erlang_version }}
elixir-version: ${{ matrix.elixir_version }}
hexpm-mirrors: |
https://builds.hex.pm
https://cdn.jsdelivr.net/hex
# - name: SETUP OTP & ELIXIR
# uses: erlef/setup-beam@v1.17
# with:
# otp-version: ${{ matrix.erlang_version }}
# elixir-version: ${{ matrix.elixir_version }}
# hexpm-mirrors: |
# https://builds.hex.pm
# https://cdn.jsdelivr.net/hex

- name: BUILD
run: make
# - name: BUILD
# run: make

- name: XREF
run: make xref
# - name: XREF
# run: make xref

test:
name: Test
Expand All @@ -62,23 +62,23 @@ jobs:
- '1.17'
metadata_store:
- mnesia
- khepri
# - khepri
uses: ./.github/workflows/test-make-tests.yaml
with:
erlang_version: ${{ matrix.erlang_version }}
elixir_version: ${{ matrix.elixir_version }}
metadata_store: ${{ matrix.metadata_store }}

type-check:
name: Type check
strategy:
fail-fast: false
matrix:
erlang_version: # Latest OTP
- '27'
elixir_version: # Latest Elixir
- '1.17'
uses: ./.github/workflows/test-make-type-check.yaml
with:
erlang_version: ${{ matrix.erlang_version }}
elixir_version: ${{ matrix.elixir_version }}
# type-check:
# name: Type check
# strategy:
# fail-fast: false
# matrix:
# erlang_version: # Latest OTP
# - '27'
# elixir_version: # Latest Elixir
# - '1.17'
# uses: ./.github/workflows/test-make-type-check.yaml
# with:
# erlang_version: ${{ matrix.erlang_version }}
# elixir_version: ${{ matrix.elixir_version }}
10 changes: 5 additions & 5 deletions .github/workflows/test-management-ui-for-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Test Management UI with Selenium for PRs
on:
pull_request:
paths:
- 'deps/**'
- 'selenium/**'
- .github/workflows/test-management-ui-for-pr.yaml
# pull_request:
# paths:
# - 'deps/**'
# - 'selenium/**'
# - .github/workflows/test-management-ui-for-pr.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mixed-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
- '*.bzl'
- '*.bazel'
- .github/workflows/test-mixed-versions.yaml
pull_request:
# pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down
Loading

0 comments on commit 422cc01

Please sign in to comment.