From ca5b421732353866192343ef46fa9d3e596a6c9c Mon Sep 17 00:00:00 2001 From: snomos Date: Mon, 2 Oct 2023 07:14:32 +0000 Subject: [PATCH] deploy: ec3dc5e5f71c514613c9952ca75cd0cc69ce8a1e --- infra/infraremake/HowToMergeUpdatesFromCore.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/infra/infraremake/HowToMergeUpdatesFromCore.md b/infra/infraremake/HowToMergeUpdatesFromCore.md index b0dcab2b..3923958a 100644 --- a/infra/infraremake/HowToMergeUpdatesFromCore.md +++ b/infra/infraremake/HowToMergeUpdatesFromCore.md @@ -26,7 +26,7 @@ This is a multistep process. Do as follows: 1. `gut pull -o giellalt -r ^lang-` 1. `gut push -o giellalt -r ^lang-` -Some of the steps explained: +# Some of the steps explained - The 7th step applies the changes from the template to all matching repos, - and the 8th one commits the changes in all matching repos. @@ -48,3 +48,19 @@ for i in lang-*; do cp -f \ template-lang-und/tools/tts/pipespec.xml.in \ $i/tools/tts/; done ``` + +# Errors + +From time to time `gut template apply` hangs on one or a few repositories. The exact cause of this is not yet known, but here is how to continue, and fix the situation: + +1. abort the process (Ctrl+C), and notice the name of the repo that hangs +1. rerun `gut template apply` on the remaining repos by using the `--regex` option to target repos that do not hang + - if `lang-fao` hangs, use a regex like `-r '^lang-[g-z]` to target all repos after `lang-fro` + - rerun with `-r '^lang-f[i-z]` to target all repos with ISO codes starting on `f` that comes after `fao` +1. manually make the changes needed in the problematic repo(s), and commit with the rest as usual, pr step 8 above +1. run step 9. as usual, the offending repo(s) will give an error message +1. manually update `.gut/delta.toml` with the new git hash and revision number, see one of the non-troubling repos for the correct values +1. commit the changes in the manually fixed repos +1. you probably have to run `gut template apply --abort -o giellalt -r ^lang- -t template-lang-und` at the end to zero out whatever is hanging around from the non-successfull template merge(s) + +After this the troubling repositories should work as normal again.