build.sh: Increase GitLab tag fetch limit to 100 per page
Description
Adjusted the GitLab API call used to check tag existence by appending ?per_page=100
to fetch up to 100 tags in a single request. This avoids missing tags due to GitLab’s default pagination limit of 20 per page.
Issue(s)
https://gitlab.e.foundation/e/os/backlog/-/issues/3437
Test procedures
- Trigger a release build using old release tag
- Verify that the tag is successfully detected and repo init is successful if it exists in the first 100 tags.
Technical details
- GitLab API limits tag listing to 20 results per page by default.
-
per_page=100
added to retrieve more results without implementing full pagination.
Check list
-
Self review -
Test procedure explained -
Tested on fresh install -
Tested applied as an update