testnet-automation: Don't clobber testnet prefix#12527
testnet-automation: Don't clobber testnet prefix#12527t-nelson wants to merge 1 commit intosolana-labs:masterfrom
Conversation
| exit 1 | ||
| fi | ||
|
|
||
| dbName="$TESTNET_TAG" |
There was a problem hiding this comment.
So won't clobber the testnets, but you will have overlapping writes to the same db in this case if two hosts are running parallel networks with the same TESTNET_TAG
There was a problem hiding this comment.
You'll need to update init-metrics.sh and the call to it here
solana/system-test/testnet-automation.sh
Line 106 in 13ff6b2
There was a problem hiding this comment.
Ah... yeah... are we worried about having a mess of DBs?
Would be nice if we could have just the one, then generate a UUID for each test run that's tagged to metrics, but I suspect that's a lot of plumbing elsewhere
There was a problem hiding this comment.
Could set custom retention policies for dynamically-created DBs so they don't stick around for too long. The slackbot already creates a custom URL for each test that's run so it displays the db in question only for the time during which the test was running. If something simple like that works for you, that's fine. The bigger problem will come if/when you are having nodes from unrelated testnets writing to the same db at the same time.
There was a problem hiding this comment.
Thanks! I'll look into that this evening and report back
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
Problem
testnet automation doesn't set any host-specific field in the testnet prefix, leading to agents clobbering each others testnets
Summary of Changes
Append hostname to script/user specified
TESTNET_TAG