summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* changelog: Finalise 10.4debian/10.4archive/debian/10.4Ian Jackson2022-12-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* i18n-commit - autogeneratedIan Jackson2022-12-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debrebase(1): Be less scary about --experimental-merge-resolutionIan Jackson2022-12-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query: Declare that Debian supports thisIan Jackson2022-12-29
| | | | | | | | | This commit should be published in a dgit release after the corresponding server side code is deployed. Closes: #944855 Closes: #1027186 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: start 10.4Ian Jackson2022-12-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: finalise 10.3debian/10.3archive/debian/10.3Ian Jackson2022-12-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* i18n-commit - autogeneratedIan Jackson2022-12-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: document changes so farIan Jackson2022-12-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: tests: Enhance debpolicy-newreject moreIan Jackson2022-12-29
| | | | | | | Test that the previously-rewound-from tainted object is found early, and can be overridden permanently. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: tests: Insist that test-dummy supports itIan Jackson2022-12-29
| | | | | | This will ensure that the direct command fallback is tested, I think. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: tests: Fix and improve debpolicy-newrejectIan Jackson2022-12-28
| | | | | | | | | | | | Replace several t-expect-push-fail with t-expect-push-fail-tainted. Abolish the adhoc use of --force-push-tainted. Adjust the expected errors accordingly. Fix the expected errors to use anchored patterns (see the comment for t-expect-push-fail-tainted). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (fix): Don't *promise* that deliberatly will workIan Jackson2022-12-28
| | | | | | Maybe passing it will cause the server to find something else wrong. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (fix): Use deliberately()Ian Jackson2022-12-28
| | | | | | | This will allow the tests to bypass the local checks when they want to. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: deliberately: Centralise processing of TEST-dgit-onlyIan Jackson2022-12-28
| | | | | | | Make this apply to every call to deliberately(). (Now it is wrong to not use deliberately().) 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>
* tests: debpolicy-newreject: Fix a mistaken t-expect-push-failIan Jackson2022-12-28
| | | | | | | This is not anything to do with push. (Not sure why this isn't a call to t-git-objects-not-present.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Improve t-expect-push-fail-taintedIan Jackson2022-12-28
| | | | | | | Make it take one string, and expect the same message both locally and when printed by the remote. 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 (cleanup): Use common message generator in dgitIan Jackson2022-12-28
| | | | | | The messages now come out the same. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: Prepare the error message for translationIan 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>
* tainted-objects (cleanup): Move t-expect-push-fail-tainted to libIan Jackson2022-12-28
| | | | | | And rename it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects tests: Test for --d-n-f-f when not sufficientIan Jackson2022-12-28
| | | | | | | Check that saying --deliberately-not-fast-forward when it's not actually reound, doesn't help. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects tests: Check error messages are in right contextIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Check policy-query-supported-ssh valueIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Add some printdebugsIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Check overrides firstIan Jackson2022-12-28
| | | | | | This can save on a git-cat-file. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Tidy up an error messageIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Test that tainted commits are retriableIan Jackson2022-12-28
| | | | | | And test that they still fail if forced. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Provide t-expect-push-fail-retriablyIan Jackson2022-12-28
| | | | | | Our new checks on tainted objects will use this. 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>
* tests: Bodge debpolicy-newreject for forthcoming work (2)Ian Jackson2022-12-28
| | | | 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: dgit: Fix code formattingIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query: dgit: Mention tainted object typeIan Jackson2022-12-28
| | | | | | And change the data structure to support this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* policy-client-query: dgit: use tainted-objects queryIan Jackson2022-12-28
| | | | | | | | | | Add the config for controlling policy-client-query calls. For now we default to "unknown" everywhere. If supported, check if tainted objects are reachable from $dgithead, and report them. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Bodge debpolicy-newreject for forthcoming workIan Jackson2022-12-28
| | | | | | | | | | | The early detection is going to change quite a few some error messages, since they'll be generated from different information in a different way. For now, pass the force option that forces the previous behaviour, where the server rejects it. That retains the error message. 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>