From 995dbdac808ec261cb1c27841261ba9d84a90b42 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 25 Oct 2023 07:30:57 +0200 Subject: [PATCH 01/29] README.md updated --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34b02fc..5eacbaa 100644 --- a/README.md +++ b/README.md @@ -104,8 +104,8 @@ volumes: ## Debian/Ubuntu/macOS (manual method using `git clone` and python virtual environment) -Tested on `Debian 11 (bullseye)` and `macOS Ventura (13.6)`, Ubuntu may also work. **Please note that setup on macOS -differs from Debian based systems.** +Tested on `Debian 11 (bullseye)`, `Debian 12 (bookworm)` and `macOS Ventura (13.6)`, Ubuntu may also work. +**Please note that setup on macOS differs from Debian based systems.** **Make sure you are logged in as root.** From 01fd954252721782cadc9a57fc891a32e22149b0 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 25 Oct 2023 07:31:29 +0200 Subject: [PATCH 02/29] implemented python test matrix for different python dependencies on different os releases --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a60359d..2280cf1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -134,8 +134,14 @@ test: - if: $CI_PIPELINE_SOURCE == "merge_request_event" variables: DATABASE: sqlite:///../app/db.sqlite + parallel: + matrix: + - REQUIREMENTS: + - requirements.txt + - .DEBIAN/requirements-bookworm-12.txt + - .DEBIAN/requirements-ubuntu-23.04.txt before_script: - - pip install -r requirements.txt + - pip install -r $REQUIREMENTS - pip install pytest httpx - mkdir -p app/cert - openssl genrsa -out app/cert/instance.private.pem 2048 From 6f9107087b16674a1725057891286ee9cb0ddcc3 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 25 Oct 2023 07:36:17 +0200 Subject: [PATCH 03/29] added os specific requirements.txt --- .DEBIAN/requirements-bookworm-12.txt | 11 +++++++++++ .DEBIAN/requirements-ubuntu-23.04.txt | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .DEBIAN/requirements-bookworm-12.txt create mode 100644 .DEBIAN/requirements-ubuntu-23.04.txt diff --git a/.DEBIAN/requirements-bookworm-12.txt b/.DEBIAN/requirements-bookworm-12.txt new file mode 100644 index 0000000..4819f80 --- /dev/null +++ b/.DEBIAN/requirements-bookworm-12.txt @@ -0,0 +1,11 @@ +# https://packages.debian.org/hu/ +fastapi==0.92.0 +uvicorn[standard]==0.17.6 +python-jose[pycryptodome]==3.3.0 +pycryptodome==3.11.0 +python-dateutil==2.8.2 +sqlalchemy==1.3.22 +markdown==3.4.1 +python-dotenv==0.21.0 +jinja2==3.0.3 +httpx==0.23.3 diff --git a/.DEBIAN/requirements-ubuntu-23.04.txt b/.DEBIAN/requirements-ubuntu-23.04.txt new file mode 100644 index 0000000..f2d4b05 --- /dev/null +++ b/.DEBIAN/requirements-ubuntu-23.04.txt @@ -0,0 +1,10 @@ +# https://packages.ubuntu.com +fastapi==0.91.0 +uvicorn[standard]==0.15.0 +python-jose[pycryptodome]==3.3.0 +pycryptodome==3.11.0 +python-dateutil==2.8.2 +sqlalchemy==1.4.46 +markdown==3.4.3 +python-dotenv==0.21.0 +jinja2==3.1.2 From dc33c29158675605431be46712716589a19ed84d Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 3 Nov 2023 08:23:07 +0100 Subject: [PATCH 04/29] fixed versions & added 16.2 as supported --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5eacbaa..86c7b34 100644 --- a/README.md +++ b/README.md @@ -427,8 +427,9 @@ Successfully tested with this package versions: | vGPU Suftware | Linux vGPU Manager | Linux Driver | Windows Driver | Release Date | |---------------|--------------------|--------------|----------------|---------------| -| `16.1` | `535.54.06` | `535.54.03` | `536.25` | August 2023 | -| `16.0` | `535.104.06` | `535.104.05` | `537.13` | July 2023 | +| `16.2` | `535.129.03` | `535.129.03` | `537.70` | October 2023 | +| `16.1` | `535.104.06` | `535.104.05` | `537.13` | August 2023 | +| `16.0` | `535.54.06` | `535.54.03` | `536.22` | July 2023 | | `15.3` | `525.125.03` | `525.125.06` | `529.11` | June 2023 | | `15.2` | `525.105.14` | `525.105.17` | `528.89` | March 2023 | | `15.1` | `525.85.07` | `525.85.05` | `528.24` | January 2023 | From b11579de98219fb67fe7e94e907b20c71364549d Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 3 Nov 2023 09:28:23 +0100 Subject: [PATCH 05/29] fixed debian package versions --- .DEBIAN/requirements-bookworm-12.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.DEBIAN/requirements-bookworm-12.txt b/.DEBIAN/requirements-bookworm-12.txt index 4819f80..6b107fe 100644 --- a/.DEBIAN/requirements-bookworm-12.txt +++ b/.DEBIAN/requirements-bookworm-12.txt @@ -4,7 +4,7 @@ uvicorn[standard]==0.17.6 python-jose[pycryptodome]==3.3.0 pycryptodome==3.11.0 python-dateutil==2.8.2 -sqlalchemy==1.3.22 +sqlalchemy==1.4.46 markdown==3.4.1 python-dotenv==0.21.0 jinja2==3.0.3 From ee50ede2ea96238386719076543e6005b5bc5aa9 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 3 Nov 2023 10:49:06 +0100 Subject: [PATCH 06/29] fixes --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2280cf1..d87c863 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -141,6 +141,7 @@ test: - .DEBIAN/requirements-bookworm-12.txt - .DEBIAN/requirements-ubuntu-23.04.txt before_script: + - apt-get update && apt-get install -y python3-dev - pip install -r $REQUIREMENTS - pip install pytest httpx - mkdir -p app/cert From 3ef14e5522f30db4250bfa029483abf155c490ee Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 3 Nov 2023 11:41:44 +0100 Subject: [PATCH 07/29] added gcc as dependency --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d87c863..627051b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -141,7 +141,7 @@ test: - .DEBIAN/requirements-bookworm-12.txt - .DEBIAN/requirements-ubuntu-23.04.txt before_script: - - apt-get update && apt-get install -y python3-dev + - apt-get update && apt-get install -y python3-dev gcc - pip install -r $REQUIREMENTS - pip install pytest httpx - mkdir -p app/cert From 948934ad0ead761e9210b47f1e7e9bb689c89067 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 3 Nov 2023 12:53:50 +0100 Subject: [PATCH 08/29] fixed testing dependency --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 627051b..6f528b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -142,6 +142,7 @@ test: - .DEBIAN/requirements-ubuntu-23.04.txt before_script: - apt-get update && apt-get install -y python3-dev gcc + - pip install cython - pip install -r $REQUIREMENTS - pip install pytest httpx - mkdir -p app/cert From 236948e483685c4c36f2465fb19bd31f27fd2431 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 3 Nov 2023 14:03:48 +0100 Subject: [PATCH 09/29] updated test to debian bookworm --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f528b2..022ebd7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -126,7 +126,7 @@ build:pacman: - "*.pkg.tar.zst" test: - image: python:3.11-slim-bullseye + image: python:3.11-slim-bookworm stage: test rules: - if: $CI_COMMIT_BRANCH From f97ee9c8fc68552aeb167b9c6677caf2368a158f Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 12 Jan 2024 14:25:03 +0100 Subject: [PATCH 10/29] updated debian bookworm 12 dependencies --- .DEBIAN/requirements-bookworm-12.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.DEBIAN/requirements-bookworm-12.txt b/.DEBIAN/requirements-bookworm-12.txt index 6b107fe..223c64c 100644 --- a/.DEBIAN/requirements-bookworm-12.txt +++ b/.DEBIAN/requirements-bookworm-12.txt @@ -7,5 +7,5 @@ python-dateutil==2.8.2 sqlalchemy==1.4.46 markdown==3.4.1 python-dotenv==0.21.0 -jinja2==3.0.3 +jinja2==3.1.2 httpx==0.23.3 From e9ad1d77910bd9cfd338fddfa1a9e9b61a18c72e Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 12 Jan 2024 14:53:17 +0100 Subject: [PATCH 11/29] requirements.txt updated --- requirements.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4178b56..68afc4f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -fastapi==0.103.1 -uvicorn[standard]==0.23.2 +fastapi==0.109.0 +uvicorn[standard]==0.25.0 python-jose==3.3.0 -pycryptodome==3.19.0 +pycryptodome==3.20.0 python-dateutil==2.8.2 -sqlalchemy==2.0.21 -markdown==3.4.4 +sqlalchemy==2.0.25 +markdown==3.5.2 python-dotenv==1.0.0 From 9473f10653ca9ff5ecaa79ca96af2d20e7f82460 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 17 Jan 2024 08:08:37 +0100 Subject: [PATCH 12/29] added tests for Ubuntu "Mantic Minotaur" --- .DEBIAN/requirements-ubuntu-23.10.txt | 10 ++++++++++ .gitlab-ci.yml | 3 ++- README.md | 5 +++-- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .DEBIAN/requirements-ubuntu-23.10.txt diff --git a/.DEBIAN/requirements-ubuntu-23.10.txt b/.DEBIAN/requirements-ubuntu-23.10.txt new file mode 100644 index 0000000..4cab03f --- /dev/null +++ b/.DEBIAN/requirements-ubuntu-23.10.txt @@ -0,0 +1,10 @@ +# https://packages.ubuntu.com +fastapi==0.101.0 +uvicorn[standard]==0.23.2 +python-jose[pycryptodome]==3.3.0 +pycryptodome==3.11.0 +python-dateutil==2.8.2 +sqlalchemy==1.4.47 +markdown==3.4.4 +python-dotenv==1.0.0 +jinja2==3.1.2 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 022ebd7..3130f5f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -140,6 +140,7 @@ test: - requirements.txt - .DEBIAN/requirements-bookworm-12.txt - .DEBIAN/requirements-ubuntu-23.04.txt + - .DEBIAN/requirements-ubuntu-23.10.txt before_script: - apt-get update && apt-get install -y python3-dev gcc - pip install cython @@ -201,7 +202,7 @@ test:debian: test:ubuntu: extends: .test:linux - image: ubuntu:23.04 + image: ubuntu:23.10 test:archlinux: image: archlinux:base diff --git a/README.md b/README.md index 86c7b34..5bd6af9 100644 --- a/README.md +++ b/README.md @@ -318,8 +318,9 @@ Packages are available here: Successful tested with: - Debian 12 (Bookworm) -- Ubuntu 22.10 (Kinetic Kudu) (EOL!) -- Ubuntu 23.04 (Lunar) +- Ubuntu 22.10 (Kinetic Kudu) (EOL: July 20, 2023) +- Ubuntu 23.04 (Lunar Lobster) (EOL: January 2024) +- Ubuntu 23.10 (Mantic Minotaur) (EOL: July 2024) Not working with: From 3bdfc94527d053417eaefb71f9a5d67a76b569bc Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 17 Jan 2024 09:33:58 +0100 Subject: [PATCH 13/29] removed tests for "23.04" > gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-install-sazb8fvo/httptools_694f06fa2e354ed9ba9f5c167df7fce4/vendor/llhttp/include -I/tmp/pip-install-sazb8fvo/httptools_694f06fa2e354ed9ba9f5c167df7fce4/vendor/llhttp/src -I/usr/local/include/python3.11 -c httptools/parser/parser.c -o build/temp.linux-x86_64-cpython-311/httptools/parser/parser.o -O2 httptools/parser/parser.c:212:12: fatal error: longintrepr.h: No such file or directory --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3130f5f..2755ced 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -139,7 +139,6 @@ test: - REQUIREMENTS: - requirements.txt - .DEBIAN/requirements-bookworm-12.txt - - .DEBIAN/requirements-ubuntu-23.04.txt - .DEBIAN/requirements-ubuntu-23.10.txt before_script: - apt-get update && apt-get install -y python3-dev gcc From c7f354d50c023e63e5af0f9d1329401c3da723df Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 17 Jan 2024 11:33:22 +0100 Subject: [PATCH 14/29] removed "cython" from "test" --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2755ced..920a8b0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -142,7 +142,6 @@ test: - .DEBIAN/requirements-ubuntu-23.10.txt before_script: - apt-get update && apt-get install -y python3-dev gcc - - pip install cython - pip install -r $REQUIREMENTS - pip install pytest httpx - mkdir -p app/cert From 22110df7911a173bb6eebbe90b462225c9ad1fc3 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 17 Jan 2024 22:37:33 +0100 Subject: [PATCH 15/29] =?UTF-8?q?added=20code=5Fquality=20=E2=80=9CSOURCE?= =?UTF-8?q?=5FCODE=E2=80=9D=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 920a8b0..10b9bb0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -218,6 +218,8 @@ test:archlinux: - pacman -U --noconfirm *.pkg.tar.zst code_quality: + variables: + SOURCE_CODE: app rules: - if: $CODE_QUALITY_DISABLED when: never From 21d052523faaef6bd64f6ed41f0b8672444d9b43 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 17 Jan 2024 22:43:47 +0100 Subject: [PATCH 16/29] added code_quality debug --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10b9bb0..4982492 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -220,6 +220,8 @@ test:archlinux: code_quality: variables: SOURCE_CODE: app + CODECLIMATE_DEBUG: 1 + REPORT_STDOUT: 1 rules: - if: $CODE_QUALITY_DISABLED when: never From d37d96dc34531d544412ca9149cc380280e0f777 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 17 Jan 2024 23:05:57 +0100 Subject: [PATCH 17/29] fixed test_coverage (fail on matrix) --- .gitlab-ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4982492..07e57f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -242,10 +242,22 @@ semgrep-sast: - if: $CI_PIPELINE_SOURCE == "merge_request_event" test_coverage: - extends: test +# extends: test + image: python:3.11-slim-bookworm allow_failure: true + stage: test rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" + variables: + DATABASE: sqlite:///../app/db.sqlite + before_script: + - apt-get update && apt-get install -y python3-dev gcc + - pip install -r requirements.txt + - pip install pytest httpx + - mkdir -p app/cert + - openssl genrsa -out app/cert/instance.private.pem 2048 + - openssl rsa -in app/cert/instance.private.pem -outform PEM -pubout -out app/cert/instance.public.pem + - cd test script: - pip install pytest pytest-cov - coverage run -m pytest main.py From af8b1c23876e20d92960261511e4839ccf928ade Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 17 Jan 2024 23:13:20 +0100 Subject: [PATCH 18/29] Update .codeclimate.yml --- .codeclimate.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.codeclimate.yml b/.codeclimate.yml index 09c810c..2f7e959 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,7 +1,11 @@ +version: "2" plugins: bandit: enabled: true sonar-python: enabled: true + config: + tests_patterns: + - test/** pylint: enabled: true From d3c4dc3fb76868b2a6b552526d08ac2cbeb66887 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 08:34:43 +0100 Subject: [PATCH 19/29] disabled code_quality debug --- .gitlab-ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07e57f0..7c7693f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -220,8 +220,6 @@ test:archlinux: code_quality: variables: SOURCE_CODE: app - CODECLIMATE_DEBUG: 1 - REPORT_STDOUT: 1 rules: - if: $CODE_QUALITY_DISABLED when: never From 9c686913dd3411b14187b2f95d1a5f094d951b8a Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 12:46:51 +0100 Subject: [PATCH 20/29] disabled pylint --- .codeclimate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 2f7e959..931aa68 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -7,5 +7,5 @@ plugins: config: tests_patterns: - test/** - pylint: - enabled: true +# pylint: +# enabled: true From 867cd7018ae5bfd385de64bf0309e3727adf6044 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 12:58:43 +0100 Subject: [PATCH 21/29] removed pylint --- .codeclimate.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 931aa68..fd7ed1f 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -7,5 +7,3 @@ plugins: config: tests_patterns: - test/** -# pylint: -# enabled: true From 2baaeb561b3897e128e02b3783aa1135f4577c29 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 12:59:06 +0100 Subject: [PATCH 22/29] run different jobs on "$CI_DEFAULT_BRANCH" --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c7693f..94ea964 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -224,6 +224,7 @@ code_quality: - if: $CODE_QUALITY_DISABLED when: never - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH secret_detection: rules: @@ -238,6 +239,7 @@ semgrep-sast: - if: $SAST_DISABLED when: never - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH test_coverage: # extends: test @@ -280,6 +282,7 @@ gemnasium-python-dependency_scanning: - if: $DEPENDENCY_SCANNING_DISABLED when: never - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH .deploy: rules: From 46f6c9fe997908883514899a1656405a5f2d0d27 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 13:06:45 +0100 Subject: [PATCH 23/29] fixed CI/CD path from "/builds" to "/tmp/builds" --- .PKGBUILD/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.PKGBUILD/PKGBUILD b/.PKGBUILD/PKGBUILD index 3913360..f1ed955 100644 --- a/.PKGBUILD/PKGBUILD +++ b/.PKGBUILD/PKGBUILD @@ -12,7 +12,7 @@ depends=('python' 'python-jose' 'python-starlette' 'python-httpx' 'python-fastap provider=("$pkgname") install="$pkgname.install" backup=('etc/default/fastapi-dls') -source=('git+file:///builds/oscar.krause/fastapi-dls' # https://gitea.publichub.eu/oscar.krause/fastapi-dls.git +source=('git+file:///tmp/builds/oscar.krause/fastapi-dls' # https://gitea.publichub.eu/oscar.krause/fastapi-dls.git "$pkgname.default" "$pkgname.service" "$pkgname.tmpfiles") From 6aa197dcaebb9b437004cdcde8e0d7f0df12e552 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 13:09:30 +0100 Subject: [PATCH 24/29] only run test matrix when "app" or "test" changes --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 94ea964..4ef1a94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -129,9 +129,13 @@ test: image: python:3.11-slim-bookworm stage: test rules: - - if: $CI_COMMIT_BRANCH + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_TAG - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH + changes: + - app/**/* + - test/**/* variables: DATABASE: sqlite:///../app/db.sqlite parallel: From 4fb90a22e3ddcb3eaaccaa1324d70b3aa6a8ea9d Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 13:10:12 +0100 Subject: [PATCH 25/29] make tests interruptible --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ef1a94..0ef24bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -128,6 +128,7 @@ build:pacman: test: image: python:3.11-slim-bookworm stage: test + interruptible: true rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_TAG From 0696900d6729dd1d3d208a03379b0d5006f5987b Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 13:30:30 +0100 Subject: [PATCH 26/29] fixes --- .PKGBUILD/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.PKGBUILD/PKGBUILD b/.PKGBUILD/PKGBUILD index f1ed955..85a35cc 100644 --- a/.PKGBUILD/PKGBUILD +++ b/.PKGBUILD/PKGBUILD @@ -12,7 +12,7 @@ depends=('python' 'python-jose' 'python-starlette' 'python-httpx' 'python-fastap provider=("$pkgname") install="$pkgname.install" backup=('etc/default/fastapi-dls') -source=('git+file:///tmp/builds/oscar.krause/fastapi-dls' # https://gitea.publichub.eu/oscar.krause/fastapi-dls.git +source=("git+file://${CI_PROJECT_DIR}" # todo: support dynamic CI/CD paths "$pkgname.default" "$pkgname.service" "$pkgname.tmpfiles") From 213e768708affa8c8ee7d2679b8792d999ddd53f Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Thu, 18 Jan 2024 17:02:09 +0100 Subject: [PATCH 27/29] removed todo --- .PKGBUILD/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.PKGBUILD/PKGBUILD b/.PKGBUILD/PKGBUILD index 85a35cc..09f606b 100644 --- a/.PKGBUILD/PKGBUILD +++ b/.PKGBUILD/PKGBUILD @@ -12,7 +12,7 @@ depends=('python' 'python-jose' 'python-starlette' 'python-httpx' 'python-fastap provider=("$pkgname") install="$pkgname.install" backup=('etc/default/fastapi-dls') -source=("git+file://${CI_PROJECT_DIR}" # todo: support dynamic CI/CD paths +source=("git+file://${CI_PROJECT_DIR}" "$pkgname.default" "$pkgname.service" "$pkgname.tmpfiles") From 7c70d121be22de07891586ba0de7d51b8b727837 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 26 Feb 2024 20:53:33 +0100 Subject: [PATCH 28/29] requirements.txt updated --- requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 68afc4f..6eea61c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -fastapi==0.109.0 -uvicorn[standard]==0.25.0 +fastapi==0.110.0 +uvicorn[standard]==0.27.1 python-jose==3.3.0 pycryptodome==3.20.0 python-dateutil==2.8.2 -sqlalchemy==2.0.25 +sqlalchemy==2.0.27 markdown==3.5.2 -python-dotenv==1.0.0 +python-dotenv==1.0.1 From ed59260a104c9c02e9544fdd6218a8eddcb561ce Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 26 Feb 2024 20:53:47 +0100 Subject: [PATCH 29/29] added "16.3" support --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 5bd6af9..8f7ffea 100644 --- a/README.md +++ b/README.md @@ -428,6 +428,7 @@ Successfully tested with this package versions: | vGPU Suftware | Linux vGPU Manager | Linux Driver | Windows Driver | Release Date | |---------------|--------------------|--------------|----------------|---------------| +| `16.3` | `535.154.02` | `535.154.05` | `538.15` | January 2024 | | `16.2` | `535.129.03` | `535.129.03` | `537.70` | October 2023 | | `16.1` | `535.104.06` | `535.104.05` | `537.13` | August 2023 | | `16.0` | `535.54.06` | `535.54.03` | `536.22` | July 2023 | @@ -440,6 +441,11 @@ Successfully tested with this package versions: - https://docs.nvidia.com/grid/index.html +*To get the latest drivers, visit Nvidia or search in Discord-Channel `GPU Unlocking` (Server-ID: `829786927829745685`) on channel `licensing` `biggerthanshit` + + +https://archive.biggerthanshit.com/NVIDIA/ (nvidia / b1gg3rth4nsh1t) + ## Linux Download *client-token* and place it into `/etc/nvidia/ClientConfigToken`: