Commit Graph

886 Commits

Author SHA256 Message Date
79eb2874ba staging: support multiple labels for a QA project
All checks were successful
go-generate-check / go-generate-check (pull_request) Successful in 8s
Integration tests / t (pull_request) Successful in 6m24s
This is fixing the invalid cleanup and avoids duplication of the
same project in staging.config.

Just, how should we deal with Label and Labels set?
Atm only Label is used.
2026-03-05 15:12:15 +01:00
52e9b9931c staging: Fix error message of missing staging.config
Some checks failed
go-generate-check / go-generate-check (pull_request) Successful in 9s
Integration tests / t (pull_request) Failing after 6m8s
2026-03-04 11:17:25 +01:00
783c676ad0 obs-staging-bot: Temporary hack for current factory setup
All checks were successful
go-generate-check / go-generate-check (pull_request) Successful in 8s
Integration tests / t (pull_request) Successful in 5m53s
We accept currently the temporary openSUSE:Factory:git not being the
master of openSUSE:Factory:PullRequest. We want to have it at the final
place. Once factory switches to git, content of openSUSE:Factory:git
will move to openSUSE:Factory and we can drop this exception again
2026-03-03 15:56:49 +01:00
d0c2c788c4 obs: Adding new linkedbuild mode
Some checks failed
go-generate-check / go-generate-check (pull_request) Successful in 9s
Integration tests / t (pull_request) Failing after 5m57s
2026-03-03 15:29:05 +01:00
3112ed7f97 Use our IBS branch for packaging
Some checks failed
go-generate-check / go-generate-check (pull_request) Successful in 38s
Integration tests / t (pull_request) Failing after 9m40s
Need to use it from internal resource policy wise, but will be mirrored outside.
2026-02-26 11:12:30 +01:00
4dd54b5db1 staging: Hardcode currently used user of IBS
We should consolidate to a nicer user name...
2026-02-26 11:12:29 +01:00
dde0e04a03 Always handle build results as building when dirty flag is set 2026-02-26 11:12:29 +01:00
346c6d836a staging: Fix service file to work with obs ssh connections
We need a fixed user for that
2026-02-26 11:12:29 +01:00
cc37fa73bd Add an "lfs fsck" check after submodule update
to avoid merging pull requests where lfs objects are not correctly
registered. Can happen when user has not installed lfs for example.
2026-02-26 11:12:29 +01:00
7740021192 Disable temporary comment adding in case of lacking permissions 2026-02-26 11:12:29 +01:00
6b76c3efc0 pr: only update PR if elided title not changed
Gitea trims long titles so we need to compare if the trimmed length
is same, not entire string that will always differ.
2026-02-26 11:12:29 +01:00
d04b67fde7 Support remote source in pull requests
This requires write permission by maintainer there
2026-02-26 11:12:29 +01:00
93812e34d9 workflow-direct: use relative path when adding a submodule
This solves the issue of using the right credentials based on the
main repo.
Also it allows to rename the organisation.
2026-02-26 11:12:29 +01:00
439d1baf64 Fix build status check when package source is in subdir
We must not use the upper directory name as part of the package name.
2026-02-26 11:12:29 +01:00
4179fb4c7b Merge branch 'new-packages'
Some checks failed
go-generate-check / go-generate-check (push) Successful in 18s
Integration tests / t (push) Failing after 2m13s
PR: #108
2026-02-25 12:51:32 +01:00
7f6bd4bc32 pr: Always allow maintainer edits in new packages
Some checks failed
Integration tests / t (pull_request) Failing after 9m50s
2026-02-25 12:50:26 +01:00
f1b807fbf6 common: replace legacy logger with standard impl 2026-02-25 12:50:26 +01:00
e5441bf489 test: refactor loggin in unit tests
Use test logger when running under a test.
2026-02-25 12:50:21 +01:00
8078ca7d4d pr: small refactor 2026-02-25 12:48:48 +01:00
8721aa2c14 pr: test coverage 2026-02-25 12:48:48 +01:00
18cb2d7135 pr: test coverage 2026-02-25 12:48:48 +01:00
40317bf527 pr: small refactor 2026-02-25 12:48:48 +01:00
dc78b352b3 pr: close associated PR if issue closed. 2026-02-25 12:48:48 +01:00
b8740047c9 common: test fixes after rebase 2026-02-25 12:48:48 +01:00
788028a426 pr: no need to create PR if already exists. 2026-02-25 12:48:48 +01:00
bb86f377b6 pr: Only update issues if they are actually open 2026-02-25 12:48:48 +01:00
b30c393ec0 pr: fix tests 2026-02-25 12:48:48 +01:00
defe379e62 pr: use top 20 commits as base, if available 2026-02-25 12:48:48 +01:00
9f405c2022 common: add test for cloning hashes 2026-02-25 12:48:48 +01:00
75760efbc1 common: add test for directory listing 2026-02-25 12:48:48 +01:00
dd4098cdc6 pr: test updated issue ref
If issue is a SHA ref, and then it's updated, we need to make
sure that the branch is also updated.
2026-02-25 12:48:48 +01:00
31299b2d61 pr: move functions around 2026-02-25 12:48:48 +01:00
0915e6c35f pr: fix tests 2026-02-25 12:48:48 +01:00
85927ad76d pr: new package handling 2026-02-25 12:48:48 +01:00
711c2d677a pr: make sure new repos have fork/parent relationship
If new target repo is "reparented", it will have correct relationship
here. Otherwise PR creation will fail
2026-02-25 12:48:47 +01:00
92162f7d89 common: more unit tests fixes
TZ needs to be defined, otherwise it was assumed to be local which
then resulted in unpredictable commit hashes. We define it to UTC
for unit tests

