From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 8B49F3857C4D for ; Tue, 1 Sep 2020 15:23:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8B49F3857C4D Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-476-r2nY1GMWPtCqyK8wx9DCsg-1; Tue, 01 Sep 2020 11:23:48 -0400 X-MC-Unique: r2nY1GMWPtCqyK8wx9DCsg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 444821007465 for ; Tue, 1 Sep 2020 15:23:47 +0000 (UTC) Received: from theo.uglyboxes.com (ovpn-112-162.phx2.redhat.com [10.3.112.162]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 240B85D9CC for ; Tue, 1 Sep 2020 15:23:47 +0000 (UTC) To: bunsen@sourceware.org From: Keith Seitz Subject: Creating local play area Message-ID: <25dabd44-4d48-b809-c97c-9c0069f19d40@redhat.com> Date: Tue, 1 Sep 2020 08:23:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: bunsen@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bunsen mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 15:23:52 -0000 Hi, I'd like to play with bunsen in a local sandbox, and I've run into a problem that isn't entirely obvious to me. [I am working solely on gdb-related bits.] Here's what I've got/done: 1) checkout bunsen to CWD 2) mkdir sandbox; cd sandbox 3) ln -s ../bunsen . 4) Created a tarball in ~/tmp that contains gdb.log, gdb.sum, and a README.txt containing some more-or-less made up branch and "upstream" commit. 5) mkdir bunsen.git; pushd bunsen.git 6) git init 7) popd 8) export BUNSEN_REPO=`pwd`/bunsen.git 9) ./bunsen/bunsen-add.py project=gdb manifest=gdb.log,gdb.sum \ commit_module=gdb.commit_logs tar=test-results.tar With #9, I get a lot of "WARNING:" messages (which I will investigate later) and a python exception: Processed /tmp/tmpl_wx4eic/gdb.log Red Hat Enterprise Linux 8.3-1.el8 x86_64 66012pass 1738fail Created new branch gdb/testlogs-2020-06 Traceback (most recent call last): File "./bunsen/bunsen-add.py", line 82, in commit_id = _commit_logs.commit_logs(b, wd, tar, tarfile=tar, File "/home/keiths/work/bunsen/bunsen/scripts-master/gdb/commit_logs.py", line 241, in commit_logs commit_id = b.commit(opts.tag, wd=wd, push=False, allow_duplicates=False) File "/home/keiths/work/bunsen/bunsen/bunsen.py", line 1163, in commit wd.checkout_branch(branch_name, skip_redundant_checkout=True) File "/home/keiths/work/bunsen/bunsen/bunsen.py", line 734, in checkout_branch branch = self.create_head(branch_name) File "/usr/lib/python3.8/site-packages/git/repo/base.py", line 389, in create_head return Head.create(self, path, commit, force, logmsg) File "/usr/lib/python3.8/site-packages/git/refs/symbolic.py", line 546, in create return cls._create(repo, path, cls._resolve_ref_on_create, reference, force, logmsg) File "/usr/lib/python3.8/site-packages/git/refs/symbolic.py", line 497, in _create target = repo.rev_parse(str(reference)) File "/usr/lib/python3.8/site-packages/git/repo/fun.py", line 334, in rev_parse obj = name_to_object(repo, rev) File "/usr/lib/python3.8/site-packages/git/repo/fun.py", line 147, in name_to_object raise BadName(name) gitdb.exc.BadName: Ref 'HEAD' did not resolve to an object I've almost assuredly goofed with #6. Any idea what might be wrong? Have I missed instructions on how to properly initialize the git repo/db store? Keith