Commit Graph

24 Commits

Author SHA1 Message Date
Zack Winter 82255ad39e SERVER-113773 Regenerate copybara access token after finishing the dry run (#43858)
GitOrigin-RevId: 9ac7cb334a9d72a30fb32d2438c69eb5d5215c14
2025-11-12 05:19:07 +00:00
Zack Winter 8b999b8e87 SERVER-113700 Update copybara to v20251110 (#43804)
Co-authored-by: Udita <83602637+ubatmongo@users.noreply.github.com>
GitOrigin-RevId: 6d2ec2cc5aa9b7573174f5b3a8c57ad59a89abc0
2025-11-12 05:18:15 +00:00
Zack Winter 5831130a91 SERVER-113431 Pin copybara to a specific tag (#43548)
GitOrigin-RevId: 76997cab7aef839243e03a5f25047232d7fd767b
2025-11-12 04:19:23 +00:00
Zack Winter 5c24a13a7d SERVER-111295 Set python as formatter in format_multirun (#41677)
GitOrigin-RevId: fd3c58d1f5a9230a9fb728d2678c8c614c20437f
2025-09-24 17:41:24 +00:00
Daniel Moody 9c25013d4b SERVER-108844 add test and dry run to copybara sync script (#40388)
GitOrigin-RevId: 6059c57a9eada230f238b466c0e63435f704f2bd
2025-08-25 16:05:54 +00:00
Zack Winter 2aee826267 SERVER-103655 Add details to copybara error log (#34859)
GitOrigin-RevId: ffb547d93c166ea45de6ccd43a839e1c251968df
2025-04-10 16:29:02 +00:00
Zack Winter 5cd99676f6 SERVER-103642 Rename sdp-triager to devprod-build-automation (#34842)
GitOrigin-RevId: ec12204baa979dd1acd04b1592e66da02afbe339
2025-04-10 06:31:52 +00:00
Juan Gu 855dfadef0 SERVER-94077 Use isort in Ruff configs (#27865)
GitOrigin-RevId: e793d662774ccd3ab6c3f356c2287cf1f7ff9805
2024-10-10 19:33:49 +00:00
Mikhail Shchatko f9fdc7f82f SERVER-94187 Switch git ssh to https in copybara (#27049)
GitOrigin-RevId: 25a14df75380e62a0b451e1f3c7d37f59a946fff
2024-09-16 16:01:16 +00:00
Alexander Neben ba4bee0dad SERVER-90949 Removed copybara commit pin (#22654)
GitOrigin-RevId: 64f7fad39678ea8395f9b6afd01e57e1291e160d
2024-05-29 00:05:55 +00:00
Alexander Neben 73c2d9e977 SERVER-90928 Remove lines other than commit title from syncing (#22589)
# Issue

Remove lines other than commit title from syncing

# Description

SERVER-90928 Remove lines other than commit title from syncing to the
public repo

# Testing

This was tested locally. I tested on the commits in this PR and it seems
to be synced correctly. The staging file I used was
```
# This configuration is for migrating code from one Git repository to another using Copybara.
# It selectively copies content, excluding specific paths and preserving authorship.

# To test locally
sourceUrl = "/Users/alexander.neben/workspace/mongo2"
destinationUrl = "/Users/alexander.neben/workspace/mongodb-mongo"

# sourceUrl = "git@github.com:10gen/mongo.git"
# destinationUrl = "git@github.com:10gen/mongo-copybara.git"

core.workflow(
    name = "default",
    origin = git.origin(
        url = sourceUrl,
        ref = "IamXander/prune_commit",
    ),
    destination = git.destination(
        url = destinationUrl,
        fetch = "IamXander/prune_commit",
        push = "IamXander/prune_commit",
    ),
    # Change path to the folder you want to publish publicly
    origin_files = glob(["**"], exclude = ["src/mongo/db/modules/**"]),
    authoring = authoring.pass_thru("MongoDB <mongodb@mongodb.com>"),
    mode = "ITERATIVE",
    # Change the path here to the folder you want to publish publicly
    transformations = [
        metadata.scrubber("(^.*?)\n((\n|.)*)", replacement = "$1"),
    ],
)
```

Running git log on `/Users/alexander.neben/workspace/mongodb-mongo`
returns the following
```
commit 8a4879557893ae942f793ad707d56e255bebc72d (HEAD -> IamXander/prune_commit)
Author: Alex Neben <alex.neben@mongodb.com>
Date:   Tue May 28 08:55:38 2024 -0700

    fixes

    GitOrigin-RevId: 3ffa6b95d44ec3fef7e715a3f24652966861f4e1

commit 66cdb3631be92ced2123c7e3fab39e24bed91b2b
Author: Alex Neben <alex.neben@mongodb.com>
Date:   Tue May 28 08:50:07 2024 -0700

    SERVER-90928 Remove lines other than commit title from syncing

    GitOrigin-RevId: 7d90f0f69a17943fb68ba23e2f135d08c00c4943

commit 0063834a4fa519727cc6b816995ea56d9b3328fe
Author: Alex Neben <alex.neben@mongodb.com>
Date:   Tue May 28 08:12:24 2024 -0700

    SERVER-XYZ asdasdkjfhaskdf akjdhkjashdkjashd example

    GitOrigin-RevId: 298831cd1d55319ea368fdd2f1dc604368d94889

commit fc7f29486d762a740c3ebe01c3b7d69a477abe75
Author: Alex Neben <alex.neben@mongodb.com>
Date:   Fri May 24 13:55:21 2024 -0700

    prune commit message

    GitOrigin-RevId: 43692434bf664fe593ee7eb5f53372ca331ecec9
```

Which shows no data after the newline. It also does not include
enterprise code.

GitOrigin-RevId: f78828e412e3ac510c6e56feb541146c688b7603
2024-05-28 23:12:16 +00:00
Steve McClure b4b23946cd SERVER-90570: Enable formatting checks for buildscripts directory, excluding idl (#22254)
GitOrigin-RevId: 9d997a9f44cd43a8dec7c2a17fa2dbcd875e92f6
2024-05-16 22:07:36 +00:00
Juan Gu 462ae127c3 SERVER-85648 Enable copybara to make it creating a new branch (#20557)
GitOrigin-RevId: 0440ec120c2c2d16849621135044d21334713c92
2024-03-29 22:51:23 +00:00
auto-revert-processor bad498c22b Revert "SERVER-85648 Enable copybara to make it creating a new branch (#20068)"
This reverts commit 896da80660b840327b51c154ff69ee8b29617523.

GitOrigin-RevId: 31d060d72576177f11f2586e0a871a5f69ffc26c
2024-03-27 09:27:52 +00:00
Juan Gu 3fd8ff6d57 SERVER-85648 Enable copybara to make it creating a new branch (#20068)
GitOrigin-RevId: 896da80660b840327b51c154ff69ee8b29617523
2024-03-27 07:13:07 +00:00
stevegrossmongodb df697a1c3c SERVER-85484: Improve Slack message to include link to docs (#18199)
GitOrigin-RevId: 5fef1dc2e996536bace5fe2252afe671ede421db
2024-01-23 21:35:07 +00:00
Juan Gu a4343d62cf SERVER-83950 Added 'Updates were rejected because the remote contains work that you do' to Acceptable Error Messages
GitOrigin-RevId: 1fb9566565e91a88dd0df9149f634c5be7441706
2023-12-07 02:48:44 +00:00
Juan Gu febb8ae464 SERVER-83283 Modify copybara script to send slack message on failure (#17021)
(cherry picked from commit 95cb69586f2d7f5930c8f22ea8ec6b6617a94080)

GitOrigin-RevId: 733526e6efec8fad87f717de32a691acbf6d98e0
2023-12-03 01:39:26 +00:00
Juan Gu 7144b74771 SERVER-82449 Optimize copybara sync behavior for specific no-change scenarios (#16427)
(cherry picked from commit c55308ba92)

GitOrigin-RevId: 277f0ca15122a1a696003a591cfaa13e774b522a
2023-12-03 00:11:17 +00:00
Juan Gu dffb77ebab SERVER-83832 Fixed cannot find --expansions-file issue in sync_repo_w… (#17335)
GitOrigin-RevId: b687c143796991c1db863e61f9bc3bbd58e661b2
2023-12-02 23:10:48 +00:00
Juan Gu 38b236e950 SERVER-82391 Only allow github Apps Copybara Syncer: 10gen-to-Mongodb to syncs new commits to mongodb/mongo (#16424)
(cherry picked from commit 80283cb55154682964a15a6573b62795391c41be)

GitOrigin-RevId: 408d720ff49f9132d60de1cee99af377c54b4df1
2023-12-02 20:14:53 +00:00
Juan Gu 1110f07ec5 SERVER-81949 Sync from 10gen/mongo to mongodb/mongo with copybara (#16114)
(cherry picked from commit 3a8d1acd70d49183bbf6cec81f838f2cc0a954f5)

GitOrigin-RevId: 6b018a0f8c21988202ab68d3339046f7994a8c69
2023-12-02 20:14:34 +00:00
Juan Gu 032b931e4c SERVER-81377 Adapt sync to allow copybara failure when there are no new commits to sync 2023-09-27 18:29:05 +00:00
Juan Gu 750406e4af SERVER-78687 Set up copybara syncing between 10gen/mongo and 10gen/mongo-copybara 2023-09-20 20:57:07 +00:00