sedlundandScott Edlund
76e7eafcee
Dagger Integration Tests / Unit tests (push) Successful in 12s
Dagger Integration Tests / Integration tests (main-nightly) (push) Successful in 33s
testing / testing-main-nightly (push) Successful in 1m38s
Dagger Integration Tests / Integration tests (stable) (push) Successful in 2m2s
testing / testing-stable (push) Successful in 1m57s
test: wait for repository language analysis (#842)
## Summary
This PR makes the repository language integration test wait for asynchronous language analysis to complete after a mirror migration.
The test now polls the languages endpoint until it observes usable `Go` and `Makefile` statistics, while retaining a bounded timeout so genuine failures still fail promptly and clearly.
## Motivation
The stable integration job for [PR #840](#840) failed in `TestRepoMigrateAndLanguages` because the endpoint returned an empty language map immediately after migration:
- [Stable integration failure](https://gitea.com/gitea/go-sdk/actions/runs/812441/jobs/1065292)
The unit and main-nightly jobs passed, and the focused test passed against a live Gitea 1.27.2 instance with this change.
## Validation
- `make build`
- `make test-unit`
- Focused live-server test: `TestRepoMigrateAndLanguages`
- `git diff --check`
---------
Co-authored-by: Scott Edlund <sedlund@users.noreply.github.com>
Reviewed-on: #842
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: sedlund <44173+sedlund@noreply.gitea.com>
2026-08-22 20:15:14 +00:00
2026-07-27 22:02:44 +00:00
2026-07-27 22:02:44 +00:00
2026-05-26 04:13:47 +00:00
2026-08-22 20:15:14 +00:00
2026-08-10 22:23:16 +00:00
2021-08-14 00:46:54 +08:00
2017-06-16 10:46:36 +08:00
2019-12-30 20:16:29 +00:00
2026-05-25 02:44:53 +00:00
2020-01-26 19:08:47 +00:00
2026-05-26 04:13:47 +00:00
2026-08-22 04:54:25 +00:00
2026-08-22 04:54:25 +00:00
2026-08-22 04:54:25 +00:00
2026-05-26 04:13:47 +00:00
2026-05-26 04:13:47 +00:00
2026-05-26 04:13:47 +00:00
2026-05-26 04:13:47 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 16:22:28 +00:00
2026-08-20 14:18:27 +00:00
2022-01-12 08:44:20 +08:00
2026-08-20 14:18:27 +00:00
2026-05-26 04:13:47 +00:00
2026-06-28 23:49:34 +00:00
2026-08-10 22:23:16 +00:00
2026-05-24 18:35:44 +00:00
2016-11-07 11:26:36 -02:00
2026-05-24 18:35:44 +00:00
2026-05-25 02:44:53 +00:00
2026-05-26 04:13:47 +00:00
2026-07-24 15:35:20 +00:00
2026-07-24 15:35:20 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 16:22:28 +00:00
2026-06-02 23:59:45 +00:00
2026-06-20 19:51:46 +00:00
2026-05-25 02:44:53 +00:00
2026-06-20 19:56:16 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 16:22:28 +00:00
2016-11-07 11:26:36 -02:00
2026-08-22 04:26:49 +00:00
2026-05-25 02:44:53 +00:00
2026-05-26 04:13:47 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-08-19 23:01:31 +00:00
2026-08-19 23:01:31 +00:00
2026-08-19 20:15:07 +00:00
2026-08-19 20:15:07 +00:00
2026-08-10 22:23:16 +00:00
2026-08-10 22:23:16 +00:00
2026-08-10 22:23:16 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 02:44:53 +00:00
2026-05-26 04:13:47 +00:00
2025-01-14 16:58:49 +00:00
2026-05-25 02:44:53 +00:00
2026-06-20 19:51:46 +00:00
2026-08-19 19:09:17 +00:00
2026-08-19 19:09:17 +00:00
2026-05-26 04:13:47 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 16:22:28 +00:00
2026-05-26 04:13:47 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-08-10 22:23:16 +00:00
2026-05-25 02:44:53 +00:00
2026-08-22 04:41:25 +00:00
2026-08-22 04:41:25 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 02:44:53 +00:00
2026-05-25 16:22:28 +00:00
2026-05-25 16:22:28 +00:00
2026-05-24 18:35:44 +00:00
2026-08-19 23:01:31 +00:00
2026-05-26 04:13:47 +00:00
Gitea SDK for Go
This project acts as a client SDK implementation written in Go to interact with the Gitea API implementation. For further informations take a look at the current documentation.
The SDK module path is now gitea.dev/sdk. If you are migrating from the previous code.gitea.io/sdk/gitea path, see docs/migrate-code-gitea-io-to-gitea-dev.md. If you are migrating from direct Client business methods to service-based entry points, see docs/migrate-client-to-services.md.
Note: function arguments are escaped by the SDK.
Use it
Version Requirements
- go >= 1.26
- gitea >= 1.11
Contributing
Fork -> Patch -> Push -> Pull Request
Run common development commands from the repository root, for example make build,
make test-unit, and make lint.
The compatibility wrappers in client_services_wrappers.go are generated and
deprecated in favor of client.<Service>.<Method>. For the full generated
migration matrix from Client methods to services, see
docs/migrate-client-to-services.md. Run
go generate ./... or make generate after changing exported service methods.
Authors
License
This project is under the MIT License. See the LICENSE file for the full license text.