- Mar 21, 2025
-
-
Walter Lozano authored
Native packages don't have an upstream branch, so check its existence before trying to branch from them. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Mar 17, 2025
-
-
Walter Lozano authored
To make the code easy to read rename functions to show their real goal. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
After the change in the logic to execute actions during the scanning move the code to make it easier to read. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
The current approach scans all the merge requests before starting to do any action, which at first sight seems fine. However, the process of MR during a rebase can take significant time, since the list is quite big, causing the actions to be delayed after the scanning. Also, in the case of an error during the scanning, no action is performed, which is a waste of time. To make things better, execute the actions while the list of MR is being processed. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Mar 12, 2025
-
-
Dylan Aïssi authored
By default gitlab-rulez defines the default branch based on the value of current_release_branch which is currently "apertis/v2026dev2". But some packages have been dropped from Apertis in previous releases, that means they don't have the default branch. Thus we need to teach gitlab-rulez what is the latest branch to use as default branch. mmc-utils was in the v2023_repositories list since its default branch was apertis/v2023 because it got removed after. Now that it has been re-added in apertis/v2024, gitlab-rulez can rely on the current_release_branch to define its default branch. Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
Dylan Aïssi authored
Otherwise RULES_UPDATE is inherited and wrong here. Since branch-protection-tighten requires nothing from branch-protection-relax it's cleaner to extend from rulez-check instead. Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
Dylan Aïssi authored
To align with other variables and ensure we have set correctly this variable. Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
To make the code easier to follow make the use of arguments consistent across functions, avoiding mixing the use of command line arguments directly inside functions. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
In order to have a more standard way to call gitlab api from command line switch to python-gitlab. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
To make things more consistent and to show that now the rebase script can be used in different scenarios like rebase testing and real rebase rename it accordingly. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
Since there is no need to rely on bash try to make the script more compatible. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
The scripts used for the rebase testing have proven to be very useful so we should use them in the real rebase. Currently the expectation is to work in a different namespace to avoid messing with the production repositories. To allow them to be used for a real rebase, add an additional argument to change the default behaviour in a forked repo to the production one. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
To make the script more readable move variables and functions to the beginning. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Mar 10, 2025
-
-
Dylan Aïssi authored
It's quite common that "upload" jobs fail when OBS is heavily busy. Most of the time, it's enough to restart the pipeline to make the build successful. Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
- Mar 06, 2025
-
-
During the rebase lots of MR will be handled, so using labels makes it easier to focus on the important packages. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Since we are doing the actual rebase work on v2026dev2 switch to this release as default. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Feb 26, 2025
-
-
Dylan Aïssi authored
Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
Dylan Aïssi authored
While creating new debian/ and upstream/ branches for a rebase, we don't need to change the default branch which is already correctly defined. Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
- Feb 18, 2025
-
-
Apertis CI authored
Signed-off-by:
Apertis CI <devel@lists.apertis.org>
-
- Feb 05, 2025
-
-
Dylan Aïssi authored
Without this colon, the variable imgpath is not updated during branching. Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
- Jan 31, 2025
-
-
Walter Lozano authored
After folding has been completed, it is worth to use the dashboard to ensure that are no remaining issues. Previous checks are also useful, but after the cleanup all the noise in the dashboard should have disappeared, which makes easier to spot real issues. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Jan 30, 2025
-
-
Walter Lozano authored
The folding process can take more than one day so it is useful to keep artifacts alive. Since artifacts are quite small set a rather big expire time and the same time align with other instances. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Jan 28, 2025
-
-
Walter Lozano authored
Fix the check for the environment variable for Gitlab token. Co-authored-by:
Dylan Aïssi <dylan.aissi@collabora.com> Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
The functions in this library can be used in different use case so using exit is not the best approach. Insted, use return and allow the calling script to handle the error. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
The api function has a very poor error handling, causing confusions, to make things more clear, improve the error handling and provide better messages. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
This script severs as a collections of functions that are used by other scripts, however, in some cases, some of these functions can be called directly from command line. To make this use case simpler add a new script which give access to the required functionality. Adding a new wrapper script makes things less confusing, as it uses the same approach that in other use cases, allowing to easy debug issues. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
To follow good practices print errors to stderr, this is special important on shell scripts since stdout is piped. While doing that fix typos in error messages. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Since personal tokens are used across the script there is no much gain in using trigger tokens. The problem with trigger tokens is that they are per project, and when they expired or are revoked extra work is needed. Also the current code was buggy since it does not properly handle the creation of a new trigger token. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Jan 22, 2025
-
-
Walter Lozano authored
To reduce the risk of issues while the protection is relaxed change the approach from removing the protection completely to allow maintainers to push directly. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Jan 21, 2025
-
-
Walter Lozano authored
By default, the branching pipeline will try to perform several jobs that should not be part of a rebase. To support that, add a new configuration to skip jobs during a rebase. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Jan 15, 2025
-
-
Dylan Aïssi authored
apertis-infrastructure-update: add new job reminding to merge the newly created MR against apertis-infrastructure Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
- Jan 14, 2025
-
-
Dylan Aïssi authored
branching: create a merge request from branch-update-infrastructure instead of direcly pushing to main This job push a commit to the repo where the branching pipeline is currently running. Consequently, the actual branching pipeline is cancel by a new dummy one based on the new commit. To avoid cancelling the current pipeline, instead we create a merge request that can be merged once the branching pipeline is completed to avoid cancellation. Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
Dylan Aïssi authored
branching: add new job ci-package-builder-update requesting to update ci-package-builder for stable release only Adding the new release in a list DOWNSTREAM_RELEASES_debian_* ensures the ci-package-builder pipeline will correctly assign merge requests updating packages. Otherwise, the pipeline may create merge against wrong branches. Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
Dylan Aïssi authored
Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
Dylan Aïssi authored
Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
Dylan Aïssi authored
Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
- Jan 13, 2025
-
-
Walter Lozano authored
The main goal of the check-for-dod script is to help during the rebase to identify missing packages so move it to the right folder. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
After the folding it is important to check that pipelines in main branches have run to ensure latest version are published. Make this clear in the review step. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-