Skip to content

Commit

Permalink
TEMP: debugging in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Feb 16, 2025
1 parent 3568659 commit 4cbdcd1
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 68 deletions.
132 changes: 66 additions & 66 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,73 +24,73 @@ jobs:
strategy:
matrix:
task:
- check-whole-repo-tests
- lint
- check-format
# - check-whole-repo-tests
# - lint
# - check-format
- check-coverage
- check-conjecture-coverage
- check-py39-cover
- check-pypy39-cover
- check-py310-cover
- check-py310-nocover
- check-py310-niche
- check-pypy310-cover
# - check-py310-pyjion # see notes in tox.ini
- check-py311-cover
- check-py311-nocover
- check-py311-niche
- check-py312-cover
- check-py312-nocover
- check-py312-niche
- check-py313-cover
- check-py313-nocover
- check-py313-niche
- check-py313t-cover
- check-py313t-nocover
- check-py313t-niche
# - check-py314-cover
# - check-py314-nocover
# - check-py314-niche
# - check-py314t-cover
# - check-py314t-nocover
# - check-py314t-niche
- check-quality
## Skip all the (inactive/old) Rust and Ruby tests pending fixes
# - lint-ruby
# - check-ruby-tests
# - check-rust-in-ruby-format
# - lint-rust-in-ruby
# - audit-rust-in-ruby
# - check-conjecture-rust-format
# - check-rust-tests
# - audit-conjecture-rust
# - lint-conjecture-rust
- check-py39-nose
- check-py39-pytest46
- check-py39-pytest54
- check-pytest62
- check-django51
- check-django50
- check-django42
- check-pandas22
- check-pandas21
- check-pandas20
- check-pandas15
- check-pandas14
- check-pandas13
## FIXME: actions update means Python builds without eg _bz2, which was required
# - check-py39-pandas12
# - check-py39-pandas11
## `-cover` is too slow under crosshair; use a custom split
# - check-crosshair-custom-cover/test_[a-d]*
# - check-crosshair-custom-cover/test_[e-i]*
# - check-crosshair-custom-cover/test_[j-r]*
# - check-crosshair-custom-cover/test_[s-z]*
# - check-crosshair-custom-pytest/test_*
# - check-crosshair-nocover
# - check-crosshair-niche
- check-py39-oldestnumpy
- check-numpy-nightly
# - check-conjecture-coverage
# - check-py39-cover
# - check-pypy39-cover
# - check-py310-cover
# - check-py310-nocover
# - check-py310-niche
# - check-pypy310-cover
# # - check-py310-pyjion # see notes in tox.ini
# - check-py311-cover
# - check-py311-nocover
# - check-py311-niche
# - check-py312-cover
# - check-py312-nocover
# - check-py312-niche
# - check-py313-cover
# - check-py313-nocover
# - check-py313-niche
# - check-py313t-cover
# - check-py313t-nocover
# - check-py313t-niche
# # - check-py314-cover
# # - check-py314-nocover
# # - check-py314-niche
# # - check-py314t-cover
# # - check-py314t-nocover
# # - check-py314t-niche
# - check-quality
# ## Skip all the (inactive/old) Rust and Ruby tests pending fixes
# # - lint-ruby
# # - check-ruby-tests
# # - check-rust-in-ruby-format
# # - lint-rust-in-ruby
# # - audit-rust-in-ruby
# # - check-conjecture-rust-format
# # - check-rust-tests
# # - audit-conjecture-rust
# # - lint-conjecture-rust
# - check-py39-nose
# - check-py39-pytest46
# - check-py39-pytest54
# - check-pytest62
# - check-django51
# - check-django50
# - check-django42
# - check-pandas22
# - check-pandas21
# - check-pandas20
# - check-pandas15
# - check-pandas14
# - check-pandas13
# ## FIXME: actions update means Python builds without eg _bz2, which was required
# # - check-py39-pandas12
# # - check-py39-pandas11
# ## `-cover` is too slow under crosshair; use a custom split
# # - check-crosshair-custom-cover/test_[a-d]*
# # - check-crosshair-custom-cover/test_[e-i]*
# # - check-crosshair-custom-cover/test_[j-r]*
# # - check-crosshair-custom-cover/test_[s-z]*
# # - check-crosshair-custom-pytest/test_*
# # - check-crosshair-nocover
# # - check-crosshair-niche
# - check-py39-oldestnumpy
# - check-numpy-nightly
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions hypothesis-python/src/hypothesis/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ class Handler(FileSystemEventHandler):
def on_created(
_self, event: Union[FileCreatedEvent, DirCreatedEvent]
) -> None:
print("create", event)
# we only registered for the file creation event
assert not isinstance(event, DirCreatedEvent)
# watchdog events are only bytes if we passed a byte path to
Expand Down Expand Up @@ -470,6 +471,7 @@ def on_created(
def on_deleted(
self, event: Union[FileDeletedEvent, DirDeletedEvent]
) -> None:
print("delete", event)
assert not isinstance(event, DirDeletedEvent)
assert isinstance(event.src_path, str)

Expand All @@ -481,6 +483,7 @@ def on_deleted(
_broadcast_change(("delete", (key, None)))

def on_moved(self, event: Union[FileMovedEvent, DirMovedEvent]) -> None:
print("move", event)
assert not isinstance(event, DirMovedEvent)
assert isinstance(event.src_path, str)
assert isinstance(event.dest_path, str)
Expand Down
6 changes: 4 additions & 2 deletions hypothesis-python/tests/watchdog/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def listener(event):
("save", (b"a", b"c")),
# DirectoryBased
("delete", (b"a", None)),
("save", (b"a", b"c"))
("save", (b"a", b"c")),
}


Expand Down Expand Up @@ -112,6 +112,8 @@ def listener(event):
time_sleep(0.2)

windows = sys.platform.startswith("win")
print("platform", sys.platform)
print("events", events[3:])
assert events[3:] == [
# the move event in watchdog knows the exact moved value and so can send
# it in the delete event. But windows fires a save/delete at the watchdog
Expand All @@ -120,4 +122,4 @@ def listener(event):
("save", (b"k2", b"v3")),
("delete", (b"k2", None if windows else b"v3")),
("save", (b"k1", b"v3")),
], str(events)
], str(events[3:])

0 comments on commit 4cbdcd1

Please sign in to comment.