[SERVER-85648] Enable copybara to make it creating a new branch Created: 24/Jan/24  Updated: 29/Jan/24

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Mikhail Shchatko Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Correctness
Participants:

 Description   

Branching process involves a manual creation of a branch in private "10gen/mongo" repo. It was expected that copybara would be able to create the same branch in public "mongodb/mongo" repo, but during v7.3 branching copybara wasn't able to do that.
https://parsley.mongodb.com/evergreen/mongodb_mongo_v7.3_copybara_sync_between_repos_sync_repo_with_copybara_cd9cdc8e9d02ebac5e36936614ed2beac810c92c_24_01_23_19_41_55/0/task?bookmarks=0,3750&selectedLineRange=L3424-L3432&shareLine=3424

[2024/01/23 19:50:57.639] Executing [git '--git-dir=/root/copybara/cache/git_repos/https%3A%2F%2Fx-access-token%3Aghs_sTaKeZANoBt9lKeDjX2EIjGLhMfPv53XLRXP%40github%2Ecom%2Fmongodb%2Fmongo%2Egit' '--work-tree=/root/copybara/temp/git_dest4399572321335914047' fetch https://x-access-token:ghs_sTaKeZANoBt9lKeDjX2EIjGLhMfPv53XLRXP@github.com/mongodb/mongo.git --verbose --progress -f refs/heads/v7.3:refs/copybara_fetch/refs/heads/v7.3]
[2024/01/23 19:50:57.639] POST git-upload-pack (360 bytes)
[2024/01/23 19:50:57.639] fatal: couldn't find remote ref refs/heads/v7.3
[2024/01/23 19:50:57.639] Command 'git' finished in 00:00.136. Process exited with status 128
[2024/01/23 19:50:57.639] 0123 19:50:57.275 INFO: PROFILE:    149 //copybara/run/default/iterative/destination_fetch
[2024/01/23 19:50:57.639] 0123 19:50:57.275 INFO: PROFILE:    163 //copybara/run/default/iterative
[2024/01/23 19:50:57.639] 0123 19:50:57.276 INFO: PROFILE:      0 //copybara/run/default/after_all_migration
[2024/01/23 19:50:57.639] 0123 19:50:57.276 INFO: PROFILE:  60950 //copybara/run/default
[2024/01/23 19:50:57.639] 0123 19:50:57.276 ERROR: Previous revision label GitOrigin-RevId could not be found in GitDestination{repoUrl=https://x-access-token:ghs_sTaKeZANoBt9lKeDjX2EIjGLhMfPv53XLRXP@github.com/mongodb/mongo.git, fetch=v7.3, push=v7.3, partialFetch=false, primaryBranchMigrationMode=false} and --last-rev or --init-history flags were not passed

Therefore v7.3 branch was created in public "mongodb/mongo" repo manually too.

We need to make copybara creating a new branch, so that we don't have to create the branch manually in public repo.


Generated at Thu Feb 08 06:58:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.