Skip to content

Commit 201d98b

Browse files
author
Brendan Doyle
committed
Merge branch 'master' into remove-action-version-from-scheduler-wait-time-metric
2 parents b959432 + 6dd737d commit 201d98b

File tree

126 files changed

+3274
-500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+3274
-500
lines changed

.asf.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ github:
3434
master:
3535
required_status_checks:
3636
strict: false
37-
contexts:
38-
- "Travis CI - Pull Request"
3937
required_pull_request_reviews:
4038
required_appoving_review_count: 1
4139
required_signatures: false

.github/workflows/0-on-demand.yaml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
name: On Demand Tests
19+
20+
on:
21+
workflow_dispatch:
22+
inputs:
23+
enable_ngrok_debug:
24+
description: "Enable Ngrok Debugging"
25+
required: true
26+
type: boolean
27+
default: false
28+
test_suite:
29+
description: Select Test Suite to run
30+
type: choice
31+
options:
32+
- Unit
33+
- System
34+
- MultiRuntime
35+
- Standalone
36+
- Scheduler
37+
- Performance
38+
- Dummy
39+
40+
env:
41+
# openwhisk env
42+
TEST_SUITE: ${{ inputs.test_suite }}
43+
ANSIBLE_CMD: "ansible-playbook -i environments/local -e docker_image_prefix=testing"
44+
GRADLE_PROJS_SKIP: ""
45+
46+
# (optional) slack incoming wehbook for notifications
47+
SLACK_WEBHOOK: ${{secrets.SLACK_WEBHOOK}}
48+
49+
# (optional) s3 log upload
50+
LOG_BUCKET: ${{ secrets.LOG_BUCKET }}
51+
LOG_ACCESS_KEY_ID: ${{ secrets.LOG_ACCESS_KEY_ID }}
52+
LOG_SECRET_ACCESS_KEY: ${{ secrets.LOG_SECRET_ACCESS_KEY }}
53+
LOG_REGION: ${{ secrets.LOG_REGION }}
54+
55+
# github
56+
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
57+
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
58+
59+
# (optional) you need to add as secrets an ngrok token and a password to debug a build on demand
60+
NGROK_DEBUG: ${{ inputs.enable_ngrok_debug }}
61+
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
62+
NGROK_PASSWORD: ${{ secrets.NGROK_PASSWORD }}
63+
64+
jobs:
65+
openwhisk:
66+
runs-on: ubuntu-22.04
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v3
70+
- name: "Setup"
71+
run: ./tools/github/setup.sh
72+
- id: tests
73+
name: Run Tests
74+
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
75+
continue-on-error: true
76+
- id: logs
77+
name: Show results and Upload logs
78+
run: ./tools/github/checkAndUploadLogs.sh ${{ env.TEST_SUITE }}
79+
- name: Slack Notification
80+
run: >
81+
./tools/github/writeOnSlack.sh
82+
"[$TEST_SUITE]" ${{ steps.tests.outcome }} on ${GH_BUILD}
83+
$'\nbranch:' $GH_BRANCH
84+
$'\nmessage:' "$(git log -1 --oneline | cat)"
85+
$'\nlogs:' ${{ steps.logs.outputs.logs }}
86+
$'\nreport:' ${{ steps.logs.outputs.report }}
87+
- name: Debug Action (if requested)
88+
run: ./tools/github/debugAction.sh
89+
- name: Wait for Debug (if requested)
90+
run: ./tools/github/waitIfDebug.sh
91+
- name: Results
92+
run: test "${{ steps.tests.outcome }}" == "success"

.github/workflows/1-unit.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
name: Unit Tests
19+
20+
on:
21+
push:
22+
branches: [ master ]
23+
pull_request:
24+
branches: [ master ]
25+
types: [ opened, synchronize, reopened ]
26+
schedule:
27+
- cron: '30 1 * * 1,3,5'
28+
29+
env:
30+
# openwhisk env
31+
TEST_SUITE: Unit
32+
ANSIBLE_CMD: "ansible-playbook -i environments/local -e docker_image_prefix=testing"
33+
GRADLE_PROJS_SKIP: ""
34+
35+
## secrets
36+
# (optional) slack incoming wehbook for notifications
37+
SLACK_WEBHOOK: ${{secrets.SLACK_WEBHOOK}}
38+
39+
# (optional) s3 log upload
40+
LOG_BUCKET: ${{ secrets.LOG_BUCKET }}
41+
LOG_ACCESS_KEY_ID: ${{ secrets.LOG_ACCESS_KEY_ID }}
42+
LOG_SECRET_ACCESS_KEY: ${{ secrets.LOG_SECRET_ACCESS_KEY }}
43+
LOG_REGION: ${{ secrets.LOG_REGION }}
44+
45+
# some tests need also this even if they are empty on pull_requests...
46+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
47+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
48+
AWS_REGION: ${{ secrets.AWS_REGION }}
49+
50+
# github
51+
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
52+
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
53+
54+
jobs:
55+
openwhisk:
56+
runs-on: ubuntu-22.04
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v3
60+
- name: "Setup"
61+
run: ./tools/github/setup.sh
62+
- id: tests
63+
name: Run Tests
64+
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
65+
continue-on-error: true
66+
- id: logs
67+
name: Show results and Upload logs
68+
run: ./tools/github/checkAndUploadLogs.sh ${{ env.TEST_SUITE }}
69+
- name: Slack Notification
70+
run: >
71+
./tools/github/writeOnSlack.sh
72+
"[$TEST_SUITE]" ${{ steps.tests.outcome }} on ${GH_BUILD}
73+
$'\nbranch:' $GH_BRANCH
74+
$'\nmessage:' "$(git log -1 --oneline | cat)"
75+
$'\nlogs:' ${{ steps.logs.outputs.logs }}
76+
$'\nreport:' ${{ steps.logs.outputs.report }}
77+
- name: Results
78+
run: test "${{ steps.tests.outcome }}" == "success"

