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 is currently broken on Windows #528

Open
umarcor opened this issue Nov 4, 2021 · 3 comments
Open

CI is currently broken on Windows #528

umarcor opened this issue Nov 4, 2021 · 3 comments

Comments

@umarcor
Copy link
Contributor

umarcor commented Nov 4, 2021

See, for instance, https://github.com/umarcor/fusesoc/actions/runs/1417056062.

@umarcor umarcor mentioned this issue Nov 4, 2021
@imphil
Copy link
Collaborator

imphil commented Nov 8, 2021

tox: py3-ci
  py3-ci installdeps: pytest, pytest-github-actions-annotate-failures
  py3-ci inst: D:\a\fusesoc\fusesoc\.tox\.tmp\package\1\fusesoc-0.1.dev1+g1576bac.zip
  py3-ci installed: atomicwrites==1.4.0,attrs==21.2.0,colorama==0.4.4,edalize==0.2.5,fusesoc @ file:///D:/a/fusesoc/fusesoc/.tox/.tmp/package/1/fusesoc-0.1.dev1%2Bg1576bac.zip,importlib-metadata==4.8.1,iniconfig==1.1.1,Jinja2==3.0.2,jsonschema==4.1.2,MarkupSafe==2.0.1,okonomiyaki==1.3.2,packaging==21.2,pluggy==1.0.0,py==1.10.0,pyparsing==2.4.7,pyrsistent==0.18.0,pytest==6.2.5,pytest-github-actions-annotate-failures==0.1.5,PyYAML==6.0,simplesat==0.8.2,six==1.16.0,toml==0.10.2,typing-extensions==3.10.0.2,zipfile2==0.0.12,zipp==3.6.0
  py3-ci run-test-pre: PYTHONHASHSEED='763'
  py3-ci run-test: commands[0] | /bin/rm -rf 'D:\a\fusesoc\fusesoc\.tox/.tmp/homedir'
  ERROR: InvocationError for command /bin/rm -rf 'D:\a\fusesoc\fusesoc\.tox/.tmp/homedir' (exited with code 2)

@umarcor
Copy link
Contributor Author

umarcor commented Nov 8, 2021

That seems to be coming from the tox.ini:

/bin/rm -rf {toxworkdir}/.tmp/homedir

@olofk
Copy link
Owner

olofk commented Nov 8, 2021

I guess the proper fix is to install a library in a throwaway dir for tests that need them. Or make them work with a mock library that the test suite supplies. Can't tell without digging deeper into this

halfow added a commit to halfow/fusesoc that referenced this issue Aug 8, 2023
* Resolve XDG paths in a OS independent way (using pathlib.Path)
* Create directories for config file if it does not exist.
* Workaround for removal of tmp XDG files on windows.
  shutil.rmtree sometimes fails one windows, seems to be UAC related.
olofk pushed a commit that referenced this issue Nov 17, 2023
* Resolve XDG paths in a OS independent way (using pathlib.Path)
* Create directories for config file if it does not exist.
* Workaround for removal of tmp XDG files on windows.
  shutil.rmtree sometimes fails one windows, seems to be UAC related.
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

3 participants