Skip to content

Commit

Permalink
WIP: Treat "detail" folders as separate
Browse files Browse the repository at this point in the history
  • Loading branch information
ximinez committed Feb 28, 2025
1 parent c1c2b5b commit 6becc2e
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 88 deletions.
22 changes: 22 additions & 0 deletions Builds/levelization/levelization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ do
includelevel="$( dirname ${includelevel} )/toplevel"
fi
includelevel=$( echo ${includelevel} | tr '/' '.' )
if [[ "${file}" =~ "/detail/" ]]
then
if [[ "${include}" =~ "/detail/" ]] || true
then
level+=".detail"
else
# Files in "detail" folders don't have to follow levelization
# rules, except for other "detail" folders"
echo "Ignoring file $file include $include" | tee -a details.txt
continue
fi
fi
if [[ "${include}" =~ "/detail/" ]]
then
includelevel+=".detail"
fi

if [[ "$level" != "$includelevel" ]]
then
Expand Down Expand Up @@ -89,6 +105,10 @@ do
exec 5<"${source}" # open for input
while read -r -u 5 include includefreq
do
if [[ "${include}" =~ "${source}" || "${source}" =~ "${include}" ]]
then
continue
fi
if [[ -f $include ]]
then
if grep -q -w $source $include
Expand Down Expand Up @@ -116,6 +136,8 @@ do
else
echo "$source > $include" >> "${ordering}"
fi
else
echo "$source > $include (no includes counted)" >> "${ordering}"
fi
done
exec 5>&- #close fd 5
Expand Down
29 changes: 3 additions & 26 deletions Builds/levelization/results/loops.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,13 @@ Loop: test.jtx test.unit_test
Loop: xrpld.app xrpld.core
xrpld.app > xrpld.core

Loop: xrpld.app xrpld.ledger
xrpld.app > xrpld.ledger

Loop: xrpld.app xrpld.net
xrpld.app > xrpld.net

Loop: xrpld.app xrpld.overlay
xrpld.overlay == xrpld.app
xrpld.app > xrpld.overlay

Loop: xrpld.app xrpld.peerfinder
xrpld.app > xrpld.peerfinder
Loop: xrpld.app xrpld.peerfinder.detail
xrpld.peerfinder.detail ~= xrpld.app

Loop: xrpld.app xrpld.rpc
xrpld.rpc > xrpld.app

Loop: xrpld.app xrpld.shamap
xrpld.app > xrpld.shamap

Loop: xrpld.core xrpld.net
xrpld.net > xrpld.core

Loop: xrpld.core xrpld.perflog
xrpld.perflog == xrpld.core

Loop: xrpld.net xrpld.rpc
xrpld.rpc ~= xrpld.net

Loop: xrpld.overlay xrpld.rpc
xrpld.rpc ~= xrpld.overlay

Loop: xrpld.perflog xrpld.rpc
xrpld.rpc ~= xrpld.perflog

