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

[**Part-1**] neo-module/master #3232

Merged
merged 30 commits into from
May 21, 2024

Conversation

cschuchardt88
Copy link
Member

@cschuchardt88 cschuchardt88 commented May 14, 2024

Change Log

  • Moved neo-modules/src/ to directory src
  • Moved neo-modules/tests/ to directory tests
  • Configured .github workflows for tests.
  • Run dotnet format
  • Added neo-modules projects to neo.sln file.

Closes #3230

image

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

image

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@shargon @Jim8y @vncoelho @superboyiii

@cschuchardt88 cschuchardt88 marked this pull request as draft May 14, 2024 03:45
@cschuchardt88 cschuchardt88 marked this pull request as ready for review May 14, 2024 04:12
@shargon
Copy link
Member

shargon commented May 14, 2024

what is part 2?

.editorconfig Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
Not related to the PR
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

I see that you moved modules inside the root folder.
Why not src?

@cschuchardt88
Copy link
Member Author

I see that you moved modules inside the root folder. Why not src?

Because I figured it would make more sense to keep them separate.

  1. Its unrelated to core development. (their plugins)
  2. Easier to find and maintain.

what is part 2?

Any of the commits above you don't want, would be part 2 or unrelated un-needed changes/fixes. Part 1 is just to make a working solution.

@vncoelho
Copy link
Member

@cschuchardt88,
I think it should be in the SRC in this first moment, like the others.

Furthermore, avoid any other change in files as we had discussed previously.
Thus, use any change in editorconfig in an additional PR.

Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

I think that using the name plugins instead of modules is also great for the folder

@cschuchardt88
Copy link
Member Author

cschuchardt88 commented May 14, 2024

At least with plugins name we limit our self to only allowing plugins in this folder. But that can be done In the sln file to show. It can be big directory with +13 items now being added. Becoming to hard to manage with unrelated items in src directory.

@vncoelho
Copy link
Member

vncoelho commented May 20, 2024

I think it will be correct with the last commit, just waiting for the tests

@vncoelho
Copy link
Member

In principle, checking the logs, it looks like everything was fine.
However, the coverage summary is not directly appearing on the PR.

image

@cschuchardt88
Copy link
Member Author

cschuchardt88 commented May 20, 2024

In principle, checking the logs, it looks like everything was fine. However, the coverage summary is not directly appearing on the PR.

I believe if it doesn't than coverage didn't change.

@vncoelho
Copy link
Member

For Plugins the coverage is correct.
"coverage/coveralls (push) - Coverage remained the same at 48.583%" -> This is from the last commit on neo-modules

@vncoelho
Copy link
Member

The other also increased a little. I think it is all correct.
We just have some display problems here in the PR. We can fix later if they persist.

Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

I am adjusting my tooling and will test in some minutes.

Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

#36 71.70 /usr/share/dotnet/sdk/8.0.203/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ConflictResolution.targets(112,5): error NETSDK1152: Found multiple publish output files with the same relative path: /opt/neoLib/src/Plugins/RpcServer/config.json, /opt/neoLib/src/Plugins/StateService/config.json. [/opt/neoLib/src/Plugins/StateService/StateService.csproj::TargetFramework=net8.0]

@cschuchardt88 cschuchardt88 changed the title [**MOVE**] neo-module/master [**Part-1**] neo-module/master May 20, 2024
@vncoelho
Copy link
Member

For me it is ready to merge.

Code is the same as neo-modules apart from necessary changes.
Compilation, tests and publish are all good in my local environment.

However, code is not running due to recent PRs that introduces some problems on wallet.
I think we can merge and then fix in order to move forward.

@Jim8y
Copy link
Contributor

Jim8y commented May 20, 2024

If code is good, we can go with this pr already. Not necessarily to complete everything in one pr. But maybe we need a development branch? @shargon

@cschuchardt88
Copy link
Member Author

I have #3244 for changes

@vncoelho
Copy link
Member

vncoelho commented May 20, 2024

If code is good, we can go with this pr already. Not necessarily to complete everything in one pr. But maybe we need a development branch? @shargon

If we go to a development branch please revert the last 3 commits as well and migrate them to such branch.

@shargon
Copy link
Member

shargon commented May 20, 2024

Give me a couple of hours for the comparison

@vncoelho
Copy link
Member

@Jim8y , I think we can try with the master branch a little bit more now that we have "all necessary components" here.
I think that by pushing a UT that tests node's ability to start a consensus and do basic operations will be very good. Maybe we can keep working on main branch in such case.

But I am not against using a dev branch.

Copy link
Contributor

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

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

Code-wise (at 68e4146) I've noticed some s/this// changes and two lines moved in src/Plugins/RpcClient/Models/RpcInvokeResult.cs compared to master of neo-modules. Minor, but can be fixed to have cleaner initial state here and stylistic changes in separate PRs.

Can't comment on csproj/workflows changes, likely OK.

Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

Perhaps the aforementioned problem I mentioned on discord was not introduced on 08f2dfc56762bb43be33e873bc3659bad368d4d6, but here.

In this case, please do not merge until I finish my tests because the error here may take time to solve otherwise.

Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

The error was, in fact, a typo on the new configuration file name on Part-2 PR.
Thus, it is approved now with tests running as expected.

Copy link
Member

@shargon shargon left a comment

Choose a reason for hiding this comment

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

The changes with neo-modules are understandable, to reduce warnings only "this" and a few things were removed.

@shargon shargon merged commit 0f04c7f into neo-project:master May 21, 2024
4 of 5 checks passed
@shargon shargon deleted the neo-module/master branch May 21, 2024 08:01
Jim8y added a commit to Jim8y/neo that referenced this pull request May 25, 2024
…gins

* 'latest-plugins' of github.com:Jim8y/neo: (21 commits)
  fix: custom plugins won't shown by command `plugins` (neo-project#3269)
  COVERALL: Improve maintenance and readbility of some variables (neo-project#3248)
  Update nuget (neo-project#3262)
  [**Part-2**] Neo module/master fixes (neo-project#3244)
  Fix `dotnet pack` error (neo-project#3266)
  Fix and Update devcontainer.json to use Dockerfile  (neo-project#3259)
  Add optimization to template (neo-project#3247)
  Optimize plugin's models (neo-project#3246)
  fix CancelTransaction !signers.Any() (neo-project#3263)
  COVERALL: fix broken by changing report from lcov to cobertura (neo-project#3252)
  fix TraverseIterator count (neo-project#3261)
  Native: include DeprecatedIn hardfork into usedHardforks (neo-project#3245)
  [**Part-1**] `neo-module/master` (neo-project#3232)
  Make `ApplicationEngine.LoadContext` protection level `public` (neo-project#3243)
  improve parse method in neo-cli (neo-project#3204)
  Fix neo-project#3239 (neo-project#3242)
  Neo.CLI: enable hardforks for NeoFS mainnet (neo-project#3240)
  v3.7.4 (neo-project#3237)
  fix hardfork issues (neo-project#3234)
  Update src/Neo.CLI/CLI/MainService.Plugins.cs
  ...

# Conflicts:
#	src/Neo.CLI/CLI/MainService.Plugins.cs
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.

Migrate Neo-Modules back to Neo core
5 participants