Use code-sync logic to update packages for as-if-jh
What does this MR do and why?
Use code-sync logic to update packages for as-if-jh. See #388118 (closed)
The mediation pipeline configuration can be found at: https://gitlab.com/gitlab-org-sandbox/gitlab-jh-validation/-/blob/as-if-jh-code-sync/jh/.gitlab-ci.yml
- Pipeline without
sync-as-if-jh-branch
because dependencies are not updated- The validation pipeline: https://gitlab.com/gitlab-org-sandbox/gitlab-jh-validation/-/pipelines/841944482
- We can see the last commit was
Add JH files
: which should be exactly the same before this merge request: gitlab-org-sandbox/gitlab-jh-validation@36d0fe45
- Pipeline with
sync-as-if-jh-branch
because dependencies are updated- The new sync pipeline: https://gitlab.com/gitlab-org-sandbox/gitlab-jh-validation/-/pipelines/843353312 and its only job: https://gitlab.com/gitlab-org-sandbox/gitlab-jh-validation/-/jobs/4148069588
The whole process is updated to like this:
flowchart TD
subgraph "JiHuLab.com"
JH["gitlab-cn/gitlab"]
end
subgraph "GitLab.com"
Mirror["gitlab-org/gitlab-jh-mirrors/gitlab"]
subgraph MR["gitlab-org/gitlab merge request"]
Add["add-jh-files job"]
Prepare["prepare-as-if-jh-branch job"]
Add --"download artifacts"--> Prepare
end
subgraph "gitlab-org-sandbox/gitlab-jh-validation"
Sync["(*optional) sync-as-if-jh-branch job on branch as-if-jh-code-sync"]
Start["start-as-if-jh job on as-if-jh/* branch"]
AsIfJH["as-if-jh pipeline"]
end
Mirror --"pull mirror with master and main-jh"--> gitlab-org-sandbox/gitlab-jh-validation
Mirror --"download JiHu files with ADD_JH_FILES_TOKEN"--> Add
Prepare --"push as-if-jh branches with AS_IF_JH_TOKEN"--> Sync
Sync --"push as-if-jh branches with AS_IF_JH_TOKEN"--> Start
Start --> AsIfJH
end
JH --"pull mirror with corresponding JH branches"--> Mirror
Status update can be found at: #388118 (comment 1318979708)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #388118 (closed)
Edited by Lin Jen-Shin