PR have state "open" not "opened"
2026-02-25 12:48:47 +01:00
ec0eefb868 pr: fix more unit tests 2026-02-25 12:48:47 +01:00
5ae2bd8fd7 pr: merge new package 2026-02-25 12:48:47 +01:00
45f2b55e53 pr: implement first part of issue processing 2026-02-25 12:48:47 +01:00
c83a3a454f wip: process issues 2026-02-25 12:48:47 +01:00
1cf7dd79b3 Merge branch 'main' of src.opensuse.org:git-workflow/autogits
All checks were successful
go-generate-check / go-generate-check (push) Successful in 19s
Integration tests / t (push) Successful in 6m30s
2026-02-25 10:52:38 +01:00
29607f922c HACK: disable close of pullrequests for now
it hit too many ones
2026-02-25 10:50:57 +01:00
Andrii Nikitin
bf8d1196ba ci: workaround event-publisher unwillingness to retry
All checks were successful
Integration tests / t (pull_request) Successful in 6m18s
Integration tests / t (push) Successful in 6m14s
2026-02-24 18:56:03 +01:00
Andrii Nikitin
0456fc114e t: allow tracking of integration config files
Some checks failed
Integration tests / t (pull_request) Successful in 6m21s
Integration tests / t (push) Has been cancelled
Update .gitignore to exempt .conf files within the integration/ directory
from the global *.conf ignore rule. This ensures that essential test
configurations, like rabbitmq.conf, are preserved and shared across
environments, preventing issues where empty directories were
automatically created by Podman-compose.
2026-02-24 17:17:46 +01:00
Andrii Nikitin
ff68cc8200 ci: Add integration test config 2026-02-24 17:17:42 +01:00
Andrii Nikitin
a814c4ce24 t: Add status of tests to test-plan.md 2026-02-23 11:32:44 +01:00
Andrii Nikitin
aadc7f9d41 t: Add integration test for project PR labels
Itroduces a new integration test to verify the automatic application of
labels to project git pull requests based on the workflow configuration.

Changes:
- Add `create_label` method to Gitea API client for test setup.
- Configure a new `label-test` branch with `StagingAuto` and `ReviewPending`
  label mappings in `conftest.py`.
- Update `setup_users_from_config` to correctly handle `*` reviewer prefix.
- Ensure required labels are created during global test setup.
- Add `staging_bot_client` fixture to simulate bot approvals.
- Enable monitoring for the `label-test` branch in `workflow-pr` service.
- Implement `tests/workflow_pr_label_test.py` to verify label logic.
- Mark `review/Pending` check as xfail due to current implementation issues.
2026-02-23 09:38:14 +01:00
Andrii Nikitin
0598448fdb t: modularize test branch configurations in conftest.py
- Split branch configurations into COMMON and CUSTOM structures to reduce redundancy.
- Implemented dynamic field injection for 'Branch' and 'GitProjectName' using branch keys and placeholders.
- Enhanced the configuration merging logic to automatically synthesize final settings for each test environment.
2026-02-22 21:34:58 +01:00
Andrii Nikitin
2c174b687a t: improve debugging for zypper installation failures in Dockerfiles 2026-02-22 20:48:00 +01:00
Andrii Nikitin
4826d0869a t: consolidate test environment setup and optimize service restarts
- Moved Gitea repository, file, and user creation to a session-scoped global initialization in conftest.py.
 - Implemented content-aware configuration updates to avoid unnecessary workflow-pr service restarts.
 - Add review test_001 to verify reviews are added for both maintainers and config-defined reviewers.
2026-02-22 20:45:55 +01:00