Skip to content

docs(blogpost): multi-version sim blog post#2986

Open
luckyworkama wants to merge 1 commit into
mainfrom
push-svrsxtlp
Open

docs(blogpost): multi-version sim blog post#2986
luckyworkama wants to merge 1 commit into
mainfrom
push-svrsxtlp

Conversation

@luckyworkama

Copy link
Copy Markdown
Contributor

No description provided.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deploying hydro with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5260442
Status: ✅  Deploy successful!
Preview URL: https://3444589d.hydroflow.pages.dev
Branch Preview URL: https://push-svrsxtlp.hydroflow.pages.dev

View logs

@luckyworkama
luckyworkama force-pushed the push-svrsxtlp branch 7 times, most recently from 0a73e53 to 6022536 Compare July 1, 2026 17:48
@luckyworkama
luckyworkama marked this pull request as ready for review July 1, 2026 17:58
@luckyworkama
luckyworkama requested a review from a team July 1, 2026 17:58
unexpected output: [0]
```

The simulator also produces a trace of decisions it made to show you how it came to that output, so it is easy to debug the behavior exactly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would be nice to show the trace here!

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.

I thought so too but I think the trace is not that interesting because in this case it's a pretty obvious bug that doesn't come about through an unexpected interaction with non-determinism. it also reveals a bunch of internal stuff like the membership tracking code which i think probably would need a lot of explanation.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Until we're able to clean up the trace, it might be helpful for Hydro users to be told how to read it

Comment thread docs/blog/2026-06-29-multi-version-simulation-testing/index.md

@akainth015 akainth015 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it's publish-able, and that the posted comments would improve it.

Comment thread docs/blog/2026-06-29-multi-version-simulation-testing/index.md Outdated
Comment on lines +145 to +151
.source_iter(q!([Request { value: 1 }])) // New version sends 1
.broadcast(
&servers_v2,
TCP.fail_stop().bincode().name("requests"),
nondet!(/** cluster membership discovery is non-deterministic */),
)
.map(q!(|message| message.value ^ 0)) // New version xors against 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm a fan of this example, nice pick! It's easy to understand

@shadaj shadaj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great! Two notes for self-directed polish:

  • The summary that shows up in the blog list should probably be a bit longer
  • Some of the paragraphs are quite long, which makes them difficult to parse. Would be nice to split them up into smaller paragraphs.

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.

3 participants