issue with repos that have checked in empty directories

Bug #1728128 reported by Doug Hellmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
reno
New
Low
Unassigned

Bug Description

2017-10-26 23:53:46.592153 | ubuntu-xenial | + echo 'Generating email body in /home/zuul/relnotes/openstack-ansible-haproxy_server-16.0.2'
2017-10-26 23:53:46.592224 | ubuntu-xenial | Generating email body in /home/zuul/relnotes/openstack-ansible-haproxy_server-16.0.2
2017-10-26 23:53:46.592371 | ubuntu-xenial | + release-notes --email --email-tags '[openstackansible]' --series pike --publishing-dir-name openstack-ansible-haproxy_server . openstack-ansible-haproxy_server 16.0.0.0rc1 16.0.2 --description 'haproxy_server role for OpenStack-Ansible'
2017-10-26 23:53:46.592438 | ubuntu-xenial | + tee /home/zuul/relnotes/openstack-ansible-haproxy_server-16.0.2
2017-10-26 23:53:47.253940 | ubuntu-xenial | WARNING: No bug url found in '/home/zuul/src/git.openstack.org/openstack/openstack-ansible-haproxy_server/README.rst'
2017-10-26 23:53:47.254038 | ubuntu-xenial | WARNING: No source url found in '/home/zuul/src/git.openstack.org/openstack/openstack-ansible-haproxy_server/README.rst'
2017-10-26 23:53:47.255368 | ubuntu-xenial | Traceback (most recent call last):
2017-10-26 23:53:47.255447 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack-infra/release-tools/.tox/venv/bin/release-notes", line 10, in <module>
2017-10-26 23:53:47.255477 | ubuntu-xenial | sys.exit(main())
2017-10-26 23:53:47.255535 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack-infra/release-tools/releasetools/cmds/release_notes.py", line 127, in main
2017-10-26 23:53:47.255577 | ubuntu-xenial | publishing_dir_name=args.publishing_dir_name or args.library_name,
2017-10-26 23:53:47.255639 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack-infra/release-tools/releasetools/release_notes.py", line 352, in generate_release_notes
2017-10-26 23:53:47.255669 | ubuntu-xenial | ldr = loader.Loader(conf=cfg)
2017-10-26 23:53:47.255732 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack-infra/release-tools/.tox/venv/lib/python3.5/site-packages/reno/loader.py", line 60, in __init__
2017-10-26 23:53:47.255758 | ubuntu-xenial | self._load_data()
2017-10-26 23:53:47.255822 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack-infra/release-tools/.tox/venv/lib/python3.5/site-packages/reno/loader.py", line 80, in _load_data
2017-10-26 23:53:47.255858 | ubuntu-xenial | self._scanner_output = self._scanner.get_notes_by_version()
2017-10-26 23:53:47.255927 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack-infra/release-tools/.tox/venv/lib/python3.5/site-packages/reno/scanner.py", line 1031, in get_notes_by_version
2017-10-26 23:53:47.255968 | ubuntu-xenial | for fname in d_index.get_unstaged_changes(index, self.reporoot):
2017-10-26 23:53:47.256037 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack-infra/release-tools/.tox/venv/lib/python3.5/site-packages/dulwich/index.py", line 583, in get_unstaged_changes
2017-10-26 23:53:47.256074 | ubuntu-xenial | blob = blob_from_path_and_stat(full_path, os.lstat(full_path))
2017-10-26 23:53:47.256144 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack-infra/release-tools/.tox/venv/lib/python3.5/site-packages/dulwich/index.py", line 555, in blob_from_path_and_stat
2017-10-26 23:53:47.256173 | ubuntu-xenial | with open(fs_path, 'rb') as f:
2017-10-26 23:53:47.256234 | ubuntu-xenial | IsADirectoryError: [Errno 21] Is a directory: b'/home/zuul/src/git.openstack.org/openstack/openstack-ansible-haproxy_server/tests/common'
2017-10-26 23:53:47.293618 | ubuntu-xenial | + echo

http://logs.openstack.org/cb/cbad54b5c48ad577b1edb00442aea8a943231fde/release/announce-release/6b8cbf1/job-output.txt.gz

Revision history for this message
Stephen Finucane (stephenfinucane) wrote :

I didn't even know Git would let you do this. In any case, we should probably be catching that exception and ignoring it.

Changed in reno:
importance: Undecided → Low
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

The bug tracker for reno has moved to storyboard: https://storyboard.openstack.org/#!/project/933

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.