summaryrefslogtreecommitdiff
path: root/infra
Commit message (Collapse)AuthorAge
* Replace http->https in GPL file headersSean Whitton2024-05-19
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* dgit-infrastructure: Use --trust-changelog in tag2uploadIan Jackson2024-04-11
| | | | | | And add a version to the Recommends dgit. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-ssh-dispatch: Apply perllib_local to policy hookIan Jackson2023-02-04
| | | | | | | Otherwise we can get the wrong version. Empirically, we might get an out-of-date installed version of Dgit.pm ! Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-ssh-dispatch: Break out perllib_localIan Jackson2023-02-04
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (fix): Pass suite in check and use it for HEADIan Jackson2022-12-28
| | | | | | This now produces the same answers as push would. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Do hint addition in common message prepIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects protocol: Reintroduce time, handle optionalityIan Jackson2022-12-28
| | | | | | | | | | | | According to the poldb schema, gitobjtype is optional, so make it optional in the protocol too. Reintroduce time, as we're about to need it for calling the common message construction. Clarify what optionality means and implement it properly. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: Move message construction to moduleIan Jackson2022-12-28
| | | | | | This will allow us to reuse it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: Fix handling of global taintsIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Drop a leftover debug printIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian: tainted-objects: Fix overridesIan Jackson2022-12-28
| | | | | | And explain. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query tainted-objects: Maybe pseudo-taint HEADIan Jackson2022-12-28
| | | | | | This isn't quite right yet... Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query tainted-objects: Call check_packageIan Jackson2022-12-28
| | | | | | Otherwise we may be operating with out of date infoermation. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian: Add some promises about check_packageIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query tainted-objects: Add hint to spec and clientIan Jackson2022-12-28
| | | | | | | | | We're going to want to print a hint. (In this case, the message that would be printed to stderr if we rejected the actual push.) Add it to the spec, and to the client code. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query tainted-objects: Drop time from queryIan Jackson2022-12-28
| | | | | | | This isn't useful right now - we're not displaying it. And we're about to add a pseudo-taint which won't have a sensible time. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian: package_questionable_head_msg: explainIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian: package_questionable_head_msg: break outIan Jackson2022-12-28
| | | | | | We're going to want to reuse this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query: implement tainted-objects queryIan Jackson2022-12-27
| | | | | | | Initial implementation, needs another feature to catch all the late failures. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query: implement dispatcher in dgit-repos-policy-debianIan Jackson2022-12-27
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query: implement dispatcher in dgit-ssh-dispatchIan Jackson2022-12-27
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query: spec, and for taint check (in dgit-repos-server)Ian Jackson2022-12-27
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian: getpackage: better error reportingIan Jackson2022-12-27
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* infra: get-dm-txt: Handle abolition of archive-query-tls-curl-ca-argsIan Jackson2022-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: Fix wrong un-mangling of epoch and ~ versionsIan Jackson2021-09-08
| | | | | Closes: #987304 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-mirror-ssh-wrap: Cope with yet another new rsync rune.Sergio Durigan Junior2020-08-19
| | | | | Closes:#968635. Signed-off-by: Sergio Durigan Junior <sergiodj@debian.org>
* dgit-mirror-ssh-wrap: Cope with new rsync runeIan Jackson2020-06-22
| | | | | | | | | | | | rsync 3.2 passes -I and -v to the remote process. These options are no problem. Rather than making this into an single mess of a regexp, add a new regexp for the new rune. That's clearer and I think probably just about as future-proof. Closes: #963489 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-mirror-ssh-wrap: Fix syntax for multiple patternsIan Jackson2020-06-22
| | | | | | | | | We don't want to repeat $command =~ so we need to assign the command to $_; No functional change with the current single pattern. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-mirror-ssh-wrap: Clarify the error messageIan Jackson2020-06-22
| | | | | | | When we get an unexpected command, it would be nice to say who is reporting this problem and what has probably happened. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Terminology: Change "rewind" to "rewrite" where appropriateIan Jackson2020-02-02
| | | | | | | | | | | | | | | | | | | | | In #928473, Colin Watson writes: > the use of "rewind" as a synonym for "non-fast-forwarding", while > somewhat common in git terminology, is unfortunate. The terms seem > to be borrowed from video playback systems, where "rewind" is often > just the exact opposite of "fast-forward", and so when I see > "rewinding history" in a few places in dgit(1) my initial > interpretation is that it must mean "updating a ref to point to an > ancestor of the commit that it previously pointed to", whereas I > think dgit(1) means "any push that isn't a fast-forward". I don't > know if I'm the only one for whom it has that connotation. This makes sense. So, I am changing uses of "rewind" which do not mean precisely going back to an ancestor. I think we can often use the word "rewrite" for the more general case, but there are some places where another wording is better. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* infra: dgit-mirror-ssh-wrap: Fix $package_reIan Jackson2019-09-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* infra: New script dgit-mirror-ssh-wrapIan Jackson2019-09-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tag2upload: Use the non-readonly method for dgit fetchIan Jackson2019-07-23
| | | | | | | The principal effect in the Debian configuration is to access the master dgit git server via ssh, rather than the mirror via https. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Update copyright notices in many filesIan Jackson2019-07-20
| | | | | | Mostly, adding 2019. Also adding some missing credits to Sean Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tag2upload: baredebian: Pass dgit refs/tags/, not the commit hashIan Jackson2019-07-17
| | | | | | | | | This will enable git to report the upstream tag in its messages. The tag name is safe to pass here since dgit only uses its referent, unless it is nice enough to print. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tag2upload: Actually recognise and honour --quilt in tagIan Jackson2019-07-17
| | | | | | | | | Non-default quilt modes were completely broken before. We only didn't notice because the existing tests worked with the default. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: parsetag: Print a bit more debug about junkIan Jackson2019-07-17
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: Don't crash on --quilt=baredebianIan Jackson2019-07-17
| | | | | | | The die needs to be qualified. This little bit of fcode has never worked. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: Remove comment saying it's a prototypeIan Jackson2019-07-07
| | | | | | | We have done everything to make it safe to use. Obviously it still needs some web service queue thing around it to invoke it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Clarify key situation commentsIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Check changelog infoIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Better message from upstream mismatchIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Check the upstream tag syntax only onceIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Verify the tag slightly earlierIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Improve a messageIan Jackson2019-07-07
| | | | | | Could be multiple distro=, in which case any matching is OK. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Drop an obsolete commentIan Jackson2019-07-07
| | | | | | The usage comment says this script should be retried. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Improve a reject messageIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: log when we fail and emailIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Drop a debug $_ from quit messageIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-server: tag2upload: Use a bpd and clean up origsIan Jackson2019-07-07
| | | | | | | This prevents us keeping forever the junk from uploads, and it prevents us reusing it too. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>