Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ version: 2.1
jobs:
aarch64-test-docker-image:
machine:
# https://circleci.com/developer/machine/image/ubuntu-2204
image: ubuntu-2204:2023.10.1
# https://circleci.com/developer/machine/image/ubuntu-2404
image: ubuntu-2404:2025.09.1
resource_class: arm.medium
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
Expand All @@ -32,8 +32,8 @@ jobs:

aarch64-build-and-push-docker-image:
machine:
# https://circleci.com/developer/machine/image/ubuntu-2204
image: ubuntu-2204:2023.10.1
# https://circleci.com/developer/machine/image/ubuntu-2404
image: ubuntu-2404:2025.09.1
resource_class: arm.medium
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions: read-all

jobs:
acceptance:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions: read-all
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverity_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions: read-all
jobs:
scan:
name: "coverity scan"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions: read-all

jobs:
build_and_push:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/integration_bugtracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on:
branches: master
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions: read-all

jobs:
integration_test:
name: ${{ matrix.tracker }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down
38 changes: 11 additions & 27 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
branches: master
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions: read-all

jobs:
doc8:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -26,7 +30,7 @@ jobs:
make doc8

flake8:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -44,7 +48,7 @@ jobs:

# this still contains failures
pylint:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -62,28 +66,8 @@ jobs:
export LANG=en-us
make pylint

pylint_site_packages:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]

steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Lint with pylint
run: |
pip install -r requirements/mariadb.txt
pip install -r requirements/postgres.txt
pip install -r requirements/devel.txt

make pylint_site_packages

similar_strings:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -102,7 +86,7 @@ jobs:
make similar_strings

isort:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -123,7 +107,7 @@ jobs:
isort --check --color --diff --skip kiwi_lint/__init__.py .

black:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -136,7 +120,7 @@ jobs:
- uses: psf/black@25.12.0

eslint:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v6
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
branches: master
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions: read-all

jobs:
check-docs-source-in-git:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -27,7 +31,7 @@ jobs:
make check-docs-source-in-git

test-for-missing-migrations:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -54,7 +58,7 @@ jobs:
make test_for_missing_migrations

test-migrations-rollback:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand Down
33 changes: 7 additions & 26 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
branches: master
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions: read-all

jobs:
checkov:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -26,7 +30,7 @@ jobs:
checkov --quiet --directory .

bandit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand All @@ -42,33 +46,10 @@ jobs:
pip install bandit
make bandit

# this is expected to fail b/c bandit detects lots of issues
# from 3rd party libraries!
bandit_site_packages:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]

steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Check with bandit
run: |
pip install bandit

pip install -r requirements/mariadb.txt
pip install -r requirements/postgres.txt

make bandit_site_packages

# this is expected to fail but we need to know what issues are there
npm_audit:
name: npm audit
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6

Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on:
branches: master
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions: read-all

jobs:
sqlite:
name: sqlite / english
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand Down Expand Up @@ -79,7 +83,7 @@ jobs:

check_for_unapplied_migrations:
name: check for unapplied migrations
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand Down Expand Up @@ -123,7 +127,7 @@ jobs:

without_internal_bugtracker:
name: without internal bugtracker
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand Down Expand Up @@ -168,7 +172,7 @@ jobs:

mariadb:
name: mariadb / slovenian
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand Down Expand Up @@ -222,7 +226,7 @@ jobs:

postgres:
name: postgres / french
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand Down Expand Up @@ -285,7 +289,7 @@ jobs:
path: postgres-container.log

docker:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.11]
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build:
apt_packages:
- python3-pydot
- graphviz
os: "ubuntu-22.04"
os: "ubuntu-24.04"
tools:
python: "3.11"
jobs:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.buildroot
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ENV PATH=/venv/bin:${PATH} \
RUN python3.11 -m venv /venv

# because we get some errors from other packages which need newer versions
RUN pip3 install --no-cache-dir --upgrade pip setuptools twine wheel
RUN pip3 install --no-cache-dir --upgrade pip "setuptools<82" twine wheel

# build and install the application
COPY . /Kiwi/
Expand Down
16 changes: 0 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
default: help

PATH_TO_SITE_PACKAGES = $(shell python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')
VERSION = $(shell python -m tcms)
FLAKE8_EXCLUDE=.git

Expand Down Expand Up @@ -69,26 +68,11 @@ pylint:
similar_strings:
PYTHONPATH=.:./tcms/ DJANGO_SETTINGS_MODULE=$(DJANGO_SETTINGS_MODULE) pylint --load-plugins=kiwi_lint -d all -e similar-string tcms/ tcms_settings_dir/

.PHONY: pylint_site_packages
pylint_site_packages:
if [ -d "$(PATH_TO_SITE_PACKAGES)" ]; then \
PYTHONPATH=.:./tcms/ DJANGO_SETTINGS_MODULE=tcms.settings.common \
pylint --load-plugins=kiwi_lint --disable=all --enable=avoid-generic-foreign-key \
--ignore=setuptools $(PATH_TO_SITE_PACKAGES) ;\
fi

.PHONY: bandit
bandit:
bandit -r *.py tcms/ kiwi_lint/ tcms_settings_dir/


.PHONY: bandit_site_packages
bandit_site_packages:
if [ -d "$(PATH_TO_SITE_PACKAGES)" ]; then \
bandit -a vuln -r $(PATH_TO_SITE_PACKAGES); \
fi


.PHONY: docker-image
docker-image:
sudo rm -rf dist/
Expand Down
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ django-grappelli==4.0.3
django-guardian==3.2.0
django-modern-rpc==1.1.0
django-simple-history==3.11.0
django-tree-queries==0.23.0
django-tree-queries==0.23.1
jira==3.10.5
Markdown==3.10.1
Markdown==3.10.2
# transient dependency of django-color-field/django-simple-captcha
pillow==11.3.0
PyGithub==2.8.1
Expand Down
2 changes: 1 addition & 1 deletion requirements/devel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ doc8
isort==6.1.0
colorama
black==25.12.0
locust==2.43.2
locust==2.43.3
locust-plugins[playwright]
parameterized
robotframework
Expand Down
Loading