Skip to content

Commit

Permalink
Merge pull request #1048 from UniqueNetwork/ci/lxcm-trace
Browse files Browse the repository at this point in the history
feat(baedeker): add xcm logs through rewrites
  • Loading branch information
CertainLach authored Jan 9, 2024
2 parents 647ca2a + 2e027a9 commit 667f02f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 61 deletions.
27 changes: 17 additions & 10 deletions .baedeker/rewrites.example.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ local dotenv = {
};

function(prev, repoDir)
(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({
'bin/unique': '%s/target/release/unique-collator' % repoDir,
'bin/polkadot': { dockerImage: 'uniquenetwork/builder-polkadot:%s' % dotenv.POLKADOT_MAINNET_BRANCH },
'bin/acala': { dockerImage: 'uniquenetwork/builder-acala:%s' % dotenv.ACALA_BUILD_BRANCH },
'bin/moonbeam': { dockerImage: 'uniquenetwork/builder-moonbeam:%s' % dotenv.MOONBEAM_BUILD_BRANCH },
'bin/cumulus': { dockerImage: 'uniquenetwork/builder-cumulus:%s' % dotenv.STATEMINE_BUILD_BRANCH },
'bin/astar': { dockerImage: 'uniquenetwork/builder-astar:%s' % dotenv.ASTAR_BUILD_BRANCH },
'bin/polkadex': { dockerImage: 'uniquenetwork/builder-polkadex:%s' % dotenv.POLKADEX_BUILD_BRANCH },
'bin/hydradx': { dockerImage: 'uniquenetwork/builder-hydraDx:%s' % dotenv.HYDRADX_BUILD_BRANCH },
})(prev)
(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths(
{
'bin/unique': '%s/target/release/unique-collator' % repoDir,
'bin/polkadot': { dockerImage: 'uniquenetwork/builder-polkadot:%s' % dotenv.POLKADOT_MAINNET_BRANCH },
'bin/acala': { dockerImage: 'uniquenetwork/builder-acala:%s' % dotenv.ACALA_BUILD_BRANCH },
'bin/moonbeam': { dockerImage: 'uniquenetwork/builder-moonbeam:%s' % dotenv.MOONBEAM_BUILD_BRANCH },
'bin/cumulus': { dockerImage: 'uniquenetwork/builder-cumulus:%s' % dotenv.STATEMINE_BUILD_BRANCH },
'bin/astar': { dockerImage: 'uniquenetwork/builder-astar:%s' % dotenv.ASTAR_BUILD_BRANCH },
'bin/polkadex': { dockerImage: 'uniquenetwork/builder-polkadex:%s' % dotenv.POLKADEX_BUILD_BRANCH },
'bin/hydradx': { dockerImage: 'uniquenetwork/builder-hydraDx:%s' % dotenv.HYDRADX_BUILD_BRANCH },
},
extra_node_mixin={
extraArgs+: [
'-lxcm=trace',
],
},
)(prev)
9 changes: 0 additions & 9 deletions .baedeker/xcm-opal.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ local relay = {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob', 'charlie', 'dave', 'eve']
},
Expand All @@ -38,9 +35,6 @@ local opal = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -58,9 +52,6 @@ local westmint = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand Down
18 changes: 0 additions & 18 deletions .baedeker/xcm-quartz.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ local relay = {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob', 'charlie', 'dave', 'eve', 'ferdie']
},
Expand All @@ -43,9 +40,6 @@ local quartz = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -66,9 +60,6 @@ local karura = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -88,9 +79,6 @@ local moonriver = {
[name]: {
bin: $.bin,
wantedKeys: 'para-nimbus',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alith', 'baltathar']
},
Expand All @@ -108,9 +96,6 @@ local statemine = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -128,9 +113,6 @@ local shiden = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand Down
24 changes: 0 additions & 24 deletions .baedeker/xcm-unique.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ local relay = {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob', 'charlie', 'dave', 'eve', 'ferdie', 'gregory', 'holly']
},
Expand All @@ -44,9 +41,6 @@ local unique = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -67,9 +61,6 @@ local acala = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -89,9 +80,6 @@ local moonbeam = {
[name]: {
bin: $.bin,
wantedKeys: 'para-nimbus',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alith', 'baltathar']
},
Expand All @@ -109,9 +97,6 @@ local statemint = {
[name]: {
bin: $.bin,
wantedKeys: 'para-ed',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -129,9 +114,6 @@ local astar = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -149,9 +131,6 @@ local polkadex = {
[name]: {
bin: $.bin,
wantedKeys: 'para',
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand All @@ -170,9 +149,6 @@ local hydraDx = {
bin: $.bin,
wantedKeys: 'para',
legacyRpc: true,
extraArgs: [
"-lxcm=trace"
],
},
for name in ['alice', 'bob']
},
Expand Down

0 comments on commit 667f02f

Please sign in to comment.