integration-test-mgr-suite.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. name: Integration test CephMgrSuite
  2. on:
  3. pull_request:
  4. paths-ignore:
  5. - "Documentation/**"
  6. - "design/**"
  7. schedule:
  8. - cron: "0 0 * * *" # every day at midnight
  9. defaults:
  10. run:
  11. # reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
  12. shell: bash --noprofile --norc -eo pipefail -x {0}
  13. # cancel the in-progress workflow when PR is refreshed.
  14. concurrency:
  15. group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
  16. cancel-in-progress: true
  17. jobs:
  18. TestCephMgrSuite:
  19. runs-on: ubuntu-20.04
  20. if: "contains(github.event.pull_request.labels.*.name, 'run-mgr-suite')"
  21. strategy:
  22. fail-fast: false
  23. matrix:
  24. kubernetes-versions: ["v1.29.0"]
  25. steps:
  26. - name: checkout
  27. uses: actions/checkout@v4
  28. with:
  29. fetch-depth: 0
  30. - name: consider debugging
  31. uses: ./.github/workflows/tmate_debug
  32. with:
  33. use-tmate: ${{ secrets.USE_TMATE }}
  34. - name: setup cluster resources
  35. uses: ./.github/workflows/integration-test-config-latest-k8s
  36. with:
  37. github-token: ${{ secrets.GITHUB_TOKEN }}
  38. kubernetes-version: ${{ matrix.kubernetes-versions }}
  39. - name: TestCephMgrSuite
  40. run: |
  41. tests/scripts/github-action-helper.sh collect_udev_logs_in_background
  42. export DEVICE_FILTER=$(lsblk|awk '/14G/ || /64G/ {print $1}'| head -1)
  43. go test -v -timeout 1800s -failfast -run CephMgrSuite github.com/rook/rook/tests/integration
  44. - name: collect common logs
  45. if: always()
  46. run: |
  47. export LOG_DIR="/home/runner/work/rook/rook/tests/integration/_output/tests/"
  48. export CLUSTER_NAMESPACE="mgr-ns"
  49. export OPERATOR_NAMESPACE="mgr-ns-system"
  50. tests/scripts/collect-logs.sh
  51. - name: Artifact
  52. uses: actions/upload-artifact@v4
  53. if: failure()
  54. with:
  55. name: ceph-mgr-suite-artifact-${{ matrix.kubernetes-versions }}
  56. path: /home/runner/work/rook/rook/tests/integration/_output/tests/