148 changes: 86 additions & 62 deletions Builds/levelization/results/ordering.txt
Original file line number Diff line number Diff line change
@@ -1,197 +1,221 @@
libxrpl.basics > xrpl.basics
libxrpl.basics > xrpl.beast
libxrpl.crypto > openssl.toplevel (no includes counted)
libxrpl.crypto > xrpl.basics
libxrpl.crypto > xrpl.beast
libxrpl.json > xrpl.basics
libxrpl.json > xrpl.json
libxrpl.json > xrpl.beast
libxrpl.json > xrpl.json.detail
libxrpl.protocol > openssl.toplevel (no includes counted)
libxrpl.protocol > xrpl.basics
libxrpl.protocol > xrpl.beast
libxrpl.protocol > xrpl.crypto (no includes counted)
libxrpl.protocol > xrpl.json
libxrpl.protocol > xrpl.protocol
libxrpl.protocol > xrpl.protocol.detail
libxrpl.resource > xrpl.basics
libxrpl.resource > xrpl.resource
libxrpl.resource > xrpl.beast
libxrpl.resource > xrpl.resource.detail
libxrpl.server > xrpl.basics
libxrpl.server > xrpl.beast
libxrpl.server > xrpl.json
libxrpl.server > xrpl.protocol
libxrpl.server > xrpl.server
libxrpl.server > xrpl.server.detail
test.app > date.toplevel (no includes counted)
test.app > test.jtx
test.app > test.rpc
test.app > test.toplevel
test.app > test.unit_test
test.app > xrpl.basics
test.app > xrpl.beast
test.app > xrpld.app
test.app > xrpld.app.detail
test.app > xrpld.core
test.app > xrpld.ledger
test.app > xrpld.nodestore
test.app > xrpld.nodestore.detail
test.app > xrpld.overlay
test.app > xrpld.overlay.detail
test.app > xrpld.rpc
test.app > xrpld.rpc.detail
test.app > xrpl.json
test.app > xrpl.protocol
test.app > xrpl.resource
test.basics > test.jtx
test.basics > test.unit_test
test.basics > xrpl.basics
test.basics > xrpl.beast
test.basics > xrpld.perflog
test.basics > xrpld.rpc
test.basics > xrpld.rpc.detail
test.basics > xrpl.json
test.basics > xrpl.protocol
test.basics > xrpl.protocol.detail
test.beast > xrpl.basics
test.beast > xrpl.beast
test.conditions > xrpl.basics
test.conditions > xrpl.beast
test.conditions > xrpld.conditions
test.conditions > xrpld.conditions.detail
test.consensus > test.csf
test.consensus > test.toplevel
test.consensus > test.unit_test
test.consensus > xrpl.basics
test.consensus > xrpl.beast
test.consensus > xrpld.app
test.consensus > xrpld.consensus
test.consensus > xrpld.ledger
test.core > test.jtx
test.core > test.toplevel
test.core > test.unit_test
test.core > xrpl.basics
test.core > xrpl.beast
test.core > xrpl.crypto (no includes counted)
test.core > xrpld.core
test.core > xrpld.core.detail
test.core > xrpld.perflog
test.core > xrpl.json
test.core > xrpl.server
test.csf > xrpl.basics
test.csf > xrpl.beast
test.csf > xrpld.consensus
test.csf > xrpl.json
test.csf > xrpl.protocol
test.json > test.jtx
test.json > xrpl.beast
test.json > xrpl.json
test.jtx > date.toplevel (no includes counted)
test.jtx > xrpl.basics
test.jtx > xrpl.beast
test.jtx > xrpld.app
test.jtx > xrpld.app.detail
test.jtx > xrpld.consensus
test.jtx > xrpld.core
test.jtx > xrpld.ledger
test.jtx > xrpld.net
test.jtx > xrpld.rpc
test.jtx > xrpld.rpc.detail
test.jtx > xrpl.json
test.jtx > xrpl.protocol
test.jtx > xrpl.resource
test.jtx > xrpl.server
test.ledger > test.jtx
test.ledger > test.toplevel
test.ledger > xrpl.basics
test.ledger > xrpl.beast
test.ledger > xrpld.app
test.ledger > xrpld.app.detail
test.ledger > xrpld.core
test.ledger > xrpld.ledger
test.ledger > xrpl.protocol
test.nodestore > nudb.detail.detail (no includes counted)
test.nodestore > nudb.toplevel (no includes counted)
test.nodestore > test.jtx
test.nodestore > test.toplevel
test.nodestore > test.unit_test
test.nodestore > xrpl.basics
test.nodestore > xrpl.beast
test.nodestore > xrpld.core
test.nodestore > xrpld.nodestore
test.nodestore > xrpld.nodestore.detail
test.nodestore > xrpld.unity
test.overlay > test.jtx
test.overlay > test.toplevel
test.overlay > test.unit_test
test.overlay > xrpl.basics
test.overlay > xrpl.beast
test.overlay > xrpld.app
test.overlay > xrpld.overlay
test.overlay > xrpld.peerfinder
test.overlay > xrpld.overlay.detail
test.overlay > xrpld.peerfinder.detail
test.overlay > xrpld.shamap
test.overlay > xrpl.protocol
test.peerfinder > test.beast
test.peerfinder > test.unit_test
test.peerfinder > xrpl.basics
test.peerfinder > xrpl.beast
test.peerfinder > xrpld.core
test.peerfinder > xrpld.peerfinder
test.peerfinder > xrpld.peerfinder.detail
test.peerfinder > xrpl.protocol
test.protocol > test.toplevel
test.protocol > xrpl.basics
test.protocol > xrpl.beast
test.protocol > xrpl.crypto (no includes counted)
test.protocol > xrpl.json
test.protocol > xrpl.protocol
test.resource > test.unit_test
test.resource > xrpl.basics
test.resource > xrpl.beast
test.resource > xrpl.resource
test.resource > xrpl.resource.detail
test.rpc > grpcpp.toplevel (no includes counted)
test.rpc > test.jtx
test.rpc > test.toplevel
test.rpc > xrpl.basics
test.rpc > xrpl.beast
test.rpc > xrpld.app
test.rpc > xrpld.app.detail
test.rpc > xrpld.core
test.rpc > xrpld.net
test.rpc > xrpld.overlay
test.rpc > xrpld.rpc
test.rpc > xrpld.rpc.detail
test.rpc > xrpl.json
test.rpc > xrpl.proto (no includes counted)
test.rpc > xrpl.protocol
test.rpc > xrpl.resource
test.rpc > xrpl.resource.detail
test.server > test.jtx
test.server > test.toplevel
test.server > test.unit_test
test.server > xrpl.basics
test.server > xrpl.beast
test.server > xrpld.app
test.server > xrpld.core
test.server > xrpld.rpc
test.server > xrpl.json
test.server > xrpl.server
test.shamap > test.unit_test
test.shamap > xrpl.basics
test.shamap > xrpl.beast
test.shamap > xrpld.nodestore
test.shamap > xrpld.shamap
test.shamap > xrpl.protocol
test.toplevel > test.csf
test.toplevel > xrpl.json
test.unit_test > xrpl.basics
test.unit_test > xrpl.beast
xrpl.basics > date.toplevel (no includes counted)
xrpl.basics > sys.toplevel (no includes counted)
xrpl.basics > xrpl.beast
xrpl.json > xrpl.basics
xrpl.json > xrpl.beast
xrpl.protocol > xrpl.basics
xrpl.protocol > xrpl.beast
xrpl.protocol > xrpl.crypto (no includes counted)
xrpl.protocol > xrpl.json
xrpl.protocol.detail > xrpl.basics
xrpl.protocol.detail > xrpl.beast
xrpl.resource > xrpl.basics
xrpl.resource > xrpl.beast
xrpl.resource > xrpl.json
xrpl.resource > xrpl.protocol
xrpl.resource.detail > xrpl.basics
xrpl.resource.detail > xrpl.beast
xrpl.resource.detail > xrpl.json
xrpl.resource.detail > xrpl.protocol
xrpl.server > xrpl.basics
xrpl.server > xrpl.json
xrpl.server > xrpl.protocol
xrpl.server > xrpl.beast
xrpl.server.detail > xrpl.basics
xrpl.server.detail > xrpl.beast
xrpl.server.detail > xrpl.crypto (no includes counted)
xrpl.server.detail > xrpl.json
xrpl.server.detail > xrpl.protocol
xrpld.app > date.toplevel (no includes counted)
xrpld.app > google.protobuf (no includes counted)
xrpld.app > grpcpp.toplevel (no includes counted)
xrpld.app > sys.toplevel (no includes counted)
xrpld.app > test.unit_test
xrpld.app > xrpl.basics
xrpld.app > xrpld.conditions
xrpld.app > xrpl.beast
xrpld.app > xrpl.crypto (no includes counted)
xrpld.app > xrpld.consensus
xrpld.app > xrpld.ledger
xrpld.app > xrpld.nodestore
xrpld.app > xrpld.nodestore.detail
xrpld.app > xrpld.perflog
xrpld.app > xrpl.json
xrpld.app > xrpl.protocol
xrpld.app > xrpl.resource
xrpld.conditions > xrpl.basics
xrpld.conditions > xrpl.protocol
xrpld.consensus > xrpl.basics
xrpld.consensus > xrpl.json
xrpld.consensus > xrpl.protocol
xrpld.core > xrpl.basics
xrpld.core > xrpl.json
xrpld.core > xrpl.protocol
xrpld.ledger > xrpl.basics
xrpld.ledger > xrpld.core
xrpld.ledger > xrpl.json
xrpld.ledger > xrpl.protocol
xrpld.net > xrpl.basics
xrpld.net > xrpl.json
xrpld.net > xrpl.protocol
xrpld.net > xrpl.resource
xrpld.nodestore > xrpl.basics
xrpld.nodestore > xrpld.core
xrpld.nodestore > xrpld.unity
xrpld.nodestore > xrpl.json
xrpld.nodestore > xrpl.protocol
xrpld.overlay > xrpl.basics
xrpld.overlay > xrpld.core
xrpld.overlay > xrpld.peerfinder
xrpld.overlay > xrpld.perflog
xrpld.overlay > xrpl.json
xrpld.overlay > xrpl.protocol
xrpld.overlay > xrpl.resource
xrpld.overlay > xrpl.server
xrpld.peerfinder > xrpl.basics
xrpld.peerfinder > xrpld.core
xrpld.peerfinder > xrpl.protocol
xrpld.perflog > xrpl.basics
xrpld.perflog > xrpl.json
xrpld.perflog > xrpl.protocol
xrpld.rpc > xrpl.basics
xrpld.rpc > xrpld.core
xrpld.rpc > xrpld.ledger
xrpld.rpc > xrpld.nodestore
xrpld.rpc > xrpl.json
xrpld.rpc > xrpl.protocol
xrpld.rpc > xrpl.resource
xrpld.rpc > xrpl.server
xrpld.shamap > xrpl.basics
xrpld.shamap > xrpld.nodestore
xrpld.shamap > xrpl.protocol

0 comments on commit 6becc2e

Please sign in to comment.