Jan Zerebecki
6d04ab367a
WIP: Add ci jobs for go vendor
go-generate-check / go-generate-check (push) Failing after 14s
go-vendor-check / go-vendor-check (push) Failing after 12s
2025-09-09 20:11:00 +02:00
Jan Zerebecki
e662f56310
WIP: Add ci jobs for go generate
...
either to check it produces no diff, or to manually trigger pushing any
diff as a commmit to the current branch.
2025-09-09 20:10:56 +02:00
Jan Zerebecki
64a512e45f
Build rest and run tests
...
Build binaries that depend on mocks.
Build some binaries that where added since and add sub-package for them.
Run go test where they exist.
2025-09-09 20:09:55 +02:00
Jan Zerebecki
b1b60108b2
Add go generate result
2025-09-09 18:51:52 +02:00
Gitea Actions
f0600ec0c5
CI run result of: go mod vendor
2025-09-09 18:51:48 +02:00
f2089f99fc
staging: use helper function to SetCommitStatus
2025-09-09 12:55:14 +02:00
10ea3a8f8f
obs-staging-bot: Fix setting of commit status
2025-09-09 12:46:43 +02:00
9faa6ead49
Log errors on SetCommitStatus
2025-09-09 12:46:21 +02:00
29cce5741a
staging: typo fix
2025-09-09 12:46:11 +02:00
804e542c3f
Decline too large staging projects
...
In most cases anyway an error in pull request.
2025-09-09 12:41:07 +02:00
72899162b0
status: need to fetch repositories during sync
...
We need to fetch repositories so that we can have package
data. We only need to fetch one set of results per project,
not all repos.
2025-09-03 16:42:01 +02:00
168a419bbe
status: allow for package search endpoint
...
OBS has issues searching for packages in scmsynced projects.
Since we have a list of all the repositories, we can allow
for a search endpoint here.
/search?q=term1&q=term2...
results is JSON
[
project1/pkgA,
project2/pkgB
]
2025-09-03 14:35:15 +02:00
6a71641295
common: take care of empty result sets
...
In case of empty result pages, we should ignore the X-Total-Count
header.
Fixes: 5addde0a71
2025-09-03 12:21:07 +02:00
5addde0a71
common: use X-Total-Count in multi-page results
2025-09-03 01:00:33 +02:00
90ea1c9463
common: remove duplicate
2025-09-02 20:50:23 +02:00
a4fb3e6151
PR: Don't clobber other's PrjGit description
...
If we did not create the PRjGit PR, don't touch the title
and description
Closes : #68
2025-09-02 19:47:47 +02:00
e2abbfcc63
staging: improve cleanup logging
2025-09-01 12:49:55 +02:00
f6cb35acca
spec: add obs-staging-bot.service
2025-09-01 12:29:29 +02:00
f4386c3d12
Try to use Staging Master Project as default build target if available
...
This allows us to set custom build configuration or repository sets for
pull request projects.
2025-09-01 11:52:30 +02:00
f8594af8c6
obs-status: report error on monitor page if error
...
If we have error with REDIS connection, report it as error 500
on the / default page. Otherwise, report the 404 there instead
as before.
2025-09-01 11:20:54 +02:00
b8ef69a5a7
group-review: react on comment events
...
Instead of just polling for events, we can use issue_comment events
to process PRs more quickly.
At same time increased default polling interval to 10 minutes if
we use events
Closes #67
2025-08-30 10:41:29 +02:00
c980b9f84d
group-review: improve comment made by the bot
...
Bot name should be expanded for easy copy-pasta
2025-08-29 18:19:03 +02:00
4651440457
Revert "Fixing creation or PR even when we don't want it"
...
This reverts commit e90ba95869
.
We need to assign reviews anyway...
2025-08-29 17:09:08 +02:00
7d58882ed8
Accept review (instead of removal) on no submodule change
...
Because we require approval by staging bot in the workflow bot.
2025-08-29 15:08:05 +02:00
e90ba95869
Fixing creation or PR even when we don't want it
2025-08-29 15:08:05 +02:00
1015e79026
PR: don't try to update PR if PrjGit only being updated
2025-08-29 14:36:20 +02:00
833cb8b430
PR: marshall config before logging it
2025-08-28 18:13:11 +02:00
a882ae283f
PR: workaround lfs errors
...
in case where files are not in lfs but should be, the checkout
causes files to be modified. Then the checkout of the PR.Head fails.
There should be better way of dealing with this
2025-08-28 16:30:04 +02:00
305e90b254
common: fix logging format string
2025-08-28 13:09:32 +02:00
c80683182d
group-review: handle case when not yet reviewed
2025-08-28 10:16:49 +02:00
51cd4da97b
group-review: use suggested wording
...
Closes : #50
2025-08-27 19:27:59 +02:00
cf71fe49d6
group-review: don't spam reviews if already there
...
Check if review is already in the timeline and don't spam it again
Closes : #51
2025-08-27 19:16:51 +02:00
85a9a81804
Add HuJSON helper
2025-08-27 17:04:48 +02:00
72b979b587
PR: remove closed package PRs from a PRset
...
This used to happen as a side-effect of a different code path
that was removed in b96b784b38
2025-08-27 14:57:43 +02:00
bb4350519b
common: fix invalid log message
...
Log message complained about request processing even when
it finished request processing.
2025-08-27 14:54:32 +02:00
62658e23a7
PR: quiet submodule deinit
output
2025-08-27 14:49:16 +02:00
6a1f92af12
tests: comment out tests that crash
2025-08-27 11:49:26 +02:00
24ed21ce7d
tests: fix panics
2025-08-26 23:51:14 +02:00
46a187a60e
pr: error format fix
2025-08-26 23:50:48 +02:00
e0c7ea44ea
tests: make sure to vendor all the modules
2025-08-26 22:54:54 +02:00
f013180c4b
PR: assign reviewers only when not merging
2025-08-26 22:41:37 +02:00
b96b784b38
PR: remove broken code
2025-08-26 19:57:48 +02:00
6864e95404
PR: merge correct branches
...
Add sanity check that we merge correct branches too
2025-08-26 19:43:51 +02:00
0ba4652595
common: use older git --heads instead of --branches
2025-08-26 19:17:32 +02:00
8d0047649a
PR: if we have unpushed commits, update PRset
...
PRset is used elsewhere and if the pending, unpushed commits
are not part of it, we have an old state
2025-08-26 18:59:38 +02:00
2f180c264e
PR: check pending changes, pushed changes
2025-08-26 18:16:42 +02:00
7b87c4fd73
PR: fix parsing of project prs in timeline
...
Fixes: 933ca9a3db
2025-08-26 17:56:38 +02:00
7d2233dd4a
PR: add NoProjectGitPR option
2025-08-26 16:19:56 +02:00
c30ae5750b
PR: clone fixes
2025-08-26 15:47:58 +02:00
ea2134c6e9
PR: checkout a commit, for safety - we can't push to non-branch
2025-08-26 13:51:09 +02:00