Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/check_ci_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Check CI coverage
on:
pull_request:
types: [labeled]
paths:
- 'molecule/**'
- '.github/workflows/test_*.yml'
Expand All @@ -12,11 +13,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
check-ci-coverage:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/consume_ci_run_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Consume CI run label
on:
pull_request_target:
types: [labeled]

permissions:
contents: read
issues: write

jobs:
consume:
if: ${{ github.event.label.name == 'ci:run' }}
runs-on: ubuntu-latest
steps:
- name: Remove ci:run label
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: gh issue edit "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --remove-label "ci:run"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
4 changes: 3 additions & 1 deletion .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
push:
branches:
- 'main'
Expand All @@ -25,11 +26,12 @@ permissions:
security-events: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
kics:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
runs-on: ubuntu-latest
timeout-minutes: 15

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_elasticsearch_custom_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
paths:
- 'roles/elasticsearch/**'
- 'roles/elasticstack/**'
Expand All @@ -27,11 +28,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
lint_elasticsearch:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
uses: ./.github/workflows/test_linting.yml
with:
rolename: elasticsearch
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_elasticsearch_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
paths:
- 'roles/elasticsearch/**'
- 'roles/elasticstack/**'
Expand All @@ -27,11 +28,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
lint_elasticsearch:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
uses: ./.github/workflows/test_linting.yml
with:
rolename: elasticsearch
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_elasticsearch_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
paths:
- 'roles/elasticsearch/**'
- 'roles/elasticstack/**'
Expand All @@ -26,11 +27,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
lint_elasticsearch:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
uses: ./.github/workflows/test_linting.yml
with:
rolename: elasticsearch
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test_full_stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
required: false
type: string
pull_request:
types: [labeled]
merge_group:
schedule:
- cron: "0 4 * * 2,4,6" # Tue/Thu/Sat — 48 jobs, alternate with ES/logstash
Expand All @@ -25,11 +26,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
changes:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
runs-on: ubuntu-latest
outputs:
should_test: ${{ steps.filter.outputs.should_test }}
Expand Down Expand Up @@ -196,7 +198,7 @@ jobs:
full_stack_gate:
runs-on: ubuntu-latest
needs: [changes, lint_full, molecule_full_stack_every_os]
if: always()
if: ${{ always() && (github.event_name != 'pull_request' || github.event.label.name == 'ci:run') }}
steps:
- name: Check results
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
required: true
type: string
pull_request:
types: [labeled]
branches:
- '*'

Expand All @@ -26,6 +27,7 @@ permissions:

jobs:
lint:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
runs-on: self-hosted
timeout-minutes: 10
steps:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
branches:
- 'feature/**'
- 'fix/**'
Expand All @@ -28,11 +29,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
pycodestyle:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
runs-on: self-hosted
timeout-minutes: 15
steps:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_role_beats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
paths:
- 'roles/beats/**'
- 'roles/elasticstack/**'
Expand All @@ -27,11 +28,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
lint_beats:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
uses: ./.github/workflows/test_linting.yml
with:
rolename: beats
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_role_elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
paths:
- 'roles/elasticsearch/**'
- 'roles/elasticstack/**'
Expand All @@ -27,11 +28,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
lint_elasticsearch:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
uses: ./.github/workflows/test_linting.yml
with:
rolename: elasticsearch
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_role_kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
paths:
- 'roles/kibana/**'
- 'roles/elasticstack/**'
Expand All @@ -27,11 +28,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
lint_kibana:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
uses: ./.github/workflows/test_linting.yml
with:
rolename: kibana
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_role_logstash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
paths:
- 'roles/logstash/**'
- 'roles/elasticstack/**'
Expand All @@ -27,11 +28,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
lint_logstash:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
uses: ./.github/workflows/test_linting.yml
with:
rolename: logstash
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_role_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- warning
- debug
pull_request:
types: [labeled]
paths:
- 'roles/repos/**'
- 'roles/elasticstack/**'
Expand All @@ -27,11 +28,12 @@ permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.event.label.name != 'ci:run' && github.run_id || 'ci' }}
cancel-in-progress: true

jobs:
lint_repos:
if: ${{ github.event_name != 'pull_request' || github.event.label.name == 'ci:run' }}
uses: ./.github/workflows/test_linting.yml
with:
rolename: repos
Expand Down
Loading