Skip to content

Commit

Permalink
TMP TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
tdesveaux committed Nov 2, 2024
1 parent 0ac01e7 commit b6f4e3a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 45 deletions.
57 changes: 13 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ permissions:
contents: read

jobs:
win:
name: Win / python ${{ matrix.python-version }}
runs-on: windows-2019
ci:
name: ${{ matrix.runs-version }} / python ${{ matrix.python-version }}
runs-on: ${{ matrix.runs-version }}

strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.12"]
runs-version:
- ubuntu-latest
- windows-2019
- windows-2022

env:
# Needed to ignore specific warns, otherwise, it'll warn a generic message
Expand Down Expand Up @@ -44,48 +48,13 @@ jobs:
python -m pip install -r requirements-pip.txt
python -m pip install -r requirements-ci.txt
python -m pip list
# Check that pywin32 is properly installed
python -c "import win32api"
- name: "Run tests for ${{ matrix.python-version }}"
run: "python -m twisted.trial --reporter=text --rterrors --exitfirst buildbot.test buildbot_worker.test"
timeout-minutes: 30

linux:
name: Linux / python ${{ matrix.python-version }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

env:
# Needed to ignore specific warns, otherwise, it'll warn a generic message
SQLALCHEMY_WARN_20: 1
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.python-version }}"
cache: 'pip'
cache-dependency-path: |
requirements-ci.txt
requirements-cidb.txt
master/setup.py
worker/setup.py
pkg/setup.py
- name: "Install dependencies"
- name: "Check win32api"
if: ${{ matrix.runs-version != 'ubuntu-latest' }}
run: |
python -c "import sys; print(sys.prefix)"
python -c "import sys; print(sys.exec_prefix)"
python -c "import sys; print(sys.executable)"
python -V -V
python -m pip install -U pip setuptools wheel
python -m pip install -r requirements-ci.txt
python -m pip list
# Check that pywin32 is properly installed
python -c "import win32api"
- name: "Run tests for ${{ matrix.python-version }}"
run: "python -m twisted.trial --reporter=text --rterrors --exitfirst buildbot.test buildbot_worker.test"
run: "python -m twisted.trial --reporter=text --rterrors --exitfirst buildbot.test.integration.test_steps_configurable.BuildbotTestCiTest.test_buildbot_ci"
timeout-minutes: 30
2 changes: 1 addition & 1 deletion .github/workflows/cidb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI (DB)
on:
push:
branches:
- fake_master
# - fake_master
- release

permissions:
Expand Down
1 change: 1 addition & 0 deletions master/buildbot/db/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ def _put_close(res: None | Failure) -> None | Failure:
assert not isinstance(item, _CloseObj)
with condition:
condition.notify()
print(f"{item=!r} ({type(item)})", flush=True)
yield item

assert worker_task.called
Expand Down

0 comments on commit b6f4e3a

Please sign in to comment.