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

Refactored DiffusionScript #4004

Merged
merged 3 commits into from
Oct 20, 2022
Merged

Refactored DiffusionScript #4004

merged 3 commits into from
Oct 20, 2022

Conversation

bolt12
Copy link
Contributor

@bolt12 bolt12 commented Sep 13, 2022

Description

This PR fixes #3905

Checklist

  • Branch
    • Commit sequence broadly makes sense
    • Commits have useful messages
    • New tests are added if needed and existing tests are updated
    • If this branch changes Consensus and has any consequences for downstream repositories or end users, said changes must be documented in interface-CHANGELOG.md
    • If this branch changes Network and has any consequences for downstream repositories or end users, said changes must be documented in interface-CHANGELOG.md
    • If serialization changes, user-facing consequences (e.g. replay from genesis) are confirmed to be intentional.
  • Pull Request
    • Self-reviewed the diff
    • Useful pull request description at least containing the following information:
      • What does this PR change?
      • Why these changes were needed?
      • How does this affect downstream repositories and/or end-users?
      • Which ticket does this PR close (if any)? If it does, is it linked?
    • Reviewer requested

@bolt12 bolt12 requested a review from coot as a code owner September 13, 2022 17:09
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
Copy link
Contributor Author

bolt12 commented Oct 19, 2022

bors merge

iohk-bors bot added a commit that referenced this pull request Oct 19, 2022
4004: Refactored DiffusionScript r=bolt12 a=bolt12

# Description

This PR fixes #3905 



Co-authored-by: Armando Santos <armando@well-typed.com>
@coot coot mentioned this pull request Oct 19, 2022
9 tasks
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 19, 2022

Timed out.

@coot
Copy link
Contributor

coot commented Oct 19, 2022

bors merge

iohk-bors bot added a commit that referenced this pull request Oct 19, 2022
4004: Refactored DiffusionScript r=coot a=bolt12

# Description

This PR fixes #3905 



Co-authored-by: Armando Santos <armando@well-typed.com>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 19, 2022

Build failed:

@coot
Copy link
Contributor

coot commented Oct 20, 2022

There was an unrelated test failure which I recorded in #4092.

@coot
Copy link
Contributor

coot commented Oct 20, 2022

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 20, 2022

@iohk-bors iohk-bors bot merged commit 2dc7a64 into master Oct 20, 2022
@iohk-bors iohk-bors bot deleted the bolt12/3905 branch October 20, 2022 17:46
iohk-bors bot added a commit that referenced this pull request Oct 21, 2022
4086: Add diffusion tests r=coot a=coot

# Description

Added new tests:

* `prop_diffusion_target_active_local_below` - a copy of a similar test of the
  outbound governor
* `prop_diffusion_async_demotions` - a test which makes sure that if
  `PeerStateActions` report `HotToCold` demotion, the outbound governor will
  remove the peer from the active set.
* `unit_diffusion_async_demotions` - a special case of the previous test, which
  reproduces the bug reported in #4064

The pull request refactors usage of traces by the diffusion tests, which
make it easier to get debugging output.

The pull request modifies `keyedTimeout` so that it does not ignores events
which did not timeout till the end of the simulation.

Requires #4004 to be merged first.

- connection-manager: haddocks, code style & typos
- net-sim: exported WithAddr
- net-sim: protect from establishing connection twice
- net-sim: code cleanup
- diffusion-sim: added prop_diffusion_target_active_local_above
- diffusion-sim: reproduce peer-state-action bug
- diffusion-sim: set keep-alive and ping-pong intervals
- diffusion-sim: refactor how a tracer is used
- diffusion-sim: fix ping pong time limits
- diffusion-sim: cleanup tracers
- diffusion-sim: added debugTracer
- peer-state-actions: export traces
- signals: do not ignore tail in keyedTimeout
- diffusion-sim: added async demotion test
- diffusion-sim: refactor test cases



Co-authored-by: Marcin Szamotulski <coot@coot.me>
iohk-bors bot added a commit that referenced this pull request Nov 9, 2022
4120: Cherry picked network changes for cardano-node-1.35.5 release r=coot a=coot

This cherry-picked patches from the following PRs:

* #3794
* #3844
* #3785
* #3904
* #3915
* #3852
* #3970
* #3979
* #4015
* #4067
* #4004
* #4086
* #4113
* #4106
* #4127
* #4103

Also cherry-picked almost all the commits which modify GitHub actions:
* 18c5244 Run GitHub Actions on pull requests   
* 3adf5a9 Use newer version of io-sim           
* ee9b7a6 Fix GH Actions Windows CI: switch from pkgconf to pkg-config 
* e6cf074 github-actions: use `ubuntu-latest`   
* 9a8b959 Updated versions of github actions    
* fc8f8f0 Fix GH Actions Windows CI caching     
* 7f07c40 Windows Github Actions now use MSYS2  
* b21a7ce Fix chocolatey CI error
* #4134               

TODO:

* [x] bump versions of packages
* [x] input-output-hk/cardano-haskell-packages#84

Co-authored-by: Mark Tullsen <tullsen@galois.com>
Co-authored-by: Marcin Szamotulski <coot@coot.me>
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.

Split SimArgs in Diffusion simulation
2 participants