Thank you for your interest in contributing to Orleans.FSharp! This project brings idiomatic F# to Microsoft Orleans, and every contribution -- whether it's a bug fix, new test, documentation improvement, or feature -- makes the library better for the entire F# community.
- .NET 10 SDK
- An editor with F# support (VS Code + Ionide, Rider, or Visual Studio)
dotnet buildThe solution uses TreatWarningsAsErrors, so the build must complete with zero warnings.
On a completely clean NuGet cache, build or restore the whole solution once before running tests or samples. The functional runtime relies on Orleans source generation during a normal compile; the explicit build also matches the cold-run order used in CI.
dotnet testThe complete test suite must pass before submitting a pull request.
Orleans.FSharp follows idiomatic F# conventions:
- Use
task {}exclusively -- never useasync {}in production code. The Orleans runtime is built onTask<T>, andtask {}avoids unnecessary allocations fromAsync.StartAsTask. - XML documentation comments are required on all public API members. Every public function, type, and module should have a
<summary>doc comment. - Discriminated unions over class hierarchies -- model state and commands as DUs wherever possible.
- Pure functions preferred -- keep side effects at the edges; grain handlers should be as pure as practical.
- No mutable state outside of Orleans-managed grain state.
TreatWarningsAsErrorsis enabled -- the CI build will reject any warnings.
-
Fork the repository and create a feature branch from
main:git checkout -b my-feature main
-
Make your changes following the code style guidelines above.
-
Add tests for any new functionality. We use expecto-style tests and aim for comprehensive coverage.
-
Ensure everything passes:
dotnet build # 0 warnings dotnet test # all tests green
-
Push your branch and open a pull request against
main. -
Describe your changes clearly in the PR description. Explain what changed and why.
-
A maintainer will review your PR. We aim to respond within a few days.
Not sure where to start? Here are areas where contributions are especially valuable:
- More tests -- edge cases, error paths, concurrency scenarios.
- Documentation improvements -- clearer examples, better explanations, fixing typos.
- Persistence provider integrations -- additional storage providers, clustering providers, or reminder services.
- Samples -- real-world example applications that demonstrate Orleans.FSharp patterns.
- Performance -- benchmarks, optimizations, reducing allocations.
- Analyzer rules -- new compile-time checks for the
Orleans.FSharp.Analyzerspackage.
If this is your first contribution to an open-source project, welcome! Here are some tips:
- Look for issues labeled
good first issue-- these are specifically chosen to be approachable for newcomers. - Don't hesitate to ask questions in an issue or discussion thread. We're happy to help.
- Small PRs are easier to review and more likely to be merged quickly. Start with something focused.
- If you're unsure whether an idea fits the project, open an issue first to discuss it.
Use the Bug Report issue template. Include:
- Orleans.FSharp version
- .NET version
- Minimal reproduction steps
- Expected vs actual behavior
Versioning is driven by MinVer from git tags. Maintainers cut a release like this:
- Make sure
mainis green andCHANGELOG.mdhas a dated section for the new version. - Tag the commit on
main:git tag v<X.Y.Z>(orv<X.Y.Z>-alpha.Nfor prereleases). - Push the tag:
git push origin v<X.Y.Z>. - CI builds, packs, and publishes to NuGet via OIDC trusted publisher on tag push.
Do not edit Directory.Build.props to bump the version — MinVer derives the package version from the tag. Stable tags (v2.0.0) produce stable packages; pre-release tags (v2.0.0-alpha.1) produce pre-release packages.
This project follows the Contributor Covenant Code of Conduct. By participating, you agree to uphold a welcoming, inclusive, and harassment-free environment for everyone.
By contributing, you agree that your contributions will be licensed under the MIT License.