Skip to content
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

Fix: Changelog generator action frfr no cap #6659

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Conversation

Chickensoupwithrice
Copy link
Contributor

  • Moved the version update to happen after changelog
  • misc: remove extra debugging logs

Finally!!! :party:

Test plan

I've run the action and it's successfully generated the changelog and version update in a single PR

Previously it was causing issues for the changelog generator, since it
"couldn't find a common ancestor" when the version was updated and
commited first. Moving the version update to happen after resolves this,
and is PR'd to the same branch so that these changes happen at once.

I fear this might still lead to the same issue of common ancestor, but
we're merging into main, and then branching to the release branch, so
hopefully that doesn't happen?
Copy link
Contributor

@kalanchan kalanchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THIS WILL BE THE 10X EFFICIENCY GAINS WE DESERVE!!!

@kalanchan kalanchan merged commit bdcfb73 into main Jan 15, 2025
19 checks passed
@kalanchan kalanchan deleted the al/rel/lowercase-version branch January 15, 2025 21:40
@sourcegraph-release-bot
Copy link
Collaborator

The backport to vscode-v1.60.x failed at https://github.com/sourcegraph/cody/actions/runs/12797638649:

The process '/usr/bin/git' failed with exit code 1

To backport this PR manually, you can either:

Via the sg tool

Use the sg backport command to backport your commit to the release branch.

sg backport -r vscode-v1.60.x -p 6659
Via your terminal

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-vscode-v1.60.x vscode-v1.60.x
# Navigate to the new working tree
cd .worktrees/backport-vscode-v1.60.x
# Create a new branch
git switch --create backport-6659-to-vscode-v1.60.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 bdcfb73214d717ef9c02a1ef594fc23362dd5014
# Push it to GitHub
git push --set-upstream origin backport-6659-to-vscode-v1.60.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-vscode-v1.60.x

If you encouter conflict, first resolve the conflict and stage all files, then run the commands below:

git cherry-pick --continue
# Push it to GitHub
git push --set-upstream origin backport-6659-to-vscode-v1.60.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-vscode-v1.60.x
  • Follow above instructions to backport the commit.
  • Create a pull request where the base branch is vscode-v1.60.x and the compare/head branch is backport-6659-to-vscode-v1.60.x., click here to create the pull request.

Once the pull request has been created, please ensure the following:

  • Make sure to tag @sourcegraph/release in the pull request description.

  • kindly remove the release-blocker from this pull request.

jamesmcnamara pushed a commit that referenced this pull request Jan 15, 2025
- **Moved the version update to happen _after_ changelog**
- **misc: remove extra debugging logs**

Finally!!! :party:

I've run the
[action](https://github.com/sourcegraph/cody/actions/runs/12797290344/job/35678849540)
and it's successfully generated the
[changelog](#6658) and version
update in a single PR
<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->
jamesmcnamara added a commit that referenced this pull request Jan 15, 2025
)

- **Moved the version update to happen _after_ changelog**
- **misc: remove extra debugging logs**

Finally!!! :party:

I've run the

[action](https://github.com/sourcegraph/cody/actions/runs/12797290344/job/35678849540)
and it's successfully generated the
[changelog](#6658) and version
update in a single PR
<!-- Required. See

https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->


## Test plan

<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->

Co-authored-by: Anish Lakhwara <anish+github@lakhwara.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants