Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

testnet-automation: Don't clobber testnet prefix#12527

Closed
t-nelson wants to merge 1 commit intosolana-labs:masterfrom
t-nelson:testnet-auto-prefix-noclobber
Closed

testnet-automation: Don't clobber testnet prefix#12527
t-nelson wants to merge 1 commit intosolana-labs:masterfrom
t-nelson:testnet-auto-prefix-noclobber

Conversation

@t-nelson
Copy link
Copy Markdown
Contributor

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

@t-nelson t-nelson requested a review from danpaul000 September 28, 2020 16:40
exit 1
fi

dbName="$TESTNET_TAG"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

@danpaul000 danpaul000 Sep 29, 2020

Choose a reason for hiding this comment

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

You'll need to update init-metrics.sh and the call to it here

"${REPO_ROOT}"/net/init-metrics.sh -e
to support the dynamic creation of new db's for this to work.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I'll look into that this evening and report back

@stale
Copy link
Copy Markdown

stale Bot commented Oct 7, 2020

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.

@stale stale Bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Oct 7, 2020
@stale
Copy link
Copy Markdown

stale Bot commented Oct 14, 2020

This stale pull request has been automatically closed. Thank you for your contributions.

@stale stale Bot closed this Oct 14, 2020
@ryoqun ryoqun reopened this Oct 14, 2020
@stale stale Bot removed the stale [bot only] Added to stale content; results in auto-close after a week. label Oct 14, 2020
@stale
Copy link
Copy Markdown

stale Bot commented Oct 21, 2020

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.

@stale stale Bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Oct 21, 2020
@t-nelson t-nelson removed the stale [bot only] Added to stale content; results in auto-close after a week. label Oct 21, 2020
@stale
Copy link
Copy Markdown

stale Bot commented Oct 28, 2020

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.

@stale stale Bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Oct 28, 2020
@stale
Copy link
Copy Markdown

stale Bot commented Nov 5, 2020

This stale pull request has been automatically closed. Thank you for your contributions.

@stale stale Bot closed this Nov 5, 2020
@t-nelson t-nelson reopened this Nov 5, 2020
@stale stale Bot removed the stale [bot only] Added to stale content; results in auto-close after a week. label Nov 5, 2020
@stale
Copy link
Copy Markdown

stale Bot commented Nov 13, 2020

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.

@stale stale Bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Nov 13, 2020
@stale
Copy link
Copy Markdown

stale Bot commented Nov 20, 2020

This stale pull request has been automatically closed. Thank you for your contributions.

@stale stale Bot closed this Nov 20, 2020
@t-nelson t-nelson deleted the testnet-auto-prefix-noclobber branch March 2, 2021 21:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

stale [bot only] Added to stale content; results in auto-close after a week.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants