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

nim-waku refactor 'n upstream week 12 - 16 July 2021 #639

Closed
10 of 18 tasks
jm-clius opened this issue Jun 22, 2021 · 12 comments
Closed
10 of 18 tasks

nim-waku refactor 'n upstream week 12 - 16 July 2021 #639

jm-clius opened this issue Jun 22, 2021 · 12 comments
Assignees

Comments

@jm-clius
Copy link
Contributor

jm-clius commented Jun 22, 2021

Background

This is a proposal for a refactoring/backlog week, where we divide amongst ourselves and revisit some of the most pressing quality and maintainability issues in the nim-waku codebase to make some strides towards production-quality code.

This does not necessarily have to be a "week", of course. The idea is simply that we set aside some dedicated time in between our general dev efforts to focus on getting as much technical debt squashed as possible.

The idea was born out of a recent attempt to update submodules and realising that some "nice-to-haves" in terms of best practices easily become "must-haves" after a while. :)

The dates 12 - 16 July is chosen somewhat randomly to give us enough time to prepare, yet not be too far ahead in the future.

Many of these are born out of the Nim style guide and we could likely identify a few more issues from this.

Priority issues

This is a laundry list of some of the issues I think we could tackle, roughly in order of priority:

@staheri14 @oskarth @EbubeUd WDYT? Will this be a worthwhile effort? Anything to add/alter to the priorities?
Also pinging @D4nte, as he may have some ideas as to priorities.

@EbubeUd
Copy link
Contributor

EbubeUd commented Jun 22, 2021

This is nice.
Worth adding is the use of discard in async function calls.

@jm-clius
Copy link
Contributor Author

Worth adding is the use of discard in async function calls.

Thanks! Should be covered in #146

@staheri14
Copy link
Contributor

staheri14 commented Jun 22, 2021

Nice proposal! @jm-clius
whatever I am thinking of adding falls into the category of "Clean up open nim-waku issues", so I have no comments at the moment, will write here if more comments come to my mind.

The followings are certainly "nice to have"s but not "must-have"s!

  • A readme file to explain the structure of the nim-waku codebase (I think we already had a PR/issue for this and we can just mirror its content into a file in the repo and make it accessible to the contributors/developers)
  • A style guide on the test development and unit tests namings e.g., some of the test names are capital and some small

@D4nte
Copy link
Contributor

D4nte commented Jun 23, 2021

Better CI log format? Window CI failed and I simply cannot find any error that causes the failure.

@oskarth
Copy link
Contributor

oskarth commented Jun 23, 2021

Good idea, and great list of issues! Let's do it

@jm-clius
Copy link
Contributor Author

Better CI log format?

Thanks, @D4nte. Agree the current logs can be confusing. Added general CI improvements to list to have some visibility. Not sure how feasible it will be to change CI logs, but we can certainly review.

@jm-clius
Copy link
Contributor Author

  • A readme file to explain the structure of the nim-waku codebase (I think we already had a PR/issue for this and we can just mirror its content into a file in the repo and make it accessible to the contributors/developers)
  • A style guide on the test development and unit tests namings e.g., some of the test names are capital and some small

Thanks, @staheri14! Added to list.

@oskarth
Copy link
Contributor

oskarth commented Jun 30, 2021

Another candidate #654

@jm-clius
Copy link
Contributor Author

Another candidate #654

Added!

@oskarth oskarth mentioned this issue Jul 5, 2021
8 tasks
@oskarth oskarth changed the title Proposal: nim-waku refactor week 12 - 16 July 2021 nim-waku refactor week 12 - 16 July 2021 Jul 5, 2021
@oskarth oskarth changed the title nim-waku refactor week 12 - 16 July 2021 nim-waku refactor 'n upstream week 12 - 16 July 2021 Jul 5, 2021
@jm-clius
Copy link
Contributor Author

jm-clius commented Jul 7, 2021

I've divided the issues in the original post into three tracks to make it slightly more readable: https://hackmd.io/beMbu_fdRymYvaXDANukIw

Most issues have been merged into a single checklist that all modules should adhere to: https://hackmd.io/1imOGULZRsed2HpgmzGleA

@oskarth
Copy link
Contributor

oskarth commented Jul 14, 2021

Moar issues:

vacp2p/rfc#422
vacp2p/rfc#346
vacp2p/rfc#368

@jm-clius
Copy link
Contributor Author

jm-clius commented Aug 2, 2021

Closing as refactor week was completed. A laundry list of all outstanding refactor tasks is tracked in a separate issue: #688

@jm-clius jm-clius closed this as completed Aug 2, 2021
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

No branches or pull requests

5 participants