summaryrefslogtreecommitdiff
path: root/infra/dgit-repos-policy-debian
Commit message (Collapse)AuthorAge
* 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: 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>
* dgit-repos-policy-debian: getpackage: better error reportingIan Jackson2022-12-27
| | | | 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>
* dgit-repos-policy-debian: Add a tiny bit of debugging outputIan Jackson2019-07-01
| | | | | | No other change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian: Remove duplicated text from force messageIan Jackson2019-01-06
| | | | | | | | | $ovwhy is from SELECT deliberately ... WHERE ... OR deliberately = ? where ? is a key in %deliberately which came from the command line where it already contains --deliberately=. Closes: #913676 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* messages: Be a lot more friendly about NEW in particularIan Jackson2018-07-25
| | | | | | And also add a couple of `please's. Closes:#904448. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian: Remirror a package when it becomes publicIan Jackson2017-01-12
| | | | | | | | | Ie, make the repo available much more promptly when the package passes NEW. Closes:#849789. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian; Unset GIT_ALTERNATE_OBJECT_DIRECTORIESIan Jackson2016-12-19
| | | | | | | This broke due to recent git setting GIT_ALTERNATE_OBJECT_DIRECTORIES in the pre-receive-hook. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git- prefixes: Fix dgit-repos-policy-debianIan Jackson2016-10-16
| | | | | | | | Use `git for-each-ref' instead of `git-for-each-ref'. Broken in 8a178bf100d4 "Tag change: Update dgit-repos-policy-debian". Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Infra: Introduce Debian::Dgit::InfraIan Jackson2016-10-15
| | | | | | | This is used by all the Perl in dgit-infrastructure.deb. So far it does nothing, so no functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Copyright: Add notices to some more of the (larger) filesIan Jackson2016-10-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Tag change: Update dgit-repos-policy-debianIan Jackson2016-07-31
| | | | | | | | The only place where we call debiantag, and the only place where we know about tag names, is in vsn_in_our_history. We need to change it to query multiple tags. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Tag change: Rename debiantag to debiantag_oldIan Jackson2016-07-31
| | | | | | | | | | | | | | | | | We are going to change the tag name of the main signed tag used by dgit to signal the user's intent to the archive server. Prepare for this by changing debiantag to debiantag_old and changing all call sites outside dgit itself. dgit will want to be able to generate either, depending on whether it's cooperating in an rpush with a new or old dgit so reintroduce a wrapper called debiantag there. This will also allow us to have dgit generate old tags for testing. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian.: fix git-cat-file-handling with multiple taints in ↵Ian Jackson2016-07-16
| | | | db (!).
* dgit-repos-policy-debian: Better error handlingIan Jackson2016-07-16
| | | | Show more info when git-cat-file --batch goes wrong
* dgit-repos-policy-debian: better error message when git-cat-file produces ↵Ian Jackson2016-07-01
| | | | unexpected output
* Infrastructure: Improve an error message in dgit-repos-policy-debian.Ian Jackson2015-08-16
|
* Work around #793471 (madness with $SIG{__WARN__} and Perl's system builtin): ↵Ian Jackson2015-07-25
| | | | | | | move $SIG{} setting into setup_sigwarn in Dgit.pm, and check getppid. We also need to fix up the expectation for an error message in one of the tests, where the message changes as a side effect.
* Infrastructure: Get mirroring right for fresh repos of existing packages (!)Ian Jackson2015-07-21
|
* dgit-repos-policy-debian: Break out vsn_in_our_history (nfc)Ian Jackson2015-07-21
|
* Improve an error message from dgit-repos-policy-debian.Ian Jackson2015-07-19
|
* Error messages: Add some newlines to make the real error clearer in a lot of ↵Ian Jackson2015-07-05
| | | | noise
* For non-Debian distros, debiantag() uses distro name a la DEP-14.Ian Jackson2015-07-04
|
* Infra: Improve db retry handlingIan Jackson2015-06-23
| | | | | | | | | | Use theh new poldb_setup hook to (a) set up HandleError and (b) run the DGIT_RPD_TEST_DBLOOP_HOOK. This is needed because the PRAGMA in poldb_setup can cause a SQLITE_BUSY error in newer sqlite3, and we want both the HandleError setup and the hook (which sets a timeout, amongst other things) to occur before sqlite3 tries to take its lock.
* Test suite: Rename dgit-repos-policy-debian DB retry hook env var (nfc)Ian Jackson2015-06-22
|
* Infra: Support not running out of working treeIan Jackson2015-06-20
|
* Test suite: Test dgit-repos-policy-debian database retryIan Jackson2015-06-13
|
* Infra: dgit-repos-policy-debian: Fix db retry loopIan Jackson2015-06-13
|
* Infra: dgit-repos-server-debian: Run check_package on pushIan Jackson2015-06-13
|
* Infra: dgit-repos-server-debian: check_package looks in good suites, before ↵Ian Jackson2015-06-13
| | | | considering age
* Infra: dgit-repos-server-debian: Break out check_package coreIan Jackson2015-06-13
|
* infra: Finish replay preventionIan Jackson2015-05-31
|
* dgit-repos-policy-debian: better debugging for tainted object checkingIan Jackson2015-05-31
|
* policy: Improve taint message recorded in db by --deliberately-not-fast-forwardIan Jackson2015-05-31
|
* Check for deliberatelies correctly (in-memory data structures have full name)Ian Jackson2015-05-31
|
* Infra: Exit statuses: work around bizarre behaviour of perl die wrt $?, and ↵Ian Jackson2015-05-31
| | | | de-reserve policy hook status flag 0x80