Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: missed errors #247

Closed
Borda opened this issue Oct 22, 2024 · 0 comments · Fixed by #248
Closed

ci: missed errors #247

Borda opened this issue Oct 22, 2024 · 0 comments · Fixed by #248
Labels

Comments

@Borda
Copy link
Contributor

Borda commented Oct 22, 2024

just checking since we have tests for this but all CI is 🟢
so seems we have an issue with testing, I see the error treated as a warning
python-cachier/cachier/actions/runs/11446891113/job/31847045677#step:5:219

=============================== warnings summary ===============================
tests/test_pickle_core.py::test_bad_cache_file[False]
  /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/threadexception.py:82: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-139
  
  Traceback (most recent call last):
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/threading.py", line 932, in _bootstrap_inner
      self.run()
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/watchdog/observers/api.py", line 212, in run
      self.dispatch_events(self.event_queue)
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/watchdog/observers/api.py", line 386, in dispatch_events
      handler.dispatch(event)
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/watchdog/events.py", line 364, in dispatch
      super().dispatch(event)
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/watchdog/events.py", line [218](https://github.com/python-cachier/cachier/actions/runs/11446891113/job/31847045677#step:5:219), in dispatch
      {
    File "/home/runner/work/cachier/cachier/src/cachier/cores/pickle.py", line 67, in on_modified
      self._check_calculation()
    File "/home/runner/work/cachier/cachier/src/cachier/cores/pickle.py", line 51, in _check_calculation
      if not entry._processing:
  AttributeError: 'NoneType' object has no attribute '_processing'
  
    warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))

tests/test_pickle_core.py::test_delete_cache_file[False]
  /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/threadexception.py:82: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-154
  
  Traceback (most recent call last):
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/threading.py", line 932, in _bootstrap_inner
      self.run()
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/watchdog/observers/api.py", line 212, in run
      self.dispatch_events(self.event_queue)
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/watchdog/observers/api.py", line 386, in dispatch_events
      handler.dispatch(event)
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/watchdog/events.py", line 364, in dispatch
      super().dispatch(event)
    File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/watchdog/events.py", line 218, in dispatch
      {
    File "/home/runner/work/cachier/cachier/src/cachier/cores/pickle.py", line 67, in on_modified
      self._check_calculation()
    File "/home/runner/work/cachier/cachier/src/cachier/cores/pickle.py", line 51, in _check_calculation
      if not entry._processing:
  AttributeError: 'NoneType' object has no attribute '_processing'
  
    warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================== XPASSES ====================================

---------- coverage: platform linux, python 3.8.18-final-0 -----------
Name                            Stmts   Miss Branch BrPart  Cover   Missing
---------------------------------------------------------------------------
src/cachier/__init__.py             4      0      0      0   100%
src/cachier/__main__.py             8      8      0      0     0%   3-17
src/cachier/_types.py               4      0      0      0   100%
src/cachier/_version.py            17      2      2      1    84%   25->36, 29-32
src/cachier/config.py              65      6     12      0    92%   71-79, 110-118
src/cachier/core.py               141      9     42      2    93%   191, 268-275
src/cachier/cores/__init__.py       0      0      0      0   100%
src/cachier/cores/base.py          49      0      4      0   100%
src/cachier/cores/memory.py        56      1      8      1    97%   68
src/cachier/cores/mongo.py         61     29     10      1    46%   56-64, 68, 71-84, 87-88, 105, 112-113, 123-132, 135, 138
src/cachier/cores/pickle.py       162      3     46      1    98%   58-59, [235](https://github.com/python-cachier/cachier/actions/runs/11446891113/job/31847045677#step:5:236)
---------------------------------------------------------------------------
TOTAL                             567     58    124      6    89%
Coverage XML written to file cov.xml

=========================== short test summary info ============================
XFAIL tests/test_pickle_core.py::test_bad_cache_file[True]
XFAIL tests/test_pickle_core.py::test_delete_cache_file[True]
XPASS tests/test_pickle_core.py::test_bad_cache_file[False]
XPASS tests/test_pickle_core.py::test_delete_cache_file[False]
= 83 passed, 19 deselected, 2 xfailed, 2 xpassed, 2 warnings in 171.89s (0:02:51) =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant