Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
57da5f4
1.0.0
Luke-Roy-IBM Mar 10, 2023
dae2348
1.1.0 remove codescan
Luke-Roy-IBM Mar 10, 2023
d8ba7a8
1.2.0 add python at version 3.9
Luke-Roy-IBM Mar 10, 2023
d2f2e8b
1.3.0 restructure
Luke-Roy-IBM Mar 10, 2023
50ddcc2
1.4.0 python
Luke-Roy-IBM Mar 10, 2023
c094fc4
1.5.0 python config
Luke-Roy-IBM Mar 13, 2023
ea460c6
1.6.0 pip install
Luke-Roy-IBM Mar 13, 2023
f058411
1.6.1 pip
Luke-Roy-IBM Mar 13, 2023
8676148
1.7.0 pip cache
Luke-Roy-IBM Mar 13, 2023
b27e80f
1.8.0 no pip cache
Luke-Roy-IBM Mar 13, 2023
cbe67a4
1.2.0 check py3
Luke-Roy-IBM Mar 13, 2023
a4b0a97
1.2.1 check python
Luke-Roy-IBM Mar 13, 2023
78c3507
1.3.0 find ansible
Luke-Roy-IBM Mar 13, 2023
f41db3e
1.3.1 find ansible
Luke-Roy-IBM Mar 13, 2023
f210968
1.4.1 update openwhisk tag
Luke-Roy-IBM Mar 13, 2023
99cee50
1.4.2 remove and update to 3.10
Luke-Roy-IBM Mar 13, 2023
44a1543
1.5.0 update ansible
Luke-Roy-IBM Mar 13, 2023
831f833
1.5.1 update ansible
Luke-Roy-IBM Mar 13, 2023
5270ea3
1.5.2 update ansible
Luke-Roy-IBM Mar 13, 2023
0d69da7
1.5.3 downgrade ansible
Luke-Roy-IBM Mar 30, 2023
f37a4d5
1.5.4 remove ansible
Luke-Roy-IBM Mar 30, 2023
21b16c4
1.5.5 jinja pining
Luke-Roy-IBM Mar 30, 2023
5877a74
1.5.6 jinja
Luke-Roy-IBM Mar 30, 2023
554e812
1.5.7 markupsafe
Luke-Roy-IBM Apr 12, 2023
4f7b485
1.5.8 remove and reinstall markupsafe
Luke-Roy-IBM Apr 12, 2023
c734c6c
1.5.9 autoconfirm
Luke-Roy-IBM Apr 12, 2023
7631d10
1.6.0 update ansible to 5.10.0
Luke-Roy-IBM Apr 12, 2023
b3bdac3
1.6.1 update ansible to 5.10.0
Luke-Roy-IBM Apr 12, 2023
6ed6c25
1.7.0 jinja2 3.0.3
Luke-Roy-IBM Apr 12, 2023
7100527
1.8.0 Ansible debug mode
Luke-Roy-IBM Apr 12, 2023
42c69ea
1.9.0 ubuntu-20.04
Luke-Roy-IBM Apr 12, 2023
ec90830
2.0.0 run test script
Luke-Roy-IBM Apr 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 104 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,113 @@ jobs:

build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: Check out the repo
uses: actions/checkout@v2
# Checkout just this repo
- name: Checkout runtime repo
uses: actions/checkout@v3
# with:
# path: runtime

- uses: actions/setup-python@v4
# # run scanCode
# - name: Scan Code
# uses: apache/openwhisk-utilities/scancode@master

# # Install core OpenWhisk artifacts needed to build/test anything else
# - name: Checkout OpenWhisk core repo
# uses: actions/checkout@v3
# with:
# repository: ibm-functions/openwhisk
# ref: master/7ae02b8ede4f4b4068b3b95dbc3f02f902d936c9
# path: core
# fetch-depth: 0

# Setup Python to run the Scala Tests
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

# Setup Java to run the Scala Tests
- name: Setup Java
uses: actions/setup-java@v3
with:
python-version: '3.9'
distribution: 'temurin'
java-version: '11'


# # Setup OpenWhisk
# - name: Setup OpenWhisk
# working-directory: core
# run: |
# ./tools/travis/setup.sh



# - name: Compile and Install Core OpenWhisk
# working-directory: core
# run: |
# export OPENWHISK_HOME=$(pwd)/../core
# IMAGE_PREFIX="testing"
# docker pull ibmfunctions/controller:nightly
# docker tag ibmfunctions/controller:nightly ${IMAGE_PREFIX}/controller
# docker pull ibmfunctions/invoker:nightly
# docker tag ibmfunctions/invoker:nightly ${IMAGE_PREFIX}/invoker
# ./gradlew install

# # Build Runtime:
# - name: Build Runtime
# working-directory: runtime
# run: |
# IMAGE_PREFIX="testing"
# ./gradlew distDocker -PdockerImagePrefix=${IMAGE_PREFIX}

# - name: Deploy
# working-directory: core
# run: |
# export OPENWHISK_HOME=$(pwd)/../core


- name: befor install -> install python3-pip
run: sudo apt-get install -y python3-pip

- name: befor install -> upgrade pip setuptools six
run: |
pip install --user --upgrade pip setuptools six
pip3 install --user --upgrade pip setuptools six

- name: Python verison
run: |
python --version
python3 --version
python3.10 --version
pip --version
pip3 --version
pip3.10 --version

- name: befor install -> setup.sh
run: |
./tools/travis/setup.sh

- name: script -> build
run: |
./tools/travis/build.sh

- name: script -> deploy
run: |
pip install --user jinja2==3.0.3
./tools/travis/deploy.sh

- name: script-> test
run: |
./tools/travis/test.sh




- name: befor install
run: sudo update-ca-certificates --fresh && ./tools/travis/setup.sh
# - name: befor install
# run: sudo update-ca-certificates --fresh && ./tools/travis/setup.sh

- name: script
run: ./tools/travis/build.sh && ./tools/travis/deploy.sh && ./tools/travis/test.sh
# - name: script
# run: ./tools/travis/build.sh && ./tools/travis/deploy.sh && ./tools/travis/test.sh
2 changes: 1 addition & 1 deletion tools/travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ IMAGE_PREFIX="testing"

# Setup Ansible CMD
cd $WHISKDIR/ansible
ANSIBLE_CMD="ansible-playbook -i ${ROOTDIR}/ansible/environments/local -e docker_image_prefix=${IMAGE_PREFIX}"
ANSIBLE_CMD="ansible-playbook -vvv -i ${ROOTDIR}/ansible/environments/local -e docker_image_prefix=${IMAGE_PREFIX}"

# Weird probem with Travis container names already taken, but we are suppose to get a clean VM
$ANSIBLE_CMD teardown.yml
Expand Down
5 changes: 2 additions & 3 deletions tools/travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ cd $HOMEDIR
# Clone and setup openwhisk to have a local test environment.
git clone https://github.com/ibm-functions/openwhisk.git openwhisk
cd openwhisk
# Use a fixed commit to run the tests, to explicitly control when changes are consumed.
# Commit: Dedicated Invokers (#5292)
git checkout 7ae02b8ede4f4b4068b3b95dbc3f02f902d936c9

git checkout 8d7f1dfc85b12fda81153c34a540f6c01a4780f4

./tools/travis/setup.sh