Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit ca42940

Browse files
Github action fixes (#259)
- Add docker image cleanup so invoker doesnt run into disk pressure issue - Update Openwhisk commit tag - Add error check if tests fail to view invoker and controller logs
1 parent e1b4961 commit ca42940

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

‎.github/workflows/run-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
branches: [ "master" ]
1010
pull_request:
1111
branches: [ "master" ]
12-
12+
schedule:
13+
- cron: "0 8 * * 1" # At 08:00 AM, only on Monday
14+
1315
workflow_dispatch:
1416

1517
jobs:
@@ -44,7 +46,11 @@ jobs:
4446
pip install --user --upgrade pip setuptools six
4547
pip3 install --user --upgrade pip setuptools six
4648
47-
49+
- name: Docker Cleanup
50+
run: |
51+
docker image ls
52+
docker image rm $(docker image ls -q) -f
53+
4854
- name: befor install -> setup.sh
4955
run: |
5056
./tools/travis/setup.sh
@@ -60,4 +66,4 @@ jobs:
6066
6167
- name: script-> test
6268
run: |
63-
./tools/travis/test.sh
69+
./tools/travis/test.sh

‎tools/travis/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd $HOMEDIR
1414
git clone https://github.com/ibm-functions/openwhisk.git openwhisk
1515
cd openwhisk
1616

17-
git checkout 8d7f1dfc85b12fda81153c34a540f6c01a4780f4
17+
git checkout 03ce08c5b3fdac1a6dd3ae59f893e07cdc8628a2
1818

1919
# setup the openwhisk environment
2020
./tools/travis/setup.sh

‎tools/travis/test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
2828
else
2929
TERM=dumb ./gradlew :tests:testWithoutCredentials
3030
fi
31-
31+
echo "error code {$?}"
32+
if [[ "$?" != "0" ]]; then
33+
cat /tmp/wsklogs/invoker0/invoker0_logs.log
34+
cat /tmp/wsklogs/controller0/controller0_logs.log
35+
exit 1
36+
fi
3237

3338
#For some reason there no activations, maybe index not ready
3439
#${WHISK_CLI} activation get --last

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /