Skip to content

Aggregating code snippets output branches #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lsierant
Copy link
Contributor

@lsierant lsierant commented May 22, 2025

Summary

Each code snippets task creates a separate branch with updated snippets outputs. It's tedious to manually cherry-pick them after the test finishes.

This scripts semi-automates cherry-picking all code snippets update branches pushed by the update scripts.

It's not a final nor bulletproof solution (we should not push the outputs as separate branches in the first place), but it's an improvement nevertheless that avoids cherry-picking the branches manually.

Proof of Work

scripts/code_snippets/cherry_pick_snippet_updates.sh release-1.1
Fetching from origin...
Looking for branches matching 'origin/mck-snippets-update-20250522*'...
Found branches to cherry-pick:
  origin/mck-snippets-update-20250522141139
  origin/mck-snippets-update-20250522150715
  origin/mck-snippets-update-20250522151200
Creating new branch 'mck-snippets-update-cherry-picked-20250522-180736' from 'origin/release-1.1'...
branch 'mck-snippets-update-cherry-picked-20250522-180736' set up to track 'origin/release-1.1'.
Switched to a new branch 'mck-snippets-update-cherry-picked-20250522-180736'
Cherry-picking commits...
  Picking from origin/mck-snippets-update-20250522141139...
[mck-snippets-update-cherry-picked-20250522-180736 945fc0c5f] Update code snippets outputs
 Author: Evergreen <[email protected]>
 Date: Thu May 22 14:11:40 2025 +0000
 5 files changed, 54 insertions(+), 103 deletions(-)
error: no cherry-pick or revert in progress
fatal: cherry-pick failed
  Picking from origin/mck-snippets-update-20250522150715...
[mck-snippets-update-cherry-picked-20250522-180736 93c6ebcfb] Update code snippets outputs
 Author: Evergreen <[email protected]>
 Date: Thu May 22 15:07:15 2025 +0000
 10 files changed, 87 insertions(+), 74 deletions(-)
error: no cherry-pick or revert in progress
fatal: cherry-pick failed
  Picking from origin/mck-snippets-update-20250522151200...
Auto-merging public/architectures/setup-multi-cluster/setup-cert-manager/output/0216_helm_install_cert_manager.out
CONFLICT (content): Merge conflict in public/architectures/setup-multi-cluster/setup-cert-manager/output/0216_helm_install_cert_manager.out
Auto-merging public/architectures/setup-multi-cluster/setup-gke/output/0030_verify_access_to_clusters.out
CONFLICT (content): Merge conflict in public/architectures/setup-multi-cluster/setup-gke/output/0030_verify_access_to_clusters.out
Auto-merging public/architectures/setup-multi-cluster/setup-operator/output/0200_kubectl_mongodb_configure_multi_cluster.out
CONFLICT (content): Merge conflict in public/architectures/setup-multi-cluster/setup-operator/output/0200_kubectl_mongodb_configure_multi_cluster.out
Auto-merging public/architectures/setup-multi-cluster/setup-operator/output/0210_helm_install_operator.out
CONFLICT (content): Merge conflict in public/architectures/setup-multi-cluster/setup-operator/output/0210_helm_install_operator.out
Auto-merging public/architectures/setup-multi-cluster/setup-operator/output/0211_check_operator_deployment.out
CONFLICT (content): Merge conflict in public/architectures/setup-multi-cluster/setup-operator/output/0211_check_operator_deployment.out
error: could not apply e5968139c... Update code snippets outputs
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Updated 1 path from the index
Updated 1 path from the index
Updated 1 path from the index
Updated 1 path from the index
Updated 1 path from the index
[mck-snippets-update-cherry-picked-20250522-180736 ae75b3ca5] Update code snippets outputs
 Author: Evergreen <[email protected]>
 Date: Thu May 22 15:12:00 2025 +0000
 14 files changed, 70 insertions(+), 70 deletions(-)
New branch 'mck-snippets-update-cherry-picked-20250522-180736' created with cherry-picked commits.
Push with: git push origin mck-snippets-update-cherry-picked-20250522-180736

@lsierant lsierant changed the title Aggregating code snippets branches Aggregating code snippets output branches May 22, 2025
@lsierant lsierant marked this pull request as ready for review May 22, 2025 16:18
@lsierant lsierant requested a review from a team as a code owner May 22, 2025 16:18
@lsierant lsierant requested review from m1kola and Julien-Ben May 22, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant