-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add github action to trigger E2E #3468
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,93 @@ | ||||||
--- | ||||||
name: Add comment | ||||||
# yamllint disable-line rule:truthy | ||||||
on: | ||||||
pull_request_target: | ||||||
branches: | ||||||
- devel | ||||||
- "release-v*" | ||||||
types: | ||||||
- labeled | ||||||
jobs: | ||||||
add-comment: | ||||||
if: github.event.label.name == 'ok-to-test' | ||||||
runs-on: ubuntu-latest | ||||||
permissions: | ||||||
pull-requests: write | ||||||
steps: | ||||||
- name: Add comment to trigger external storage tests for Kubernetes 1.22 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/k8s-e2e-external-storage/1.22 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Can we instead just use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We dont want to trigger all (some experimental) tests we want to trigger individual tests. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay |
||||||
|
||||||
- name: Add comment to trigger external storage tests for Kubernetes 1.23 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/k8s-e2e-external-storage/1.23 | ||||||
|
||||||
- name: Add comment to trigger external storage tests for Kubernetes 1.24 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/k8s-e2e-external-storage/1.24 | ||||||
|
||||||
- name: Add comment to trigger helm E2E tests for Kubernetes 1.22 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/mini-e2e-helm/k8s-1.22 | ||||||
|
||||||
- name: Add comment to trigger helm E2E tests for Kubernetes 1.23 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/mini-e2e-helm/k8s-1.23 | ||||||
|
||||||
- name: Add comment to trigger helm E2E tests for Kubernetes 1.24 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/mini-e2e-helm/k8s-1.24 | ||||||
|
||||||
- name: Add comment to trigger E2E tests for Kubernetes 1.22 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/mini-e2e/k8s-1.22 | ||||||
|
||||||
- name: Add comment to trigger E2E tests for Kubernetes 1.23 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/mini-e2e/k8s-1.23 | ||||||
|
||||||
- name: Add comment to trigger E2E tests for Kubernetes 1.24 | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/mini-e2e/k8s-1.24 | ||||||
|
||||||
- name: Add comment to trigger cephfs upgrade tests | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/upgrade-tests-cephfs | ||||||
|
||||||
- name: Add comment to trigger rbd upgrade tests | ||||||
uses: peter-evans/create-or-update-comment@v2 | ||||||
with: | ||||||
issue-number: ${{ github.event.pull_request.number }} | ||||||
body: | | ||||||
/test ci/centos/upgrade-tests-rbd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can the
ci/*
branch(es) be excluded from this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also wondering if this can be triggered after a rebase and the label is set...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we can trigger only on required branches. for that we need to remove and re-add the label for now (we can see how that can be automated later?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to run on devel and release branch for now