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

Windows test workflow always ends with an error (non-critical) #677

Open
fernandezc opened this issue Jun 7, 2023 · 0 comments
Open

Windows test workflow always ends with an error (non-critical) #677

fernandezc opened this issue Jun 7, 2023 · 0 comments
Assignees

Comments

@fernandezc
Copy link
Collaborator

What happened?

Whenever a test action completes with the Windows operating system, an exception message appears (which is not the case with other operating systems) - see below log output and e.g. https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957. This is not critical, as it doesn't cause the action to fail. But it would be nice to remove it.

@atravert Do you have any idea why this is happening?

What did you expect to happen?

Clean ending!

Minimal Complete Verifiable Example

No response

Relevant log output

12.73s call     tests/test_core/test_plotters/test_plot2D.py::test_plot2D
[112](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957#step:7:113)
12.69s call     tests/test_docs/test_py_in_docs.py::test_nbsphinx_script_[script3]
[113](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957#step:7:114)
================= 499 passed, 22 skipped in 675.95s (0:11:15) =================
[114](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957#step:7:115)
Exception ignored in atexit callback: <bound method InteractiveShell.atexit_operations of <IPython.terminal.interactiveshell.TerminalInteractiveShell object at 0x0000029A8F76EC80>>
[115](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:116)
Traceback (most recent call last):
[116](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:117)
  File "C:\Users\runneradmin\.virtualenvs\.venv\lib\site-packages\IPython\core\interactiveshell.py", line 3880, in atexit_operations
[117](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:118)
    tfile.unlink()
[118](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:119)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\pathlib.py", line 1206, in unlink
[119](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:120)
    self._accessor.unlink(self)
[120](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:121)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpjieug3b3test_hist.sqlite'
[121](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:122)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=54 encoding='utf8'>
[122](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:123)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=53 encoding='utf8'>
[123](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:124)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=52 encoding='utf8'>
[124](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:125)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=51 encoding='utf8'>
[125](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:126)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=50 encoding='utf8'>
[126](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:127)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=49 encoding='utf8'>
[127](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:128)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=48 encoding='utf8'>
[128](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:129)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=47 encoding='utf8'>
[129](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:130)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=46 encoding='utf8'>
[130](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:131)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=45 encoding='utf8'>
[131](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:132)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=44 encoding='utf8'>
[132](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:133)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=43 encoding='utf8'>
[133](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:134)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=42 encoding='utf8'>
[134](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:135)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=41 encoding='utf8'>
[135](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:136)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=40 encoding='utf8'>
[136](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:137)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=39 encoding='utf8'>
[137](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:138)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=38 encoding='utf8'>
[138](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:139)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=37 encoding='utf8'>
[139](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:140)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=36 encoding='utf8'>
[140](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:141)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=35 encoding='utf8'>
[141](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:142)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=34 encoding='utf8'>
[142](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:143)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=33 encoding='utf8'>
[143](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:144)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=32 encoding='utf8'>
[144](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:145)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=31 encoding='utf8'>
[145](https://github.com/spectrochempy/spectrochempy/actions/runs/5201282168/jobs/9381210957?pr=676#step:7:146)
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=30 encoding='utf8'>
Coverage report to xml

Anything else we need to know?

No response

Environment

Github workflow

@fernandezc fernandezc added the bug Something isn't working label Jun 7, 2023
@fernandezc fernandezc removed the bug Something isn't working label Jun 7, 2023
@fernandezc fernandezc changed the title Test workflow on window always finish with a (not critical) error Window test workflow always ends with an error (non-critical) Jun 7, 2023
@fernandezc fernandezc changed the title Window test workflow always ends with an error (non-critical) Windows test workflow always ends with an error (non-critical) Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants