91d22f7eea
staging: add tests for idempotency and label changes
...
go-generate-check / go-generate-check (pull_request) Successful in 33s
We do not want duplicate comments. And if we do have label changes,
new comments should be added.
2026-02-24 18:22:08 +01:00
913b8c8a4b
staging: Match previous message format
...
go-generate-check / go-generate-check (pull_request) Successful in 28s
Match changes in older message format. That is,
Build is started in https://host/project/show/SUSE:SLFO:2.2:PullRequest:2162 .
Additional QA builds:
https://host/project/show/SUSE:SLFO:2.2:PullRequest:2162:SLES
https://host/project/show/SUSE:SLFO:2.2:PullRequest:2162:SL-Micro
Add unit test to verify this exact format.
2026-02-24 12:23:35 +01:00
e1825dc658
staging: CommentPROnce everywhere
...
go-generate-check / go-generate-check (pull_request) Successful in 32s
This replaces last usage of gitea.AddComment() where we do not
check if the comment already exists.
2026-02-23 19:16:40 +01:00
59965e7b5c
staging: comment once on PRs using timeline
...
We need to comment once on PRs and verify using issue timeline
that only one comment is present
Furthermore, staging and secondary QA links should be present
in a single comment as tooling already expects this format.
2026-02-23 19:05:44 +01:00
24a4a592a7
staging: add PollWorkNotifications coverage
2026-02-23 16:01:47 +01:00
d3d9d66797
staging: add tests on commentOnPackagePR
2026-02-23 15:48:38 +01:00
7a2f7a6ee7
staging: test default projectgit repo
2026-02-23 15:44:45 +01:00
34a3a4795b
staging: increase coverage of PulllRequest processing
2026-02-23 15:39:02 +01:00
bb5daebdfa
staging: return correct error
...
Don't clobber our error before returning it
2026-02-23 15:37:41 +01:00
70bba5e239
staging: improve CreateQASubProject unit coverage
2026-02-23 15:11:30 +01:00
5793391586
staging: add core logic unit tests
2026-02-23 15:05:51 +01:00
d923db3f87
staging: tests for Notification and Review handling
2026-02-23 14:47:51 +01:00
fc4547f9a9
tests: sanitize check
2026-02-23 14:44:17 +01:00
6fa57fc4d4
staging: Fix logic error
...
We need to report only once all building is finished, and not partial
results. Partial results are not yet finalized, so we can only
report that build is still in progress.
Add unit tests to cover these scenarios
2026-02-23 14:33:51 +01:00
82d4e2ed5d
staging: mock interface setup
2026-02-23 14:17:53 +01:00
8920644792
staging: Use interfaces allowing dependency injection
...
This includes also a few formatting changes
2026-02-23 14:10:10 +01:00
06772ca662
common: Add ObsClientInterface
...
This allows for dependency injection for future unit tests.
2026-02-23 13:43:23 +01:00