chiark / gitweb /
Ian Jackson [Sat, 8 Nov 2014 22:02:07 +0000 (22:02 +0000)]
tests: Test dgit-ssh-dispatch
Ian Jackson [Sat, 8 Nov 2014 21:53:33 +0000 (21:53 +0000)]
infra/dgit-ssh-dispatch: New production infra script
Ian Jackson [Sat, 8 Nov 2014 21:51:28 +0000 (21:51 +0000)]
infra/ssh-wrap: New example script
Ian Jackson [Sun, 2 Nov 2014 17:02:32 +0000 (17:02 +0000)]
Diversion via dgit-git.debian.net (gideon)
Ian Jackson [Sat, 8 Nov 2014 16:04:07 +0000 (16:04 +0000)]
clone: Check for git earlier
check_for_git is going to maybe want to change the git-url, so run it
sooner. No substantial functional change.
Ian Jackson [Sat, 8 Nov 2014 16:06:57 +0000 (16:06 +0000)]
tests: Break out t-chain-test
Ian Jackson [Wed, 5 Nov 2014 21:39:23 +0000 (21:39 +0000)]
tests: Make t-alt-test out of t-drs-test
Ian Jackson [Wed, 5 Nov 2014 21:23:14 +0000 (21:23 +0000)]
tests: Honour DGIT_TEST_INTREE
Ian Jackson [Sat, 8 Nov 2014 16:37:03 +0000 (16:37 +0000)]
infra: Provide get-dm-txt
This script (which will become an example) fetches the Debian
ftpmasters' dm.txt file, which lists permissions granted to Debian
Maintainers.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 8 Nov 2014 16:45:11 +0000 (16:45 +0000)]
dgit-repos-server: Handle ' ' in SSH_ORIGINAL_COMMAND (which some git versions send, sigh).
Ian Jackson [Sun, 2 Nov 2014 16:52:57 +0000 (16:52 +0000)]
New $some-user-force config variable
This will allow dgit-distro.debian.git-user-force to be set to dgit,
but reset to '' by dgit-distro.debian/alioth.git-user-force, so that
when diverted back to alioth, we fall back to the previously-specified
username.
Ian Jackson [Sun, 2 Nov 2014 16:52:29 +0000 (16:52 +0000)]
config: New instead_distro feature
The ssh-cmd git-check can now send us looking elsewhere. This will
make migration possible.
Ian Jackson [Sun, 2 Nov 2014 16:10:51 +0000 (16:10 +0000)]
In access_quirk, filter by defined at the end. (nfc)
Ian Jackson [Sun, 2 Nov 2014 16:09:49 +0000 (16:09 +0000)]
Introduce access_runeinfo, and put basedistro name in ssh command hint string
Ian Jackson [Thu, 30 Oct 2014 00:38:04 +0000 (00:38 +0000)]
Add `: dgit <blah>... ;' to the front of ssh remote commands, for the benefit of forced command wrappers
Ian Jackson [Thu, 30 Oct 2014 00:17:52 +0000 (00:17 +0000)]
Regularise and comment access_cfg
Ian Jackson [Thu, 30 Oct 2014 00:16:15 +0000 (00:16 +0000)]
If $idistro set (ie, distro explicitly specified by user), do not look at anything to do with suite's distro config (nor some totally bogus fixed config variable)
Ian Jackson [Wed, 29 Oct 2014 21:56:02 +0000 (21:56 +0000)]
Fix handling of rmadison-based and gitless distros (e.g., Ubuntu).
Ian Jackson [Wed, 29 Oct 2014 21:54:34 +0000 (21:54 +0000)]
Make access_giturl be capable of being optional, and use this feature when cloning (for the benefit of distros with no dgit-repos)
Ian Jackson [Wed, 29 Oct 2014 18:29:32 +0000 (18:29 +0000)]
Move defaulting out of archive_query into individual methods and the actual default config
Ian Jackson [Mon, 27 Oct 2014 17:51:35 +0000 (17:51 +0000)]
Do not have .pc in dgit's git history for format `3.0 (quilt)'
packages.
* When constructing a git tree from a .dsc (which we do by unpacking
it in a temporary directory), drop any .pc directory.
* Rewrite the quilt fixup preparation: we now fake up a .dsc so that
we can regenerate the .pc, which is needed by dpkg-source.
* If after we have committed any quilt fixup, there is a .pc
directory, make a commit removing it.
* We now construct new quilt patches in a temporary directory, so
there is no problem about ignored files or --ignore-dirty. Remove
the mention of this limitation from the manpage.
* Be less critical of `3.0 (quilt)' and improve the documentation
relating to the interaction between dpkg-source and dgit. Mention
git-dpm.
* When `committing quilty patches', do not re-add a deleted .pc
directory (while still permitting updates to an existing .pc -
although the .pc will then disappear in the next commit).
* In the test suite, disregard differences found in .pc.
* cmd_quilt_fixup sets $package for the benefit of
build_maybe_quilt_fixup
Ian Jackson [Thu, 30 Oct 2014 00:14:46 +0000 (00:14 +0000)]
Break out srcfn (nfc)
Ian Jackson [Mon, 27 Oct 2014 17:46:11 +0000 (17:46 +0000)]
Break out get_source_format (nfc)
Ian Jackson [Mon, 27 Oct 2014 17:44:42 +0000 (17:44 +0000)]
Break out commit_admin (nfc)
Ian Jackson [Mon, 27 Oct 2014 17:43:58 +0000 (17:43 +0000)]
Make mk_orig_file have capability to be selective on source package and version
Ian Jackson [Mon, 27 Oct 2014 17:43:37 +0000 (17:43 +0000)]
Break out mktree_in_ud_here (nfc)
Ian Jackson [Mon, 27 Oct 2014 16:53:04 +0000 (16:53 +0000)]
Replace many calls to stat with new wrapper stat_exists; improves error handling and simplifies the code.
Ian Jackson [Tue, 4 Nov 2014 12:46:47 +0000 (12:46 +0000)]
finalise 0.22.1
Ian Jackson [Tue, 4 Nov 2014 12:39:30 +0000 (12:39 +0000)]
Use Dpkg::Version::version_compare everywhere, not Dpkg::Version::version_compare_string. The latter is entirely wrong, meaning that dgit would get many version comparisons wrong. Closes:#768038.
Ian Jackson [Tue, 19 Aug 2014 10:24:16 +0000 (11:24 +0100)]
Remove leftover debugging print
Ian Jackson [Wed, 13 Aug 2014 17:06:27 +0000 (18:06 +0100)]
ship dgit-repos-server
Ian Jackson [Wed, 13 Aug 2014 16:57:51 +0000 (17:57 +0100)]
debian/changelog: finalise for 0.22
Ian Jackson [Sun, 10 Aug 2014 20:31:56 +0000 (21:31 +0100)]
Add a test for dgit rpush.
Ian Jackson [Sun, 10 Aug 2014 20:26:39 +0000 (21:26 +0100)]
Check for rpush protocol version incompatibility and crash early if incompatible.
Ian Jackson [Sun, 10 Aug 2014 19:44:17 +0000 (20:44 +0100)]
When tests invoke dgit, use --dgit= so that subprocesses use our dgit rather than system one.
Ian Jackson [Sun, 10 Aug 2014 19:43:33 +0000 (20:43 +0100)]
Fixed a manpage typo.
Ian Jackson [Sun, 10 Aug 2014 19:42:58 +0000 (20:42 +0100)]
When killing build subprocess during failure of rpush, try reaping it (so we can report it) before killing it.
Ian Jackson [Sun, 10 Aug 2014 19:42:03 +0000 (20:42 +0100)]
In rpush, on protocol error talking to build host, check if the subprocess died and report differently if so. Closes:#736528.
Ian Jackson [Sun, 10 Aug 2014 19:38:41 +0000 (20:38 +0100)]
Better reporting of child exit statuses (esp. deaths due to signals).
Ian Jackson [Mon, 4 Aug 2014 01:27:49 +0000 (02:27 +0100)]
Two more bug references for changelog
Ian Jackson [Mon, 4 Aug 2014 01:12:05 +0000 (02:12 +0100)]
Fix "tests: drs-push-rejects: test unknown suite"
We have to reset $tmp/suites or the remaining elements of this test
script will fail.
Ian Jackson [Mon, 4 Aug 2014 01:05:10 +0000 (02:05 +0100)]
Improve error message for .dsc parsing failures more generally.
Ian Jackson [Mon, 4 Aug 2014 01:04:44 +0000 (02:04 +0100)]
Improve error message for .dsc having already been signed (iff using libdpkg-perl 1.17.x)
Ian Jackson [Mon, 4 Aug 2014 00:31:23 +0000 (01:31 +0100)]
When cloning, set up a remote `vcs-git' from the package's Vcs-Git (and put an appropriate caveat in the manpage). Closes:#740687.
Ian Jackson [Mon, 4 Aug 2014 00:15:42 +0000 (01:15 +0100)]
Close request for --dget:-u as we no longer use dget at all.
Ian Jackson [Mon, 4 Aug 2014 00:14:26 +0000 (01:14 +0100)]
Provide `dgit clean'. Closes:#736527.
Ian Jackson [Mon, 4 Aug 2014 00:03:57 +0000 (01:03 +0100)]
Print better message for unknown operations.
Ian Jackson [Sun, 3 Aug 2014 23:50:45 +0000 (00:50 +0100)]
Provide t-archive-process-incoming and t-archive-query subroutines for regression test scripts to use.
Ian Jackson [Sun, 3 Aug 2014 21:31:08 +0000 (22:31 +0100)]
Treat .dsc as bytes, just like everything else, rather than letting HTTP::Message convert it to a Perl unicode string which the rest of the program mishandles. Closes:#738536.
Ian Jackson [Sun, 3 Aug 2014 19:43:09 +0000 (20:43 +0100)]
Check SHA-256 of .dsc against hash from archive_query (ie projectb) rather than letting dpkg-source do a signature verification. Closes:#737619.
Ian Jackson [Sun, 3 Aug 2014 19:30:32 +0000 (20:30 +0100)]
Fix a manpage reference to `--dget=' where `--dgit=' was intended.
Ian Jackson [Sun, 3 Aug 2014 19:28:51 +0000 (20:28 +0100)]
Use curl to download things rather than dget; do our own processing of the files
Ian Jackson [Sun, 3 Aug 2014 19:25:33 +0000 (20:25 +0100)]
Do not remove destination when clone fails because it already exists (!)
Ian Jackson [Sun, 3 Aug 2014 18:19:14 +0000 (19:19 +0100)]
Document that dgit rpush needs gnupg and your public key on the build host. Closes:#736529.
Ian Jackson [Sun, 3 Aug 2014 17:42:11 +0000 (18:42 +0100)]
Use mirror.ftp-debian.org DNS alias rather than coccia. Closes:#752602.
Ian Jackson [Sun, 3 Aug 2014 17:41:13 +0000 (18:41 +0100)]
Work in read-only no-git-history mode with Ubuntu. You still have to pass -dubuntu. Closes:#751781.
Ian Jackson [Sun, 3 Aug 2014 17:39:02 +0000 (18:39 +0100)]
On push check that we have access_giturl; this allows missing config to abort pushes early
Ian Jackson [Sun, 3 Aug 2014 17:38:22 +0000 (18:38 +0100)]
Make access_basedistro honour $idistro (i.e. make -d work properly again)
Ian Jackson [Sun, 3 Aug 2014 17:37:46 +0000 (18:37 +0100)]
Print better message for lack of configuration settings.
Ian Jackson [Sun, 3 Aug 2014 17:03:47 +0000 (18:03 +0100)]
Turn off debug for wrong tree test
Ian Jackson [Sun, 3 Aug 2014 17:02:13 +0000 (18:02 +0100)]
Test mismatch during push
Ian Jackson [Sun, 3 Aug 2014 17:00:55 +0000 (18:00 +0100)]
Do not spew diff output to terminal (by default). Print sensible message instead. Closes:#736526.
Ian Jackson [Sun, 3 Aug 2014 16:39:37 +0000 (17:39 +0100)]
Do not spew diff output to terminal (by default). Closes:#736526.
Ian Jackson [Sun, 3 Aug 2014 16:30:03 +0000 (17:30 +0100)]
Work with wheezy-backports (and keep squeeze-backports working too). Closes:#736524.
Ian Jackson [Sun, 3 Aug 2014 16:17:19 +0000 (17:17 +0100)]
Clone removes destination directory on error. Closes:#736153.
Ian Jackson [Sun, 3 Aug 2014 16:09:43 +0000 (17:09 +0100)]
getcwd: Introduce must_getcwd using getcwd rather than cmdoutput
Ian Jackson [Sat, 2 Aug 2014 11:13:49 +0000 (12:13 +0100)]
debian/changelog: Recategorise and sort out a bit
Ian Jackson [Wed, 30 Jul 2014 17:35:44 +0000 (18:35 +0100)]
Mention cross-version dgit rpush incompatibility in manpage.
Ian Jackson [Wed, 30 Jul 2014 17:30:48 +0000 (18:30 +0100)]
Revert "Switch to using dgit@git.debian.org (and dgit-repos-server) by default."
The infrastructure end of this is not ready. But I want to push this
branch to master so I don't end up with irreconcileable branches. So
revert the change to the default config.
This reverts commit
111b247b6198535db5788a07069971e409f539cd.
Conflicts:
debian/changelog
Ian Jackson [Wed, 12 Mar 2014 18:36:53 +0000 (18:36 +0000)]
tests: drs-push-rejects: test unknown suite
Ian Jackson [Wed, 12 Mar 2014 18:34:43 +0000 (18:34 +0000)]
tests: drs-push-rejects: malformed tags of various kinds
Ian Jackson [Wed, 12 Mar 2014 18:03:00 +0000 (18:03 +0000)]
dgit-repos-server: call tag tags "headers" in error messages
Ian Jackson [Thu, 6 Mar 2014 01:02:28 +0000 (01:02 +0000)]
tests: drs-push-rejects: todos; now all relevant error conditions in dgit-repos-server are at least noted with a "fixme"
Ian Jackson [Thu, 6 Mar 2014 01:01:35 +0000 (01:01 +0000)]
tests: drs-push-rejects: more error tests
Ian Jackson [Thu, 6 Mar 2014 00:46:48 +0000 (00:46 +0000)]
dgit-repos-server: some better error msgs, more tests
Ian Jackson [Wed, 5 Mar 2014 18:36:41 +0000 (18:36 +0000)]
tests: drs-push-rejects: fix unexpected success msg
Ian Jackson [Wed, 5 Mar 2014 18:27:56 +0000 (18:27 +0000)]
tests: drs-push-rejects: introduce and use "mustsucceed"
Ian Jackson [Wed, 5 Mar 2014 18:28:19 +0000 (18:28 +0000)]
tests: drs-push-rejects: check that failures do not update any refs
Ian Jackson [Wed, 5 Mar 2014 18:28:34 +0000 (18:28 +0000)]
tests: drs-push-rejects: fix "key not in keyring" test
Ian Jackson [Wed, 5 Mar 2014 18:27:03 +0000 (18:27 +0000)]
dgit-repos-server: some better error msgs, more tests
Ian Jackson [Wed, 5 Mar 2014 18:06:53 +0000 (18:06 +0000)]
dgit-repos-server: fix dm parsing, more tests
Ian Jackson [Wed, 26 Feb 2014 22:02:47 +0000 (22:02 +0000)]
dgit-repos-server: fix dm parsing (success case)
Ian Jackson [Wed, 26 Feb 2014 19:17:31 +0000 (19:17 +0000)]
tests: drs-push-rejects: failing test for dm
Ian Jackson [Wed, 26 Feb 2014 19:10:07 +0000 (19:10 +0000)]
tests: drs-push-rejects: wip
Ian Jackson [Wed, 26 Feb 2014 17:16:12 +0000 (17:16 +0000)]
tests: drs-push-rejects: some failure cases; generate tags in script
Ian Jackson [Wed, 26 Feb 2014 17:15:11 +0000 (17:15 +0000)]
dgit-repos-server: better error msg for unsigned tag
Ian Jackson [Wed, 26 Feb 2014 16:26:49 +0000 (16:26 +0000)]
tests: pari-extra_drs.tar: clean
Ian Jackson [Wed, 26 Feb 2014 16:17:09 +0000 (16:17 +0000)]
tests: drs-push-rejects: new test, currently just passes a push
Ian Jackson [Wed, 26 Feb 2014 16:16:28 +0000 (16:16 +0000)]
tests: rename tartree-edit from gitrepo-edit
Ian Jackson [Wed, 19 Feb 2014 22:05:59 +0000 (22:05 +0000)]
tests/lib: set up default control files for drs in t-drs
Ian Jackson [Wed, 19 Feb 2014 22:05:35 +0000 (22:05 +0000)]
tests/lib: break out t-untar and use it in t-worktree
Ian Jackson [Wed, 19 Feb 2014 22:04:48 +0000 (22:04 +0000)]
tests: run-all: allow arg(s) to override test list
Ian Jackson [Wed, 19 Feb 2014 21:49:36 +0000 (21:49 +0000)]
dgit-repos-server: tests: remove obsolete files
Ian Jackson [Wed, 19 Feb 2014 21:37:50 +0000 (21:37 +0000)]
tests: gitrepo-edit: seems to work
Ian Jackson [Wed, 19 Feb 2014 21:37:29 +0000 (21:37 +0000)]
tests: gitrepo-edit: seems to work
Ian Jackson [Wed, 19 Feb 2014 21:35:27 +0000 (21:35 +0000)]
tests: gitrepo-edit: wip, new .edit style
Ian Jackson [Sun, 16 Feb 2014 15:34:51 +0000 (15:34 +0000)]
tests: gitrepo-edit: wip, before new layout
Ian Jackson [Wed, 12 Feb 2014 18:35:44 +0000 (18:35 +0000)]
tests: git-repo-edit: wip
Ian Jackson [Wed, 12 Feb 2014 18:25:31 +0000 (18:25 +0000)]
dgit-repos-server: fixes, tests. can now pass drs-clone-nogit, really
Ian Jackson [Fri, 31 Jan 2014 16:24:08 +0000 (16:24 +0000)]
dgit-repos-server: fixes, tests. can now pass drs-clone-nogit