Skip to content

Commit

Permalink
Merge branch 'main' into dev/v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carlkidcrypto committed Sep 27, 2024
2 parents e5a6134 + 66e1325 commit 37fc038
Show file tree
Hide file tree
Showing 36 changed files with 233 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .github/comment-valgrind-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

| Python Version | Results | OS Version |
| --------------- | --------------- | ------------- |
| 3.8 | {{ .py3_8 }} | ubuntu-latest |
| 3.9 | {{ .py3_9 }} | ubuntu-latest |
| 3.10 | {{ .py3_10 }} | ubuntu-latest |
| 3.11 | {{ .py3_11 }} | ubuntu-latest |
| 3.12 | {{ .py3_12 }} | ubuntu-latest |
| 3.13 | {{ .py3_13 }} | ubuntu-latest |
4 changes: 2 additions & 2 deletions .github/workflows/build_and_publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build wheels using cibuildwheel
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: python -m cibuildwheel --output-dir wheelhouse --platform linux;

Expand All @@ -49,7 +49,7 @@ jobs:
python-version: "3.10"

- name: Set up dependencies
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: sudo apt-get update;
sudo apt-get install -y libsnmp-dev libperl-dev;
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_and_publish_to_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build wheels using cibuildwheel
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: python -m cibuildwheel --output-dir wheelhouse --platform linux;

Expand All @@ -67,7 +67,7 @@ jobs:
python-version: "3.10"

- name: Set up dependencies
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: sudo apt-get update;
sudo apt-get install -y libsnmp-dev libperl-dev;
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- name: Set up dependencies
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: sudo apt-get update;
sudo apt-get install -y snmpd libsnmp-dev libperl-dev snmp-mibs-downloader valgrind;
Expand All @@ -67,6 +67,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
allow-prereleases: true
python-version: ${{ matrix.python-version }}

- name: Install pip dependencies
Expand Down Expand Up @@ -95,7 +96,7 @@ jobs:
$SNMPD -C -c tests/snmpd.conf -r -Le $mibdir -m ALL
- name: Run Integration Tests "Total execution time"
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: |
cd /home/runner/work/ezsnmp/ezsnmp/integration_tests;
Expand All @@ -108,7 +109,7 @@ jobs:
echo "artifactPath1=/Users/runner/work/ezsnmp/ezsnmp/integration_tests/total_execution_time_${{matrix.os}}_${{matrix.python-version}}.log" >> $GITHUB_ENV;
- name: Run Integration Tests "usm_unknown_security_name_counter"
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: |
cd /home/runner/work/ezsnmp/ezsnmp/integration_tests;
Expand All @@ -121,7 +122,7 @@ jobs:
echo "artifactPath2=/Users/runner/work/ezsnmp/ezsnmp/integration_tests/usm_unknown_security_name_counter_${{matrix.os}}_${{matrix.python-version}}.log" >> $GITHUB_ENV;
- name: Run Integration Tests "connection_error_counter"
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: |
cd /home/runner/work/ezsnmp/ezsnmp/integration_tests;
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sphinx_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
python-version: "3.10"

- name: Install python3/os requirements...
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: sudo apt-get update;
sudo apt-get upgrade -y;
Expand All @@ -58,7 +58,7 @@ jobs:
python -m pip install . --user;

- name: Run sphinx...
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: cd /home/runner/work/ezsnmp/ezsnmp/sphinx_docs_build;
mkdir source/_static;
Expand Down
57 changes: 27 additions & 30 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- name: Set up dependencies
uses: carlkidcrypto/os-specific-runner@v2.1.0
uses: carlkidcrypto/os-specific-runner@v2.1.1
with:
linux: sudo apt-get update;
sudo apt-get install -y snmpd libsnmp-dev libperl-dev snmp-mibs-downloader valgrind;
Expand All @@ -73,6 +73,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
allow-prereleases: true
python-version: ${{ matrix.python-version }}

