Skip to content

Fix proxy lost log rotation, filling up disk and hogging CPU and RAM to parse large logs on restart #1209

Fix proxy lost log rotation, filling up disk and hogging CPU and RAM to parse large logs on restart

Fix proxy lost log rotation, filling up disk and hogging CPU and RAM to parse large logs on restart #1209

Workflow file for this run

name: Unit tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
# For a given workflow, if we push to the same branch, cancel all previous builds on that branch except on master.
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Set up Python3
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: "3.11"
cache: 'pip'
- name: Install Python CI Dependencies
run: |
python -m pip install --require-hashes -r ./tests/requirements.txt
- name: Test with pytest
run: |
python -m pytest ./tests/unit