Skip to content
Merged
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
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ jobs:
python-version: "3.13"
- name: Install toolchain
run: |
pip install setuptools wheel
pip install -r requirements-dev.txt
pip install gitpython freebsd_sysctl==0.0.7
pip install --no-build-isolation jail==0.0.12
pip install -r requirements.txt
- name: Run static checks
run: sh scripts/check.sh

Expand All @@ -34,10 +32,7 @@ jobs:
python-version: "3.13"
- name: Install dependencies
run: |
pip install setuptools wheel
pip install -r requirements-test.txt
pip install gitpython freebsd_sysctl==0.0.7
pip install --no-build-isolation jail==0.0.12
pip install -r requirements.txt -r requirements-test.txt
- name: Run the platform-independent tests
run: pytest --cov=libioc --cov-report=term

Expand Down Expand Up @@ -76,6 +71,6 @@ jobs:
uses: gronke/freebsd-ci/.github/actions/run@main
with:
run: |
/root/venv/bin/pip install -q --no-build-isolation -r requirements.txt -r requirements-test.txt
/root/venv/bin/pip install -q --no-build-isolation -e .
/root/venv/bin/pip install -q -r requirements.txt -r requirements-test.txt
/root/venv/bin/pip install -q -e .
/root/venv/bin/pytest tests --zpool ioc-test
5 changes: 4 additions & 1 deletion libioc/JailParams.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ def __update_sysctl_jail_params(self) -> None:
self.__base_class(prefix).children
)
# permanently store the queried sysctl in the singleton class
# cast for mypy: Sysctl.children constructs type(self), so the
# items are JailParam instances at runtime while the upstream
# annotation stays with the base class
JailParams.__sysctl_params = dict([
(x.name.rstrip("."), x,)
(x.name.rstrip("."), typing.cast(JailParam, x),)
for x in jail_params
])

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gitpython
freebsd_sysctl==0.0.7
jail==0.0.12
freebsd_sysctl @ git+https://github.com/gronke/py-freebsd_sysctl.git@92f6cf5dd4cab3a9b7e4ef04c4ca0dbeec74e181
jail @ git+https://github.com/gronke/py-jail.git@8f935ed34e447216599e4f8964c64c89c708ad40
65 changes: 0 additions & 65 deletions stubs/freebsd_sysctl/__init__.pyi

This file was deleted.

20 changes: 0 additions & 20 deletions stubs/freebsd_sysctl/flags.pyi

This file was deleted.

4 changes: 0 additions & 4 deletions stubs/freebsd_sysctl/libc.pyi

This file was deleted.

62 changes: 0 additions & 62 deletions stubs/freebsd_sysctl/types.pyi

This file was deleted.

4 changes: 2 additions & 2 deletions tools/vm/50-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ rsync -a --delete \
"${REPO_DIR}/" root@127.0.0.1:/root/libioc/

echo "Installing libioc into the guest venv."
run_guest 'cd /root/libioc && /root/venv/bin/pip install -q --no-build-isolation -r requirements.txt -r requirements-test.txt'
run_guest 'cd /root/libioc && /root/venv/bin/pip install -q --no-build-isolation -e .'
run_guest 'cd /root/libioc && /root/venv/bin/pip install -q -r requirements.txt -r requirements-test.txt'
run_guest 'cd /root/libioc && /root/venv/bin/pip install -q -e .'

case "${TIER}" in
tier0)
Expand Down