Skip to content

Commit cb659d3

Browse files
authored
Updated versions of dependencies (#197)
* Fixed vulnerabilities by updating dependencies Switched to python 3.10 * [run-notebook-tests] [CodeBuild] To enable using latest version of ansible-core. Needed to add dependency to importlib-metadata as no longer provisioned with python 3.10. * upgraded AWS codebuild image to aws/codebuild/standard:6.0 in templates/release_code_build.jinja.yaml and templates/ci_code_build.jinja.yaml * Fixed review findings
1 parent 75b3f71 commit cb659d3

File tree

18 files changed

+1081
-786
lines changed

18 files changed

+1081
-786
lines changed

.github/actions/prepare_poetry_env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
python-version:
55
description: 'The Python version to use'
66
required: true
7-
default: '3.8'
7+
default: '3.10'
88
runs:
99
using: "composite"
1010
steps:

.github/workflows/check_version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- name: Setup Python & Poetry Environment
1616
uses: ./.github/actions/prepare_poetry_env
1717
- name: Check Release
18-
run: ./scripts/build/check_release.sh "python3.8"
18+
run: ./scripts/build/check_release.sh "python3.10"

.github/workflows/release_droid_upload_github_release_assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Python & Poetry Environment
1818
uses: ./.github/actions/prepare_poetry_env
1919
- name: Build Release
20-
run: ./scripts/build/check_release.sh "python3.8"
20+
run: ./scripts/build/check_release.sh "python3.10"
2121

2222
upload:
2323
needs: check-release

aws-code-build/ci/buildspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ phases:
1010

1111
install:
1212
runtime-versions:
13-
python: 3.8
13+
python: 3.10
1414
commands:
1515
- git submodule update --init --recursive
1616
- curl -sSL https://install.python-poetry.org | python3 -
1717
- export PATH=$PATH:$HOME/.local/bin
18-
- poetry env use $(command -v "python3.8")
18+
- poetry env use $(command -v "python3.10")
1919
- poetry install
2020

2121
pre_build:

aws-code-build/ci/buildspec_release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ phases:
1515

1616
install:
1717
runtime-versions:
18-
python: 3.8
18+
python: 3.10
1919
commands:
2020
- git submodule update --init --recursive
2121
- curl -sSL https://install.python-poetry.org | python3 -
2222
- export PATH=$PATH:$HOME/.local/bin
23-
- poetry env use $(command -v "python3.8")
23+
- poetry env use $(command -v "python3.10")
2424
- poetry install
2525

2626
pre_build:

dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dependencies
22

3-
- Python 3.8
3+
- Python 3.10
44
- Poetry
55
- AWS
66

doc/changes/changes_0.2.1.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,48 @@
1-
# ai-lab 0.2.1, released 2024-??-??
1+
# AI-Lab 0.2.1, released 2024-??-??
22

3-
Code name: Fix cloud storage notebook
3+
Code name: Fix Cloud Storage Notebook
44

55
## Summary
66

7+
This release fixes the Cloud Storage notebook and also fixes vulnerabilities by updating dependencies in file `poetry.lock` and GitHub workflows.
8+
9+
Impact and delimitation
10+
* Updating the dependencies required to upgrade the build environment from Python `3.8` to `3.10`.
11+
* Also AWS codebuild image need to be upgraded from `aws/codebuild/standard:5.0` to `6.0`.
12+
* The Jupyterlab notebooks and their libraries remain on Python `3.8` for now.
13+
714
## AI-Lab-Release
815

916
Version: 0.2.1
1017

1118
## Features
1219

20+
n/a
21+
22+
## Security
23+
24+
* #187: Fixed vulnerabilities by updating dependencies
25+
* `ansible` from 6.7.0 to 7.7.0 to fix CVE-2023-5115, CVE-2022-3697.
26+
* `ansible-core` from 2.13.13 to 2.14.14 to fix CVE-2024-0690, CVE-2023-5764.
27+
* `urllib3` from 1.26.16 to 1.26.18 to fix CVE-2023-45803, CVE-2023-43804.
28+
* `tornado` from 6.3.2 to 6.4 to fix vulnerability to HTTP request smuggling via improper parsing of `Content-Length` fields and chunk lengths.
29+
* `paramiko` from 3.2.0 to 3.4.0 to fix CVE-2023-48795.
30+
* `jupyterlab` from 4.0.6 to 4.1.1 to fix CVE-2024-22420, CVE-2024-22421.
31+
* `jinja2` from 3.1.2 to 3.1.3 to fix CVE-2024-22195.
32+
* `gitpython` from 3.1.31 to 3.1.41 to fix CVE-2024-22190, CVE-2023-41040, CVE-2023-40590, CVE-2023-40267.
33+
* `cryptography` from 41.0.1 to 42.0.2 to fix CVE-2023-50782, CVE-2023-49083, CVE-2023-38325.
34+
* `certifi` from 2023.5.7 to 2024.2.2 to fix CVE-2023-37920.
35+
* `requests` from 2.25.1 to 2.31.0 to fix CVE-2023-32681.
36+
* `localstack` from 0.14.0 to 3.1.0 to fix CVE-2023-48054.
37+
1338
## Bug Fixes
1439

15-
* #205: Error on cloud storage notebook init
40+
* #205: Error on cloud storage notebook init
41+
42+
## Documentation
43+
44+
n/a
45+
46+
## Refactoring
47+
48+
n/a

doc/developer_guide/developer_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ the virtual image formats.
1010

1111
This package requires:
1212

13-
* Python (>=3.8)
13+
* Python (>=3.19)
1414
* Poetry (>=1.2.0)
1515
* Docker (for integration tests)
1616
* AWS CLI

exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/transformers/te_introduction.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# Introduction\n",
99
"\n",
10-
"This set of notebooks demonstrates the functionality of the Exasol Transformer Extension. The extension allows the use of a pre-trained NLP model that can be found at the Haggingface Model Hub. It consists of a number of UDF and Lua scripts. The scripts can be uploaded into the database using a Python library.\n",
10+
"This set of notebooks demonstrates the functionality of the Exasol Transformer Extension. The extension allows the use of a pre-trained NLP model that can be found at the Huggingface Model Hub. It consists of a number of UDF and Lua scripts. The scripts can be uploaded into the database using a Python library.\n",
1111
"\n",
1212
"For more information, please refer to the Transformer Extension <a href=\"https://github.com/exasol/transformers-extension/blob/main/doc/user_guide/user_guide.md\" target=\"_blank\" rel=\"noopener\">User Guide</a>.\n",
1313
"\n",

exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/requirements_jupyter.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
jupyterlab==4.0.6
1+
jupyterlab==4.1.1
22
# enable interactive Javascript widgets in the notebooks
33
ipywidgets==8.1.1
44
pexpect==4.8.0

exasol/ds/sandbox/templates/ci_code_build.jinja.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Resources:
9292
Environment:
9393
Type: LINUX_CONTAINER
9494
ComputeType: BUILD_GENERAL1_SMALL
95-
Image: aws/codebuild/standard:5.0
95+
Image: aws/codebuild/standard:6.0
9696
Source:
9797
Type: GITHUB
9898
Location: "https://github.com/exasol/ai-lab"

exasol/ds/sandbox/templates/release_code_build.jinja.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Resources:
8686
Environment:
8787
Type: LINUX_CONTAINER
8888
ComputeType: BUILD_GENERAL1_SMALL
89-
Image: aws/codebuild/standard:5.0
89+
Image: aws/codebuild/standard:6.0
9090
Source:
9191
Type: GITHUB
9292
Location: "https://github.com/exasol/ai-lab"

0 commit comments

Comments
 (0)