Skip to content

Commit 325125b

Browse files
authored
Merge pull request #751 from kbase/dev-update_ci_test
Update test.yml and fix failed tests
2 parents 53d4239 + b2c1dc0 commit 325125b

File tree

4 files changed

+500
-318
lines changed

4 files changed

+500
-318
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ on:
1919
jobs:
2020

2121
workspace_container_tests:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-24.04
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525

2626
- name: Set up Python 3.10
27-
uses: actions/setup-python@v3
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: "3.10"
3030

@@ -40,7 +40,7 @@ jobs:
4040
sh test/run_tests.sh
4141
4242
workspace_deluxe_tests:
43-
runs-on: ubuntu-latest
43+
runs-on: ubuntu-24.04
4444
strategy:
4545
fail-fast: false
4646
matrix:
@@ -57,18 +57,18 @@ jobs:
5757
wired_tiger: 'false'
5858
gradle_test: 'testQuick'
5959
steps:
60-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
6161

6262
- name: Set up java
63-
uses: actions/setup-java@v3
63+
uses: actions/setup-java@v4
6464
with:
6565
distribution: 'temurin'
6666
java-version: ${{matrix.java}}
6767

68-
- name: Set up Python 3.7 # sample service is on 3.7, handle service is on sdkbase2.latest
69-
uses: actions/setup-python@v3
68+
- name: Set up Python
69+
uses: actions/setup-python@v5
7070
with:
71-
python-version: "3.7"
71+
python-version: "3.9.19"
7272

7373
- name: Install dependencies and set up test config
7474
shell: bash
@@ -92,23 +92,19 @@ jobs:
9292
export ARANGO_EXE=$(pwd)/arangodb3-linux-$ARANGODB_VER/bin/arangod
9393
export ARANGO_JS=$(pwd)/arangodb3-linux-$ARANGODB_VER/usr/share/arangodb3/js/
9494
95-
# set up handle service
96-
export HS_COMMIT=08e18379817e16db920501b66ba62b66598f506c
97-
export LOG_COMMIT=b549c557e3c519e0a55eadf7863a93db25cd6806
95+
# set up handle service
96+
# HS_COMMIT corresponds to Handle Service2 tag v1.0.7
97+
export HS_COMMIT=335020d26f3663da456be5afee3cb4b8ed8622f4
9898
git clone https://github.com/kbase/handle_service2.git
9999
cd handle_service2/
100100
git checkout $HS_COMMIT
101-
sudo chmod -R 777 .
102101
cd lib/
103-
mkdir biokbase
104-
cd biokbase/
105-
wget https://raw.githubusercontent.com/kbase/sdkbase2/$LOG_COMMIT/log.py
106-
cd ..
107102
export HSDIR=`pwd`
108103
cd ../..
109104
110105
# set up sample service
111-
export SAMPLE_COMMIT=6813fb148e95db2b11db6eea04f4d1d45cbb7119
106+
# SAMPLE_COMMIT corresponds to Sample Service tag v0.2.1
107+
export SAMPLE_COMMIT=aa0303c4d5d4aa1e3cf0c9ecb36366fb1127f93e
112108
git clone https://github.com/kbase/sample_service.git
113109
cd sample_service
114110
git checkout $SAMPLE_COMMIT
@@ -151,7 +147,7 @@ jobs:
151147
./gradlew ${{matrix.gradle_test}}
152148
153149
- name: Upload coverage to Codecov
154-
uses: codecov/codecov-action@v3
150+
uses: codecov/codecov-action@v5
155151
with:
156152
token: ${{ secrets.CODECOV_TOKEN }}
157153
fail_ci_if_error: true

python_dependencies/Pipfile

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,35 @@ jsonrpcbase = "==0.2.0"
1111
requests = "==2.22.0"
1212

1313
# handle service dependencies
14-
cachetools = "*"
15-
configparser = "*"
16-
pymongo = "==3.11.0"
17-
uwsgi = "==2.0.18"
14+
cachetools = "==4.2.2"
15+
pymongo = "==4.7.2"
16+
uwsgi = "==2.0.22"
1817

1918
# sample service dependencies
2019
python-arango = "==5.0.0"
21-
apscheduler = "==3.6.3"
20+
# Upgraded to fix timezone TypeError; supports zoneinfo in Python 3.9+
21+
apscheduler = "==3.9.1"
2222
maps = "==5.1.1"
2323
cacheout = "==0.11.2"
24+
# Downgraded from 5.4 to resolve Pipfile.lock generation issues
2425
pyyaml = "==5.3"
2526
jsonschema = "==3.2.0"
26-
pint = "==0.10.1"
27+
# Fixed import error with pkg_resources.extern on Python 3.9
28+
pint = "==0.17"
2729
python-ranges = "==0.1.3"
2830
pygtrie = "==2.3.2"
29-
jinja2 = "==2.11.2"
30-
gevent = "==20.5.0"
31+
jinja2 = "==2.11.3"
32+
# Updated to support Python 3.9.19
33+
gevent = "==24.11.1"
3134
gunicorn = "==20.0.4"
3235
kafka-python = "==2.0.1"
33-
greenlet = "==0.4.16"
36+
# Compatible with gevent and Python 3.9
37+
greenlet = "==3.1.1"
3438
typing-extensions = "*"
39+
types-pyyaml = "*"
40+
types-requests = "*"
41+
pipenv = "*"
42+
shell = "*"
3543

3644
[requires]
37-
python_version = "3.7"
45+
python_version = "3.9.19"

0 commit comments

Comments
 (0)