.github/workflows/2-system.yaml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
name: System Tests
19+
20+
on:
21+
push:
22+
branches: [ master ]
23+
pull_request:
24+
branches: [ master ]
25+
types: [ opened, synchronize, reopened ]
26+
schedule:
27+
- cron: '30 2 * * 1,3,5'
28+
29+
env:
30+
# openwhisk env
31+
TEST_SUITE: System
32+
ANSIBLE_CMD: "ansible-playbook -i environments/local -e docker_image_prefix=testing"
33+
GRADLE_PROJS_SKIP: ""
34+
35+
## secrets
36+
# (optional) slack incoming wehbook for notifications
37+
SLACK_WEBHOOK: ${{secrets.SLACK_WEBHOOK}}
38+
39+
# (optional) s3 log upload
40+
LOG_BUCKET: ${{ secrets.LOG_BUCKET }}
41+
LOG_ACCESS_KEY_ID: ${{ secrets.LOG_ACCESS_KEY_ID }}
42+
LOG_SECRET_ACCESS_KEY: ${{ secrets.LOG_SECRET_ACCESS_KEY }}
43+
LOG_REGION: ${{ secrets.LOG_REGION }}
44+
45+
# github
46+
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
47+
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
48+
49+
jobs:
50+
openwhisk:
51+
runs-on: ubuntu-22.04
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v3
55+
- name: "Setup"
56+
run: ./tools/github/setup.sh
57+
- id: tests
58+
name: Run Tests
59+
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
60+
continue-on-error: true
61+
- id: logs
62+
name: Show results and Upload logs
63+
run: ./tools/github/checkAndUploadLogs.sh ${{ env.TEST_SUITE }}
64+
- name: Slack Notification
65+
run: >
66+
./tools/github/writeOnSlack.sh
67+
"[$TEST_SUITE]" ${{ steps.tests.outcome }} on ${GH_BUILD}
68+
$'\nbranch:' $GH_BRANCH
69+
$'\nmessage:' "$(git log -1 --oneline | cat)"
70+
$'\nlogs:' ${{ steps.logs.outputs.logs }}
71+
$'\nreport:' ${{ steps.logs.outputs.report }}
72+
- name: Results
73+
run: test "${{ steps.tests.outcome }}" == "success"
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
name: MultiRuntime Tests
19+
20+
on:
21+
push:
22+
branches: [ master ]
23+
pull_request:
24+
branches: [ master ]
25+
types: [ opened, synchronize, reopened ]
26+
schedule:
27+
- cron: '30 3 * * 1,3,5'
28+
29+
env:
30+
# openwhisk env
31+
TEST_SUITE: MultiRuntime
32+
ANSIBLE_CMD: "ansible-playbook -i environments/local -e docker_image_prefix=testing"
33+
GRADLE_PROJS_SKIP: ""
34+
35+
## secrets
36+
# (optional) slack incoming wehbook for notifications
37+
SLACK_WEBHOOK: ${{secrets.SLACK_WEBHOOK}}
38+
39+
# (optional) s3 log upload
40+
LOG_BUCKET: ${{ secrets.LOG_BUCKET }}
41+
LOG_ACCESS_KEY_ID: ${{ secrets.LOG_ACCESS_KEY_ID }}
42+
LOG_SECRET_ACCESS_KEY: ${{ secrets.LOG_SECRET_ACCESS_KEY }}
43+
LOG_REGION: ${{ secrets.LOG_REGION }}
44+
45+
# github
46+
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
47+
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
48+
49+
jobs:
50+
openwhisk:
51+
runs-on: ubuntu-22.04
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v3
55+
- name: "Setup"
56+
run: ./tools/github/setup.sh
57+
- id: tests
58+
name: Run Tests
59+
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
60+
continue-on-error: true
61+
- id: logs
62+
name: Show results and Upload logs
63+
run: ./tools/github/checkAndUploadLogs.sh ${{ env.TEST_SUITE }}
64+
- name: Slack Notification
65+
run: >
66+
./tools/github/writeOnSlack.sh
67+
"[$TEST_SUITE]" ${{ steps.tests.outcome }} on ${GH_BUILD}
68+
$'\nbranch:' $GH_BRANCH
69+
$'\nmessage:' "$(git log -1 --oneline | cat)"
70+
$'\nlogs:' ${{ steps.logs.outputs.logs }}
71+
$'\nreport:' ${{ steps.logs.outputs.report }}
72+
- name: Results
73+
run: test "${{ steps.tests.outcome }}" == "success"

0 commit comments

Comments
 (0)