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

Swarm POC3 #17041

Merged
merged 1 commit into from
Jun 21, 2018
Merged

Swarm POC3 #17041

merged 1 commit into from
Jun 21, 2018

Conversation

gbalint
Copy link
Contributor

@gbalint gbalint commented Jun 20, 2018

The code submitted here is restricted to the swarm package.
POC3 is a result of more than a year of work and has been extensively tested, reviewed on the ethersphere fork https://github.com/ethersphere/go-ethereum
This PR has original commit history
ethersphere/swarm#171
swarm network rewrite project board https://github.com/orgs/ethersphere/projects/3

@gbalint gbalint added the swarm label Jun 20, 2018
@gbalint gbalint requested review from fjl and zsfelfoldi as code owners June 20, 2018 12:10
@zelig zelig changed the title Swarm network rewrite project Swarm POC3 Jun 20, 2018
Copy link
Member

@ligi ligi left a comment

Choose a reason for hiding this comment

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

Really sad to see there is so much change condensed into one single commit.
This can really make it hard in the future to work with the code when you e.g. want to get context for a certain line in the code. When the code is added in more commits you can w.g. do a git blame and see the commit where it was introduced that ideally gives some context (e.g. a issue). By condensing it to one single commit you loose this for a large portion for the code now and you will often hit this single commit now when doing so which does not give you as much context as the single commits would.
I know you linked to the original commits in the PR - but you add extra steps to the process this way - and especially when the code mutates it will get more and more unpleasant to work with.
Don't get me wrong - not asking to change this now - but we should really think about the process and perhaps prevent the same thing to happen in the future.

@gbalint
Copy link
Contributor Author

gbalint commented Jun 20, 2018

@ligi I strongly agree with you, and we should definitely not do this again. We plan to do small merges regularly from now. But keeping the original commits was not possible because there were hundreds of them, and they did not keep to the commit conventions needed by gitcop. And we would squash it on merge, so the original commits would be lost on master anyway. The original https://github.com/ethersphere/go-ethereum/tree/swarm-network-rewrite branch will keep the commits for future reference.

Sergii Bomko [ledgerleopard.com]
Domino Valdano
Rafael Matias
Coogan Brennan
Copy link
Member

Choose a reason for hiding this comment

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

Any particular reason for keeping a separate AUTHORS file? We already have one for the entire repository, this seems a bit wasteful to duplicate effort here.

Copy link
Member

Choose a reason for hiding this comment

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

@karalabe the problem is that because we squashed the branch into one commit, the contributors that helped with POC3 will not get credited for their contributions as they usually would through git.
we'd still like to give them the credit, thus we added this file.

│ ├── encryption ──────── @gbalint, @zelig, @nagydani
│ ├── mock ────────────── @janos
│ └── mru ─────────────── @nolash
└── testutil ────────────── @lmars
Copy link
Member

Choose a reason for hiding this comment

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

If you merged the contents of this file to .github/CODEOWNERS, the correct person also get a review request every time someone modifies these packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea, done in ethersphere/swarm@ababfd2

@acud
Copy link
Member

acud commented Jun 21, 2018

@ligi we took your comment deeply into consideration and as a result we are looking into integrating gitcop into the ethersphere repo with the same ruleset as in the main ethereum repo, thus we won't have this problem with commit messages in the future.
🍻

@karalabe karalabe added this to the 1.8.12 milestone Jun 21, 2018
@gbalint gbalint requested a review from zelig June 21, 2018 14:34
@gbalint gbalint force-pushed the swarm-network-rewrite-merge branch from ababfd2 to c5f85c8 Compare June 21, 2018 16:35
@gbalint gbalint force-pushed the swarm-network-rewrite-merge branch from c5f85c8 to e187711 Compare June 21, 2018 19:11
@zelig zelig merged commit eaff892 into ethereum:master Jun 21, 2018
@acud acud deleted the swarm-network-rewrite-merge branch June 21, 2018 22:19
@ghost ghost mentioned this pull request Jul 7, 2018
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.

5 participants