Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Replace submodules with packages (NethermindEth#4374) (NethermindEth#…
Browse files Browse the repository at this point in the history
…4656)

* Replace submodules with packages (NethermindEth#4374)

* Add enough projects to build benchmark runner (NethermindEth#4431)

* Build fix to issue caused by int256

* one more possible build fix

Co-authored-by: Ruben Buniatyan <rubo@users.noreply.github.com>
Co-authored-by: Alexey <me@flcl.me>
  • Loading branch information
3 people authored and Andrew-Pohl committed Oct 7, 2022
1 parent b3a69cd commit 39b7b36
Show file tree
Hide file tree
Showing 107 changed files with 443 additions and 6,648 deletions.
130 changes: 83 additions & 47 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore

# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
network_diag.txt

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Mono auto generated files
mono_crash.*

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/

# Visual Studio 2015/2017 cache/options directory
.vs/
Expand All @@ -37,9 +44,10 @@ Generated\ Files/
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml

# Build Results of an ATL Project
[Dd]ebugPS/
Expand All @@ -53,15 +61,17 @@ BenchmarkDotNet.Artifacts/
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json

# ASP.NET Scaffolding
ScaffoldingReadMe.txt

# StyleCop
StyleCopReport.xml

# Files built by Visual Studio
*_i.c
*_p.c
*_i.h
*_h.h
*.ilk
*.meta
*.obj
Expand All @@ -78,7 +88,9 @@ StyleCopReport.xml
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
Expand Down Expand Up @@ -119,9 +131,7 @@ $tf/
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode
*.DotSettings

# TeamCity is a build add-in
_TeamCity*
Expand All @@ -133,6 +143,11 @@ _TeamCity*
.axoCover/*
!.axoCover/settings.json

# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info

# Visual Studio code coverage results
*.coverage
*.coveragexml
Expand Down Expand Up @@ -180,6 +195,8 @@ PublishScripts/

# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
Expand All @@ -204,12 +221,14 @@ BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
!?*.[Cc]ache/

# Others
ClientBin/
Expand Down Expand Up @@ -253,6 +272,9 @@ ServiceFabricBackup/
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl

# Microsoft Fakes
FakesAssemblies/
Expand All @@ -273,6 +295,17 @@ node_modules/
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw

# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp

# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp

# Visual Studio 6 technical files
*.ncb
*.aps

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
Expand All @@ -288,12 +321,8 @@ paket-files/
# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/
# CodeRush personal settings
.cr/personal

# Python Tools for Visual Studio (PTVS)
__pycache__/
Expand Down Expand Up @@ -330,45 +359,52 @@ ASALocalRun/
# MFractors (Xamarin productivity tool) working folder
.mfractor/

# Visual Studio Code configuration
.vscode/
# Local History for Visual Studio
.localhistory/

# Visual Studio History (VSHistory) files
.vshistory/

# BeatPulse healthcheck temp database
healthchecksdb

#######################################
# #
# Custom additional gitignore specs #
# #
#######################################
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/

# Local History for Visual Studio
.localhistory/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/

ndm/
ndm_db/
nethermind_db/
keystore/
spaceneth_db/
docs/build/
out/
db/
plugins/
logs/
reports/
src/Nethermind/Nethermind.Runner/git-hash
src/Nethermind/Nethermind.Runner/network
src/Nethermind/Nethermind.Runner/node.key.plain
# Fody - auto-generated XML schema
FodyWeavers.xsd

# Console history
# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

src/Nethermind/**/cli.cmd.history
# Local History for Visual Studio Code
.history/

# Output files
src/Nethermind/Nethermind.BeaconNode.Host/configuration/Output
src/Nethermind/Nethermind.BeaconNode.Host/release
# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp

# Memory dumps
mono_crash.mem.*.blob
# JetBrains Rider
.idea/
*.sln.iml

# macOS
.DS_Store

# Include development self-signed certificate
!src/Nethermind/Nethermind.BeaconNode.Host/Certificates/nethermind_dotnet_dev_cert.pfx
# Nethermind
!src/Nethermind/Nethermind.BeaconNode.Host/Certificates/*.pfx
src/Nethermind/Nethermind.BeaconNode.Host/configuration/Output
src/Nethermind/Nethermind.BeaconNode.Host/release
src/Nethermind/Nethermind.Runner/git-hash
keystore/
10 changes: 0 additions & 10 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
[submodule "src/tests"]
path = src/tests
url = https://github.com/ethereum/tests.git
[submodule "src/Dirichlet"]
path = src/Dirichlet
url = https://github.com/tkstanczak/Dirichlet.git
[submodule "src/bench_precompiles"]
path = src/bench_precompiles
url = https://github.com/shamatar/bench_precompiles.git
[submodule "gitbook/docs"]
path = gitbook/docs
url = https://github.com/NethermindEth/docs.git
[submodule "src/int256"]
path = src/int256
url = https://github.com/NethermindEth/int256.git
[submodule "src/Math.Gmp.Native"]
path = src/Math.Gmp.Native
url = https://github.com/NethermindEth/Math.Gmp.Native.git
branch = master
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ ARG BUILDPLATFORM
COPY . .

RUN if [ "$TARGETARCH" = "amd64" ] ; \
then git submodule update --init src/Dirichlet src/int256 src/Math.Gmp.Native && \
dotnet publish src/Nethermind/Nethermind.Runner -r $TARGETOS-x64 -c release -o out ; \
else git submodule update --init src/Dirichlet src/int256 src/Math.Gmp.Native && \
dotnet publish src/Nethermind/Nethermind.Runner -r $TARGETOS-$TARGETARCH -c release -o out ; \
then dotnet publish src/Nethermind/Nethermind.Runner -r $TARGETOS-x64 -c release -o out ; \
else dotnet publish src/Nethermind/Nethermind.Runner -r $TARGETOS-$TARGETARCH -c release -o out ; \
fi

FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet:6.0-jammy
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ ARG BUILDPLATFORM
COPY . .

RUN if [ "$TARGETARCH" = "amd64" ] ; \
then git submodule update --init src/Dirichlet src/int256 src/Math.Gmp.Native && \
dotnet tool install JetBrains.dotTrace.GlobalTools --version 2021.3.2 --tool-path /tmp/ && \
then dotnet tool install JetBrains.dotTrace.GlobalTools --version 2021.3.2 --tool-path /tmp/ && \
dotnet add src/Nethermind/Nethermind.Runner package JetBrains.dotMemory.Console.$TARGETOS-x64 --version 2021.3.2 --package-directory /tmp/ && \
dotnet publish src/Nethermind/Nethermind.Runner -r $TARGETOS-x64 -c release -o out ; \
else git submodule update --init src/Dirichlet src/int256 src/Math.Gmp.Native && \
dotnet tool install JetBrains.dotTrace.GlobalTools --version 2021.3.2 --tool-path /tmp/ && \
else dotnet tool install JetBrains.dotTrace.GlobalTools --version 2021.3.2 --tool-path /tmp/ && \
dotnet add src/Nethermind/Nethermind.Runner package JetBrains.dotMemory.Console.$TARGETOS-$TARGETARCH --version 2021.3.2 --package-directory /tmp/ && \
dotnet publish src/Nethermind/Nethermind.Runner -r $TARGETOS-$TARGETARCH -c release -o out ; \
fi
Expand Down
17 changes: 0 additions & 17 deletions Dockerfile.gmp

This file was deleted.

3 changes: 1 addition & 2 deletions Dockerfile.stateRunner
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
COPY . .

RUN apk add git && \
git submodule update --init src/Dirichlet src/int256 src/Math.Gmp.Native && \
dotnet publish src/Nethermind/Nethermind.State.Test.Runner -c release -o out

FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine

COPY --from=build /out .

ENTRYPOINT [ "./nethtest" ]
ENTRYPOINT [ "./nethtest" ]
1 change: 0 additions & 1 deletion src/Dirichlet
Submodule Dirichlet deleted from 346438
1 change: 0 additions & 1 deletion src/Math.Gmp.Native
Submodule Math.Gmp.Native deleted from 2d0250
Binary file removed src/Nethermind/2015_update3_vc_redist.x64.exe
Binary file not shown.
15 changes: 4 additions & 11 deletions src/Nethermind/Baseline.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30011.22
# Visual Studio Version 17
VisualStudioVersion = 17.2.32630.192
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Baseline", "Nethermind.Baseline\Nethermind.Baseline.csproj", "{E3CA6610-B520-43EB-A12B-27A592C9CA68}"
EndProject
Expand Down Expand Up @@ -59,8 +59,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Db.Rocks", "Neth
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.HashLib", "Nethermind.HashLib\Nethermind.HashLib.csproj", "{3D1257A1-2981-48DB-BD41-BBE9C83B5316}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Int256", "..\int256\src\Nethermind.Int256\Nethermind.Int256.csproj", "{D91B6626-AAFF-4BAB-9A1A-C35D914246C7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Logging", "Nethermind.Logging\Nethermind.Logging.csproj", "{C8BB54D9-300C-476B-B38B-7795C830CD76}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Native", "Nethermind.Native\Nethermind.Native.csproj", "{29C4A00C-30F9-421A-BF18-7060602C7EEB}"
Expand Down Expand Up @@ -93,9 +91,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Grpc", "Nethermi
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Monitoring", "Nethermind.Monitoring\Nethermind.Monitoring.csproj", "{DFDD625C-04B4-41BC-AC5F-3F9EBFA08248}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nethermind.Runner.Test", "Nethermind.Runner.Test\Nethermind.Runner.Test.csproj", "{C50317E4-E5C8-4B33-9D27-82FB0840E1B8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Runner.Test", "Nethermind.Runner.Test\Nethermind.Runner.Test.csproj", "{C50317E4-E5C8-4B33-9D27-82FB0840E1B8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nethermind.Analytics", "Nethermind.Analytics\Nethermind.Analytics.csproj", "{A59A7F43-E20A-42E6-97A6-7EE3B844EF43}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Analytics", "Nethermind.Analytics\Nethermind.Analytics.csproj", "{A59A7F43-E20A-42E6-97A6-7EE3B844EF43}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -211,10 +209,6 @@ Global
{3D1257A1-2981-48DB-BD41-BBE9C83B5316}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3D1257A1-2981-48DB-BD41-BBE9C83B5316}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3D1257A1-2981-48DB-BD41-BBE9C83B5316}.Release|Any CPU.Build.0 = Release|Any CPU
{D91B6626-AAFF-4BAB-9A1A-C35D914246C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D91B6626-AAFF-4BAB-9A1A-C35D914246C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D91B6626-AAFF-4BAB-9A1A-C35D914246C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D91B6626-AAFF-4BAB-9A1A-C35D914246C7}.Release|Any CPU.Build.0 = Release|Any CPU
{C8BB54D9-300C-476B-B38B-7795C830CD76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C8BB54D9-300C-476B-B38B-7795C830CD76}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C8BB54D9-300C-476B-B38B-7795C830CD76}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -311,7 +305,6 @@ Global
{DD343C66-E154-494E-BC01-1B66BA345DDE} = {E4D07050-1288-4344-B79D-470C2DC86146}
{964B7AB0-A507-4763-866B-C61D80266DEF} = {E4D07050-1288-4344-B79D-470C2DC86146}
{3D1257A1-2981-48DB-BD41-BBE9C83B5316} = {E4D07050-1288-4344-B79D-470C2DC86146}
{D91B6626-AAFF-4BAB-9A1A-C35D914246C7} = {E4D07050-1288-4344-B79D-470C2DC86146}
{C8BB54D9-300C-476B-B38B-7795C830CD76} = {E4D07050-1288-4344-B79D-470C2DC86146}
{29C4A00C-30F9-421A-BF18-7060602C7EEB} = {E4D07050-1288-4344-B79D-470C2DC86146}
{F53D4760-545A-4086-AE9D-7A0285791413} = {E4D07050-1288-4344-B79D-470C2DC86146}
Expand Down
Loading

0 comments on commit 39b7b36

Please sign in to comment.