Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public Root Peers target Diffusion tests #3727

Merged
merged 9 commits into from
May 19, 2022
Merged

Conversation

bolt12
Copy link
Contributor

@bolt12 bolt12 commented Apr 29, 2022

No description provided.

@bolt12 bolt12 requested a review from coot as a code owner April 29, 2022 10:02
@bolt12 bolt12 linked an issue Apr 29, 2022 that may be closed by this pull request
@bolt12 bolt12 changed the title Bolt12/diffusion public Public Root Peers target Diffusion tests Apr 29, 2022
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from c835f4e to 1b25cae Compare May 5, 2022 14:32
@bolt12 bolt12 force-pushed the bolt12/diffusion-test-dns-recoverability branch from 974d516 to 29dde73 Compare May 6, 2022 10:53
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from 1b25cae to f8738cc Compare May 6, 2022 10:55
@bolt12 bolt12 force-pushed the bolt12/diffusion-test-dns-recoverability branch from 29dde73 to ee90827 Compare May 6, 2022 13:29
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from f8738cc to 9bbb400 Compare May 6, 2022 13:30
@bolt12 bolt12 force-pushed the bolt12/diffusion-test-dns-recoverability branch from ee90827 to ef53cfe Compare May 6, 2022 15:50
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from 9bbb400 to 8a04d7d Compare May 6, 2022 15:51
@bolt12 bolt12 force-pushed the bolt12/diffusion-test-dns-recoverability branch from ef53cfe to eae62b2 Compare May 9, 2022 11:19
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from 8a04d7d to 4646e34 Compare May 9, 2022 11:26
@bolt12 bolt12 changed the base branch from bolt12/diffusion-test-dns-recoverability to master May 10, 2022 08:18
)
<$> events
where
verify_target_established_public :: Events DiffusionTestTrace -> Property
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be exported by the Test.Ouroboros.Network.Governor module. The same for the other such functions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not quite because although the code looks pretty much the same we are using different ways of obtaining the trace!

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd extract the core function which does the validation, and export it. This will allows us to use it in the two different contexts. But this can be done in a separate PR if you prefer.

@bolt12 bolt12 changed the base branch from master to bolt12/diffusion-test-dns-recoverability May 17, 2022 10:22
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from 4646e34 to 4ff8cd4 Compare May 17, 2022 10:35
@bolt12 bolt12 requested a review from coot May 17, 2022 11:07
@bolt12 bolt12 force-pushed the bolt12/diffusion-test-dns-recoverability branch from 8660680 to f8fd974 Compare May 17, 2022 15:40
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from 4ff8cd4 to 955b6ed Compare May 17, 2022 16:10
bolt12 added 4 commits May 18, 2022 12:16
Refactor RootPeersDNS tests to use this change instead of a script of domain maps.

Updates JoinNetwork command with possible IP change. If a node restarts with a new IP there's a new thread to update the Domain maps accordingly after some delay.

Removed self from DNSMap in DiffusionScript gen

Added tracing for DNSMap updating
@bolt12 bolt12 force-pushed the bolt12/diffusion-test-dns-recoverability branch from f8fd974 to c09ee1a Compare May 18, 2022 11:16
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from 955b6ed to 0d749d7 Compare May 18, 2022 11:17
@bolt12 bolt12 force-pushed the bolt12/diffusion-public branch from 0d749d7 to 14fc7a4 Compare May 18, 2022 14:59
Copy link
Contributor

@coot coot left a comment

Choose a reason for hiding this comment

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

LGTM

@bolt12 bolt12 changed the base branch from bolt12/diffusion-test-dns-recoverability to master May 19, 2022 14:18
@bolt12
Copy link
Contributor Author

bolt12 commented May 19, 2022

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 19, 2022

@iohk-bors iohk-bors bot merged commit 85b1db3 into master May 19, 2022
@iohk-bors iohk-bors bot deleted the bolt12/diffusion-public branch May 19, 2022 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test that we are connected to public root peers
2 participants