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

Feat/docs fork update [ROBO-3587] #35

Open
wants to merge 5 commits into
base: uipath
Choose a base branch
from

Conversation

eduard-dumitru
Copy link
Collaborator

Documentation on how to update our FreeRDP fork.

README.md Outdated
- Make sure you've checked out the work branch (i.e. `feat/update_to_2_11_2), and run **git rebase --onto**, so that all UiPath customization commits are replayed onto the new Base Git Tag:

```pwsh
git rebase --onto <NEW BASE Git Tag> <Our 1st customization Commit's Hash> <The work branch>

Choose a reason for hiding this comment

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

What should be done after rebase onto?

Choose a reason for hiding this comment

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

Maybe squash all customisation commits? This would make the rebase easier.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would not squash our modification history.

Your 2nd comment is legitimate. However, the purpose of this PR is to provide the 1st iteration in the writing of the guide for Updating the Fork.

Instead of wasting a lot of time and coming up with an arbitrary plan for the final steps, it was decided (cc: @vuplea) that there will be a complementary PR the next time we need to Update the Fork. At that time, the final steps will be determined and written down.

README.md Outdated
@@ -9,6 +9,40 @@ From time to time there is a need to merge the changes from the original repo in
| --- | --- |
|**Original corresponding commit hash:**| `d50aef95520df4216c638495a6049125c00742cb` |

## Update Guide

Choose a reason for hiding this comment

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

Add a phrase explaining what kind of update are you referring to and the whole purpose of this chapter.

Copy link
Collaborator Author

@eduard-dumitru eduard-dumitru Jan 19, 2024

Choose a reason for hiding this comment

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

Will do. Fwiw, it's a subheading, and its parent makes it clear what kind of update we're talking about.

README.md Outdated
@@ -9,6 +9,40 @@ From time to time there is a need to merge the changes from the original repo in
| --- | --- |
|**Original corresponding commit hash:**| `d50aef95520df4216c638495a6049125c00742cb` |

Choose a reason for hiding this comment

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

What does this refer to ?

Copy link
Collaborator Author

@eduard-dumitru eduard-dumitru Jan 31, 2024

Choose a reason for hiding this comment

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

This refers to the hash of the newest commit authored by FreeRdp/FreeRdp, which is the parent of the oldest commit authored by UiPath/FreeRdp

README.md Outdated
git push --tags
```

A work branch should be created from `uipath` and used in the validation phase. It's name would be `feat/update_to_<NEW BASE GIT TAG>`.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@daniel-stanciu, can you comment?

I feel it's irrelevant if the work branch was created from the uipath branch or not. It could point to any commit. However, if it's not identical to uipath, then the git rebase --onto command will need to mention uipath as it's 4th argument, instead of the work branch.

A work branch should be created from `uipath` and used in the validation phase. It's name would be `feat/update_to_<NEW BASE GIT TAG>`.
After checking out the branch, the rebase should be performed using the following command:
```pwsh
git rebase --onto <NEW BASE Git Tag> <Our 1st customization Commit's Hash> <The work branch>
Copy link
Collaborator Author

@eduard-dumitru eduard-dumitru Feb 1, 2024

Choose a reason for hiding this comment

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

@daniel-stanciu, any thoughts on the following?:

The git rebase --onto command causes the currently checked out branch to be reset to whatever the 3 arguments dictate. <The work branch> could very well be replaced with uipath, since it's assumed is equal to it.

That would make this command description more robust to changes to the lines before it.


#### Updating the fork is done on a dev machine and involves rebasing our changes on top of the new tag/branch from the original repo and **force pushing** the `uipath` branch.

❗The state before the update must be saved in a support branch, named `robot/support/before_update_to_<NEW BASE GIT TAG>`, where `<NEW BASE GIT TAG>` is the tag from the original repo onto which we'll rebase our changes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this branch naming ok? @mihainradu ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was suggesting more of using the FreeRDP version, and we would have to bump the major at every upgrade, which sounds ok.


The tags from the original repo must be fetched from the original repo and pushed to our fork:
```pwsh
git fetch --tags --all
Copy link
Collaborator

Choose a reason for hiding this comment

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

This git fetch is for the purpose of retrieving tags from the original FreeRDP repo. Nowhere is it specified to add that remote (and if we just clone our repo we won't have it)

@eduard-dumitru eduard-dumitru changed the title Feat/docs fork update Feat/docs fork update [ROBO-3587] Mar 4, 2024
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.

3 participants