10000 Implement storing runtime state in repo level Git config (#295) Β· python/core-workflow@b4773c9 Β· GitHub
[go: up one dir, main page]

Skip to content

Commit b4773c9

Browse files
webknjazMariatta
authored andcommitted
Implement storing runtime state in repo level Git config (#295)
* Add initial impl of storinig state in Git config * Drop test for find_project_root * πŸš‘πŸ› Fix all existing tests to match new reality * πŸ› Fix final path construction in load_config * 🎨 Validate input in from_git_rev_read function * 🎨 Move conf path from global scope to CherryPicker * 🎨 Use Enum for ALLOWED_STATES * 🎨 Make check_output line shorter * πŸ› Improve error processing in from_git_rev_read * βœ…πŸŽ¨ Add tests for from_git_rev_read * βœ… Add tests for low-level state management * πŸš‘ Refer to set_paused_state correctly * πŸš‘ Fix set_paused_state method args * βœ… Test paused flow * βœ… Cover a test case with unknown sha and fs path * βœ… Test find_config w/o Git * βœ… Add tests for two-stage methods * 🎨 Drop unused fixtures from test_start_end_states * βœ… Add tests for cleanup_branch * βœ… Add cherry-pick fail test * βœ… Add cherry-pick success test * βœ… Add get_state_and_verify fail test * βœ… Add push_to_remote tests * βœ… Add backport test with no branch * πŸ› Interrupt cherry-pick loop on no-push * πŸ› Ignore missing config pointer on wipe * βœ… Cover backport method with tests * βœ… Cover ``--continue`` with tests * 🎨 Improve test_backport_pause_and_continue * 🎨 Use raw-string for regex * βœ… Cover ``--abort`` with tests * 🎨 Store all states in Enum structure * πŸ”₯ Drop garbage comments * 🎨 Use match instead of message in pytest.raises * f-stringify concatenation in tests Co-Authored-By: webknjaz <wk.cvs.github@sydorenko.org.ua> * πŸ“πŸ’‘ Add change notes
1 parent 6cb3534 commit b4773c9

File tree

3 files changed

+1055
-79
lines changed

3 files changed

+1055
-79
lines changed

0 commit comments

Comments
Β (0)
0