From 13f916afd1bae44bcd6f881edb4c84e4a396e9b1 Mon Sep 17 00:00:00 2001 From: swetha1654 Date: Fri, 21 Nov 2025 13:56:04 +0530 Subject: [PATCH] Run Allure workflow only on schedule --- .github/workflows/integration_test.yaml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integration_test.yaml b/.github/workflows/integration_test.yaml index 5454c62245..9673fa3d54 100644 --- a/.github/workflows/integration_test.yaml +++ b/.github/workflows/integration_test.yaml @@ -5,28 +5,33 @@ on: schedule: # Trigger at 6:00 AM and 6:00 PM UTC - - cron: "0 6,18 * * *" + - cron: "0 6,18 * * *" concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || + github.ref }} cancel-in-progress: true jobs: openstack-integration-tests-private-endpoint: name: Integration test using private-endpoint - uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main + uses: + canonical/operator-workflows/.github/workflows/integration_test.yaml@main secrets: inherit with: juju-channel: 3.6/stable provider: lxd test-tox-env: integration-juju3.6 - modules: '["test_charm_metrics_failure", "test_charm_metrics_success", "test_charm_fork_repo", "test_charm_fork_path_change", "test_charm_no_runner", "test_charm_runner", "test_debug_ssh", "test_charm_upgrade", "test_reactive"]' + modules: '["test_charm_metrics_failure", "test_charm_metrics_success", "test_charm_fork_repo", + "test_charm_fork_path_change", "test_charm_no_runner", "test_charm_runner", + "test_debug_ssh", "test_charm_upgrade", "test_reactive"]' extra-arguments: '-m openstack --log-format="%(asctime)s %(levelname)s %(message)s"' self-hosted-runner: true - self-hosted-runner-label: pfe-ci + self-hosted-runner-label: pfe-ci openstack-integration-tests-cross-controller-private-endpoint: name: Cross controller integration test using private-endpoint - uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main + uses: + canonical/operator-workflows/.github/workflows/integration_test.yaml@main secrets: inherit with: juju-channel: 3.6/stable @@ -38,8 +43,8 @@ jobs: self-hosted-runner: true self-hosted-runner-label: pfe-ci allure-report: - if: ${{ (success() || failure()) && github.event_name == 'schedule' }} + if: ${{ !cancelled() && github.event_name == 'schedule' }} needs: - - openstack-integration-tests-private-endpoint - - openstack-integration-tests-cross-controller-private-endpoint + - openstack-integration-tests-private-endpoint + - openstack-integration-tests-cross-controller-private-endpoint uses: canonical/operator-workflows/.github/workflows/allure_report.yaml@main