- name: Install pip dependencies
Expand Down Expand Up @@ -122,15 +123,15 @@ jobs:
)
echo 'PYTHONMALLOC=malloc' >> $GITHUB_OUTPUT
fi
${VALGRIND[@]} python -m pytest ${PYTEST_ARGS[@]} --junitxml=test-results_${{ matrix.os }}_${{ matrix.python-version }}.xml | tee ./test-outputs_${{ matrix.os }}_${{ matrix.python-version }}.log
${VALGRIND[@]} python -m pytest ${PYTEST_ARGS[@]} --junitxml=test-results_${{ matrix.os }}_${{ matrix.python-version }}.xml | tee ./test-outputs_${{ matrix.os }}_${{ matrix.python-version }}.txt
- name: Upload Test Results
uses: actions/upload-artifact@v4
with:
name: pytest-results_${{matrix.os}}_${{matrix.python-version}}
path: |
test-results_${{ matrix.os }}_${{ matrix.python-version }}.xml
test-outputs_${{ matrix.os }}_${{ matrix.python-version }}.log
test-outputs_${{ matrix.os }}_${{ matrix.python-version }}.txt
- name: Upload Valgrind Reports
uses: actions/upload-artifact@v4
Expand All @@ -149,19 +150,6 @@ jobs:
pattern: pytest-results_*
merge-multiple: false

