Jan Zerebecki jzerebecki
  • Not necessarily representing the actions or views of anyone even when stated otherwise. | Profile pic CC-BY 4.0: ESA/Hubble

  • Joined on 2024-05-21
jzerebecki approved git-workflow/autogits#120 2026-02-03 11:01:42 +01:00
maintainer-update

Some problems listed inline, but can be fixed in follow ups.

jzerebecki commented on pull request git-workflow/autogits#120 2026-02-03 11:01:42 +01:00
maintainer-update

fsync() missing before rename, without it risks loosing both files.

jzerebecki commented on pull request git-workflow/autogits#120 2026-02-03 11:01:42 +01:00
maintainer-update

Please also add this to %check

jzerebecki commented on pull request git-workflow/autogits#120 2026-02-03 11:01:42 +01:00
maintainer-update

Test is somehow not implementing description, there is nothing being removed.

jzerebecki commented on pull request git-workflow/autogits#120 2026-02-03 11:01:42 +01:00
maintainer-update

Move these into run() and remove the global calls, to not duplicate them from main.go and actually test them?

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-27 15:13:09 +01:00
Fixing PR tests in workflow-pr bot

Filed feature request for mock expect reason: https://github.com/uber-go/mock/issues/296

jzerebecki opened issue git-workflow/autogits#122 2026-01-27 14:14:16 +01:00
pull request reviews that mention todos that are not tracked anywhere else
jzerebecki commented on pull request git-workflow/autogits#106 2026-01-27 14:09:16 +01:00
Fixing PR tests in workflow-pr bot

To be more specific expected mocks by default are Times(1). You are right that those where EXPECT() is never called will fail the test if called, but here expect was called.

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-27 14:03:08 +01:00
Fixing PR tests in workflow-pr bot

While too many mocks make things harder, having fewer of them does not solve knowing when a mock is intended to test something by itself vs just enabling a later test.

So where is the test that…

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-27 13:54:06 +01:00
Fixing PR tests in workflow-pr bot

No, by default mocks are Times(1) and AnyTimes() overwrites that to 0-veryBigNumber, so here it allows UpdatePullRequest to be called.

jzerebecki approved git-workflow/autogits#112 2026-01-27 13:28:43 +01:00
pr: always require review, if configured

Looks good.

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-26 20:05:45 +01:00
Fixing PR tests in workflow-pr bot

Should be Times(1). Possibly compare that the right the label is set?

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-26 20:05:45 +01:00
Fixing PR tests in workflow-pr bot

For future improvement: This and the surrounding comments should make clear why the code is in a comment here.

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-26 20:05:45 +01:00
Fixing PR tests in workflow-pr bot

I don't think that is possible? LLM or human mistake? If I didn't miss anything delete it.

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-26 20:05:45 +01:00
Fixing PR tests in workflow-pr bot

Same as above.

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-26 20:05:45 +01:00
Fixing PR tests in workflow-pr bot

The commit message says "PR events correctly trigger processing", but as all these allow anything, so do these actually do that?

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-26 20:05:45 +01:00
Fixing PR tests in workflow-pr bot

Most of these _ are wrong. The LLM got confused by the error when running the test?

jzerebecki commented on pull request git-workflow/autogits#106 2026-01-26 20:05:45 +01:00
Fixing PR tests in workflow-pr bot

For future: In tests with many expected functions, it is difficult to spot which mock expectation is important to the test and which ones are just to define required return values. What is the best way? I'm not sure. What do you think?

jzerebecki approved git-workflow/autogits#106 2026-01-26 20:05:45 +01:00
Fixing PR tests in workflow-pr bot

Can be merged, but needs followup. Also some questions.

jzerebecki approved git-workflow/autogits#105 2026-01-16 13:33:13 +01:00
group-bot-tests

Looks good. One change can be done in a later PR. Though, I have not carefully reviewed ever line.