Skip to content

Commit

Permalink
run build in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Sep 9, 2024
1 parent 5b25d4f commit b1acfa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ jobs:
build_wheels:
name: Build wheels
runs-on: ubuntu-22.04

strategy:
matrix:
python-version: ["cp310", "cp311", "cp312"]
arch: ["x86_64", "i686", "aarch64"]
flavor: ["manylinux", "musllinux"]
steps:
- uses: actions/checkout@v4

Expand All @@ -114,7 +118,7 @@ jobs:
run: python -m pip install cibuildwheel

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: python -m cibuildwheel --output-dir wheelhouse --only ${{ matrix.python-version }}-${{ matrix.flavor }}-${{ matrix.arch }}

containerbuild:
strategy:
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/framework/test_pipeline_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,14 @@ def test_throttling_put_throttles(self):
mock_throttle.assert_called()

def test_throttle_sleeps(self):
with mock.patch("logprep.framework.pipeline_manager.libc.usleep") as mock_sleep:
with mock.patch("time.sleep") as mock_sleep:
queue = ThrottlingQueue(multiprocessing.get_context(), 100)
with mock.patch.object(queue, "qsize", return_value=95):
queue.throttle()
mock_sleep.assert_called()

def test_throttle_sleep_time_increases_with_qsize(self):
with mock.patch("logprep.framework.pipeline_manager.libc.usleep") as mock_sleep:
with mock.patch("time.sleep") as mock_sleep:
queue = ThrottlingQueue(multiprocessing.get_context(), 100)
with mock.patch.object(queue, "qsize", return_value=91):
queue.throttle()
Expand Down

0 comments on commit b1acfa3

Please sign in to comment.