- name: Create multi-file output listing
run: |
cd /home/runner/work/ezsnmp/ezsnmp/
echo 'pytest_multiple_files<<EOF' >> $GITHUB_OUTPUT
export test_xml=($(ls -d pytest-results_*latest_*/*.xml | sort ))
export test_log=($(ls -d pytest-results_*latest_*/*.log | sort ))
for i in "${!test_log[@]}"
do
echo "$(echo ${test_log[$i]} | cut -d_ -f2) - $(echo ${test_log[$i]%.*} | cut -d_ -f3), ${test_log[$i]}, ${test_xml[$i]}" >> $GITHUB_OUTPUT
done
echo 'EOF' >> $GITHUB_OUTPUT
echo $GITHUB_OUTPUT
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@v1.1.52
with:
Expand All @@ -172,7 +160,16 @@ jobs:
hide-comment: false
report-only-changed-files: false
multiple-files: |
${{ env.pytest_multiple_files }}
macos-latest - 3.9, pytest-results_macos-latest_3.9/test-outputs_macos-latest_3.9.txt, pytest-results_macos-latest_3.9/test-results_macos-latest_3.9.xml
macos-latest - 3.10, pytest-results_macos-latest_3.10/test-outputs_macos-latest_3.10.txt, pytest-results_macos-latest_3.10/test-results_macos-latest_3.10.xml
macos-latest - 3.11, pytest-results_macos-latest_3.11/test-outputs_macos-latest_3.11.txt, pytest-results_macos-latest_3.11/test-results_macos-latest_3.11.xml
macos-latest - 3.12, pytest-results_macos-latest_3.12/test-outputs_macos-latest_3.12.txt, pytest-results_macos-latest_3.12/test-results_macos-latest_3.12.xml
macos-latest - 3.13, pytest-results_macos-latest_3.13/test-outputs_macos-latest_3.13.txt, pytest-results_macos-latest_3.13/test-results_macos-latest_3.13.xml
ubuntu-latest - 3.9, pytest-results_ubuntu-latest_3.9/test-outputs_ubuntu-latest_3.9.txt, pytest-results_ubuntu-latest_3.9/test-results_ubuntu-latest_3.9.xml
ubuntu-latest - 3.10, pytest-results_ubuntu-latest_3.10/test-outputs_ubuntu-latest_3.10.txt, pytest-results_ubuntu-latest_3.10/test-results_ubuntu-latest_3.10.xml
ubuntu-latest - 3.11, pytest-results_ubuntu-latest_3.11/test-outputs_ubuntu-latest_3.11.txt, pytest-results_ubuntu-latest_3.11/test-results_ubuntu-latest_3.11.xml
ubuntu-latest - 3.12, pytest-results_ubuntu-latest_3.12/test-outputs_ubuntu-latest_3.12.txt, pytest-results_ubuntu-latest_3.12/test-results_ubuntu-latest_3.12.xml
ubuntu-latest - 3.13, pytest-results_ubuntu-latest_3.13/test-outputs_ubuntu-latest_3.13.txt, pytest-results_ubuntu-latest_3.13/test-results_ubuntu-latest_3.13.xml
make-stripped-valgrind-files:
runs-on: ${{ matrix.os }}
Expand All @@ -181,7 +178,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- name: Download Artifacts
Expand Down Expand Up @@ -226,16 +223,16 @@ jobs:
- name: Set Env Variables
id: valgrind_stripped_vars
run: |
temp1=$(cat valgrind-stripped_ubuntu-latest_3.8/valgrind-stripped_ubuntu-latest_3.8.log);
temp2=$(cat valgrind-stripped_ubuntu-latest_3.9/valgrind-stripped_ubuntu-latest_3.9.log);
temp3=$(cat valgrind-stripped_ubuntu-latest_3.10/valgrind-stripped_ubuntu-latest_3.10.log);
temp4=$(cat valgrind-stripped_ubuntu-latest_3.11/valgrind-stripped_ubuntu-latest_3.11.log);
temp5=$(cat valgrind-stripped_ubuntu-latest_3.12/valgrind-stripped_ubuntu-latest_3.12.log);
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_8=$temp1 >> $GITHUB_OUTPUT;
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_9=$temp2 >> $GITHUB_OUTPUT;
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_10=$temp3 >> $GITHUB_OUTPUT;
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_11=$temp4 >> $GITHUB_OUTPUT;
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_12=$temp5 >> $GITHUB_OUTPUT;
temp1=$(cat valgrind-stripped_ubuntu-latest_3.9/valgrind-stripped_ubuntu-latest_3.9.log);
temp2=$(cat valgrind-stripped_ubuntu-latest_3.10/valgrind-stripped_ubuntu-latest_3.10.log);
temp3=$(cat valgrind-stripped_ubuntu-latest_3.11/valgrind-stripped_ubuntu-latest_3.11.log);
temp4=$(cat valgrind-stripped_ubuntu-latest_3.12/valgrind-stripped_ubuntu-latest_3.12.log);
temp5=$(cat valgrind-stripped_ubuntu-latest_3.13/valgrind-stripped_ubuntu-latest_3.13.log);
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_9=$temp1 >> $GITHUB_OUTPUT;
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_10=$temp2 >> $GITHUB_OUTPUT;
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_11=$temp3 >> $GITHUB_OUTPUT;
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_12=$temp4 >> $GITHUB_OUTPUT;
echo VALGRIND_STRIPPED_UBUNTU_LATEST_3_13=$temp5 >> $GITHUB_OUTPUT;
- name: Checkout Sourcecode
uses: actions/checkout@v4
Expand All @@ -246,11 +243,11 @@ jobs:
with:
template: .github/comment-valgrind-template.md
vars: |
py3_8: "${{ steps.valgrind_stripped_vars.outputs.VALGRIND_STRIPPED_UBUNTU_LATEST_3_8 }}"
py3_9: "${{ steps.valgrind_stripped_vars.outputs.VALGRIND_STRIPPED_UBUNTU_LATEST_3_9 }}"
py3_10: "${{ steps.valgrind_stripped_vars.outputs.VALGRIND_STRIPPED_UBUNTU_LATEST_3_10 }}"
py3_11: "${{ steps.valgrind_stripped_vars.outputs.VALGRIND_STRIPPED_UBUNTU_LATEST_3_11 }}"
py3_12: "${{ steps.valgrind_stripped_vars.outputs.VALGRIND_STRIPPED_UBUNTU_LATEST_3_12 }}"
py3_13: "${{ steps.valgrind_stripped_vars.outputs.VALGRIND_STRIPPED_UBUNTU_LATEST_3_13 }}"
- name: Create A Comment For PR
uses: peter-evans/create-or-update-comment@v4
Expand Down
Binary file modified docs/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/doctrees/exceptions.doctree
Binary file not shown.
Binary file modified docs/doctrees/ez.doctree
Binary file not shown.
Binary file modified docs/doctrees/helpers.doctree
Binary file not shown.
Binary file modified docs/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/doctrees/modules.doctree
Binary file not shown.
Binary file modified docs/doctrees/session.doctree
Binary file not shown.
Binary file modified docs/doctrees/utils.doctree
Binary file not shown.
Binary file modified docs/doctrees/variables.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 00675fa2c0a114acca2acbda5bf5e901
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion docs/html/_static/css/theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/html/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const DOCUMENTATION_OPTIONS = {
VERSION: 'V1.0.0',
VERSION: 'V1.1.0a1',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
Loading

0 comments on commit 37fc038

Please sign in to comment.