Repository navigation
fix(build): restore ConfigDumpInfo after failed Designer builds - #107
korolevpavel wants to merge 2 commits into
Conversation
- preserve exact version-file bytes or absence until UpdateDBCfg succeeds - retain per-step recovery receipts and usable backups on rollback failure - cover cancellation, timeout, partial load, EDT, CLI and MCP behavior - document recovery boundaries and add regression guards for issue IngvarConsulting#24
- restrict Unix snapshot directories and files at creation before writing - cover retained copies and absence markers under permissive umasks - document the permission invariant and guard against reintroduction
|
Закрываю, но задача остаётся — решение принято другое, и оно требует работы в другом месте. Решение владельца: Из этого следует, что восстанавливать файл после неудачной сборки незачем: его там не должно быть под контролем версий вовсе. Публиковать ради этого Чего это не отменяет. Раз файла законно нет в свежем клоне, открытый #97 становится настоящей ошибкой: инкрементальная выгрузка при отсутствии файла версии падает с кодом 1 и без отката на полную. Это и есть работа, которую надо сделать вместо восстановления, — плюс запись правила в документацию и добавление файла в Что здесь было сделано хорошо и что стоит перенести, если возьмётесь за #97: отказ на симлинки и не-обычные файлы при работе со снимком, и права 0700/0600. Эти проверки полезны сами по себе. Спасибо за подробный разбор — именно он позволил увидеть, что вопрос не в восстановлении, а в том, чей это файл. |
Designer
/LoadConfigFromFiles -updateConfigDumpInfocan rewriteConfigDumpInfo.xmlbefore a build fails or stops beforeUpdateDBCfg. This change captures its original bytes, permissions, or absence before loading and restores that state when the step fails before a successful database update.Closes #24. Successful-build reconciliation remains in #46.
UpdateDBCfg, before persisting hashes; a later hash-storage error cannot restore an obsolete version file.steps[].cdfi_recoverythrough existing CLI/MCP build results. Failed restoration retains a usable snapshot and the original error classification; cleanup failures remain warnings.0700and copies/absence markers with0600before writing, including under permissive umasks. Reject symlinks and nonregular CDFI files without deleting them.Validation:
022/000with private/public original files and absent baselines.rust-expert-best-practices-code-review; the discovered snapshot-permissions finding was fixed and re-reviewed. The unavailable codebase-design skill was replaced by the repository's explicit architecture checklist.The publication branch contains only these two commits on current upstream
master; the rebase preserved the tested source tree exactly.