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

Intermittent CI failure: install-on-tty OSError: [Errno 39] Directory not empty: '.git' #160

Open
awelzel opened this issue Apr 21, 2023 · 0 comments

Comments

@awelzel
Copy link
Contributor

awelzel commented Apr 21, 2023

The test failed after a merge to master, but a re-run fixed it.. This is for record keeping in case it happens again.

https://cirrus-ci.com/task/4539628506578944?logs=test#L1

ci/test.sh
[#2] tests.install-on-tty ... failed
  % 'bash /tmp/cirrus-ci-build/testing/.tmp/tests.install-on-tty/install-on-tty' failed unexpectedly (exit code 1)
  % cat .stderr
  Switched to a new branch 'main'
  Switched to a new branch 'drop-corge'
  Switched to branch 'master'
  warning: skipped using package source named "one": failed to clone git repo
  error: package "foo" is not installed
  Traceback (most recent call last):
    File "/tmp/cirrus-ci-build/testing/../zkg", line 3040, in <module>
      main()
    File "/tmp/cirrus-ci-build/testing/../zkg", line 3036, in main
      args.run_cmd(manager, args, config, configfile)
    File "/tmp/cirrus-ci-build/testing/../zkg", line 626, in cmd_install
      package_info = manager.info(name, version=version, prefer_installed=False)
    File "/tmp/cirrus-ci-build/zeekpkg/manager.py", line 1770, in info
      return self._info(package, status, version)
    File "/tmp/cirrus-ci-build/zeekpkg/manager.py", line 1786, in _info
      clone = _clone_package(package, clonepath, version)
    File "/tmp/cirrus-ci-build/zeekpkg/manager.py", line 3206, in _clone_package
      delete_path(clonepath)
    File "/tmp/cirrus-ci-build/zeekpkg/_util.py", line 51, in delete_path
      shutil.rmtree(path)
    File "/usr/lib64/python3.6/shutil.py", line 486, in rmtree
      _rmtree_safe_fd(fd, path, onerror)
    File "/usr/lib64/python3.6/shutil.py", line 428, in _rmtree_safe_fd
      onerror(os.rmdir, fullname, sys.exc_info())
    File "/usr/lib64/python3.6/shutil.py", line 426, in _rmtree_safe_fd
      os.rmdir(name, dir_fd=topfd)
  OSError: [Errno 39] Directory not empty: '.git'

1 of 43 tests failed
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

1 participant