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

merge dev main #871

Merged
merged 28 commits into from
Apr 26, 2024
Merged

merge dev main #871

merged 28 commits into from
Apr 26, 2024

Conversation

plebhash
Copy link
Collaborator

fix #870

plebhash and others added 28 commits April 3, 2024 11:57
…ib-automatically

`release-libs.yaml` automatically triggered on PRs to `main`
Co-authored-by: Pavlenex <pavle@pavle.org>
…document

Add contributing-guidelines document
@lorbax
Copy link
Collaborator

lorbax commented Apr 25, 2024

The least commit shared between this branch and main is this one which is not on top of main. Seems that this does not solve the issue

@plebhash
Copy link
Collaborator Author

plebhash commented Apr 25, 2024

The least commit shared between this branch and main is this one which is not on top of main. Seems that this does not solve the issue

@lorbax can you elaborate on what you see as a problem here?

these are the steps that led me to this PR:

git checkout origin dev
git checkout -b dev-merge-main
git merge origin main
# there was a confict on roles/Cargo.lock, which I solved by picking the state from `main`
git merge --continue
git push plebhash dev-merge-main
# opened PR

tried to rebase manually commit by commit dev on main
this is the result
https://github.com/lorbax/stratum/tree/dev-rebased

I think manually rebasing every commit is too error prone. We should be able to fix this with a few commands.

@Fi3
Copy link
Collaborator

Fi3 commented Apr 26, 2024

there was a confict on roles/Cargo.lock, which I solved by picking the state from main

If you are going to merge on dev you should take the state from dev not main

Considering that this PR do not change any code

This ofc assuming that lock on dev do not have any issue

@lorbax
Copy link
Collaborator

lorbax commented Apr 26, 2024

I was wrong, the least common ancestor between this branch and main branch is the HEAD of main branch, so this PR solves the issue. It would have been better to rebase dev on main, so that we do not mess up with history of commits, which is what I tried to do in my branch (before you publish this PR)
https://github.com/lorbax/stratum/tree/dev-rebased
Next time we should declare the issues we are working in!

@plebhash
Copy link
Collaborator Author

there was a confict on roles/Cargo.lock, which I solved by picking the state from main

If you are going to merge on dev you should take the state from dev not main

Considering that this PR do not change any code

This ofc assuming that lock on dev do not have any issue

roles/Cargo.lock is outdated on dev.

I noticed that because I use CLion and it automatically updates the lockfiles. So I got many conflicts on git because of that.

3ec6b50 updated this lockfile on main, and that was the motivation for picking the state of main on this merge conflict.

@Fi3
Copy link
Collaborator

Fi3 commented Apr 26, 2024

there was a confict on roles/Cargo.lock, which I solved by picking the state from main

If you are going to merge on dev you should take the state from dev not main
Considering that this PR do not change any code
This ofc assuming that lock on dev do not have any issue

roles/Cargo.lock is outdated on dev.

I noticed that because I use CLion and it automatically updates the lockfiles. So I got many conflicts on git because of that.

3ec6b50 updated this lockfile on main, and that was the motivation for picking the state of main on this merge conflict.

ok make sense

@plebhash
Copy link
Collaborator Author

It would have been better to rebase dev on main, so that we do not mess up with history of commits, which is what I tried to do in my branch (before you publish this PR) https://github.com/lorbax/stratum/tree/dev-rebased

dev...lorbax:stratum:dev-rebased

This diff shows 23 files being changed, where most of those changes were already introduced in PRs recently merged into dev. Is that expected? Git rebase is a bit confusing to me sometimes, that is why I went for a merge.

But if you prefer this approach we can replace this PR with another one from your branch, that would be no problem for me.

@lorbax
Copy link
Collaborator

lorbax commented Apr 26, 2024

It would have been better to rebase dev on main, so that we do not mess up with history of commits, which is what I tried to do in my branch (before you publish this PR) https://github.com/lorbax/stratum/tree/dev-rebased

dev...lorbax:stratum:dev-rebased

This diff shows 23 files being changed, where most of those changes were already introduced in PRs recently merged into dev. Is that expected? Git rebase is a bit confusing to me sometimes, that is why I went for a merge.

But if you prefer this approach we can replace this PR with another one from your branch, that would be no problem for me.

For me it is fine whatever does work. There is not huge history that can possibly be messed up btw

@Fi3
Copy link
Collaborator

Fi3 commented Apr 26, 2024

no you shouldn't get 23 diff files. IMO merging main on dev is ok.

@plebhash plebhash merged commit c191d48 into stratum-mining:dev Apr 26, 2024
9 checks passed
@plebhash plebhash deleted the dev-merge-main branch April 26, 2024 11:36
@plebhash plebhash mentioned this pull request Apr 26, 2024
plebhash added a commit that referenced this pull request May 2, 2024
* release-libs on push to main

* add check-versioning-lib-release.sh

* avoid files under target dir

* remove roles from release-libs.yaml

* run check-versioning-lib-release.sh on CI

* fix release-libs.yaml

* use bash shebang on check-versioning-lib-release.sh

* unify jobs

* fix check-versioning-lib-release.sh

* trigger release-libs.yaml on pull_requests to main

* checkout main on release-libs.yaml

* revert checkout main on release-libs.yaml

* fetch main and dev branches

* trigger release-libs.yaml on pull_requests to main

* simplify check-versioning-lib-release.sh

* lint release-libs.yaml

* Revert "remove roles from release-libs.yaml"

This reverts commit d6ac089.

* CONTRIBUTING.md creation

* contributing.md definition

* contribution workflow reduced

* Apply suggestions from code review

Co-authored-by: Pavlenex <pavle@pavle.org>

* edit CONTRIBUTING.md

* run tests, fmt & clippy addition

* fix Cargo.lock

---------

Co-authored-by: GitGab19 <gabriele.vernetti@protonmail.com>
Co-authored-by: Gabriele Vernetti <62447440+GitGab19@users.noreply.github.com>
Co-authored-by: Pavlenex <pavle@pavle.org>
Co-authored-by: Fi3 <fmerli1@gmail.com>
Fi3 added a commit to Fi3/stratum-1 that referenced this pull request May 3, 2024
* release-libs on push to main

* add check-versioning-lib-release.sh

* avoid files under target dir

* remove roles from release-libs.yaml

* run check-versioning-lib-release.sh on CI

* fix release-libs.yaml

* use bash shebang on check-versioning-lib-release.sh

* unify jobs

* fix check-versioning-lib-release.sh

* trigger release-libs.yaml on pull_requests to main

* checkout main on release-libs.yaml

* revert checkout main on release-libs.yaml

* fetch main and dev branches

* trigger release-libs.yaml on pull_requests to main

* simplify check-versioning-lib-release.sh

* lint release-libs.yaml

* Revert "remove roles from release-libs.yaml"

This reverts commit d6ac089.

* CONTRIBUTING.md creation

* contributing.md definition

* contribution workflow reduced

* Apply suggestions from code review

Co-authored-by: Pavlenex <pavle@pavle.org>

* edit CONTRIBUTING.md

* run tests, fmt & clippy addition

* fix Cargo.lock

---------

Co-authored-by: GitGab19 <gabriele.vernetti@protonmail.com>
Co-authored-by: Gabriele Vernetti <62447440+GitGab19@users.noreply.github.com>
Co-authored-by: Pavlenex <pavle@pavle.org>
Co-authored-by: Fi3 <fmerli1@gmail.com>
Fi3 added a commit to Fi3/stratum-1 that referenced this pull request May 3, 2024
* release-libs on push to main

* add check-versioning-lib-release.sh

* avoid files under target dir

* remove roles from release-libs.yaml

* run check-versioning-lib-release.sh on CI

* fix release-libs.yaml

* use bash shebang on check-versioning-lib-release.sh

* unify jobs

* fix check-versioning-lib-release.sh

* trigger release-libs.yaml on pull_requests to main

* checkout main on release-libs.yaml

* revert checkout main on release-libs.yaml

* fetch main and dev branches

* trigger release-libs.yaml on pull_requests to main

* simplify check-versioning-lib-release.sh

* lint release-libs.yaml

* Revert "remove roles from release-libs.yaml"

This reverts commit d6ac089.

* CONTRIBUTING.md creation

* contributing.md definition

* contribution workflow reduced

* Apply suggestions from code review

Co-authored-by: Pavlenex <pavle@pavle.org>

* edit CONTRIBUTING.md

* run tests, fmt & clippy addition

* fix Cargo.lock

---------

Co-authored-by: GitGab19 <gabriele.vernetti@protonmail.com>
Co-authored-by: Gabriele Vernetti <62447440+GitGab19@users.noreply.github.com>
Co-authored-by: Pavlenex <pavle@pavle.org>
Co-authored-by: Fi3 <fmerli1@gmail.com>
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.

None yet

5 participants