Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-85648

Enable copybara to make it creating a new branch

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Correctness
    • Fully Compatible
    • 150

      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.

            Assignee:
            juan.gu@mongodb.com Juan Gu
            Reporter:
            mikhail.shchatko@mongodb.com Mikhail Shchatko
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: