ensure repo is up to date before printing status #753

Merged
decentral1se merged 2 commits from 737 into main 2026-01-16 23:05:53 +00:00
Member

#737

I need help figuring out how to add unit tests here, when I had this part isolated (passed in the recipe) I couldn't mock Recipe struct, maybe changing the struct into an interface would help with such unit tests?

#737 I need help figuring out how to add unit tests here, when I had this part isolated (passed in the recipe) I couldn't mock Recipe struct, maybe changing the struct into an interface would help with such unit tests?
ammaratef45 added 1 commit 2026-01-15 01:38:18 +00:00
ensure repo is up to date before printing status
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
304ac87cec
Owner

@ammaratef45 Nice! In a similar vein to #750 (comment) i would abandon unit tests on this particular code path and just wire up an integration test that follows #737 (comment). There are helper functions for manipulating tags: https://git.coopcloud.tech/toolshed/abra/src/branch/main/tests/integration/helpers/git.bash#L6 Good luck!

@ammaratef45 Nice! In a similar vein to https://git.coopcloud.tech/toolshed/abra/pulls/750#issuecomment-29743 i would abandon unit tests on this particular code path and just wire up an integration test that follows https://git.coopcloud.tech/toolshed/abra/issues/737#issuecomment-29811. There are helper functions for manipulating tags: https://git.coopcloud.tech/toolshed/abra/src/branch/main/tests/integration/helpers/git.bash#L6 Good luck!
ammaratef45 added 1 commit 2026-01-16 22:27:36 +00:00
added integration test
Some checks failed
continuous-integration/drone/push Build is failing
182fc41c58
ammaratef45 changed title from WIP: ensure repo is up to date before printing status to ensure repo is up to date before printing status 2026-01-16 22:28:23 +00:00
Author
Member

Thanks @decentral1se I've followed your advise and this PR is ready to go imo

Thanks @decentral1se I've followed your advise and this PR is ready to go imo
decentral1se approved these changes 2026-01-16 23:05:48 +00:00
decentral1se left a comment
Owner

Thanks!

Thanks!
decentral1se merged commit 182fc41c58 into main 2026-01-16 23:05:53 +00:00
decentral1se deleted branch 737 2026-01-16 23:05:53 +00:00
Owner
@ammaratef45 CI failures: https://build.coopcloud.tech/toolshed/abra/3511/1/7
Author
Member

Ah rip

-- regular expression does not match output --

regexp : [[:space:]]0

output : 0

 --

I need a regexp that translates to 0 or more white spaces followed by 0 while [[:space:]]0 translates to 1 or more white spaces followed by 0

Will fix it and send a follow-up PR

Ah rip ``` -- regular expression does not match output -- regexp : [[:space:]]0 output : 0 -- ``` I need a regexp that translates to `0 or more white spaces followed by 0` while `[[:space:]]0` translates to `1 or more white spaces followed by 0` Will fix it and send a follow-up PR
Sign in to join this conversation.
No description provided.