Repository
Working on platform-workers itself. Covers the build pipeline, the test layout, the CI surface, and the contribution conventions.
Building, testing and publishing: Build, test and publish.
Worker layout
HttpGet/
├── versions.env # LIBRARY_VERSION, the published version
├── Directory.Packages.props # central package versions
├── config/config.json # topics (read by virtufin-worker create)
├── src/
│ ├── Virtufin.Worker.HttpGet.Managed/
│ │ ├── *.Managed.csproj # VirtufinPackageWorker=true
│ │ ├── HttpGetWorker.cs # WorkerBase<JsonNode, HttpGetResult>
│ │ ├── HttpGetWorkerLogic.cs # the GET, shared with the native build
│ │ └── HttpGetResponseCodec.cs # response encoding, shared
│ └── Virtufin.Worker.HttpGet.Native/
│ ├── *.Native.csproj # PublishAot, linux-x64 + linux-arm64
│ └── HttpGetWorkerNative.cs # same base class + Process/FreeResult exports
└── tests/Virtufin.Worker.HttpGet.Tests/
Tests
HttpGet/tests/Virtufin.Worker.HttpGet.Tests/ is a C# xunit test project for the managed path only — Fact tests covering the success path, error handling (missing url, non-2xx status), content-type fallback, and correlationId propagation. The tests instantiate the worker directly and call ProcessAsync.
The AOT path has no unit tests in this repo — the same handler logic is shared with the managed target and covered there; the AOT shim itself is a thin [UnmanagedCallersOnly] wrapper with no independent logic to test. The engine itself is tested in the workmanager repo.
Hello/tests/ and GetTime/tests/ are pytest suites that call each worker's Process directly; python-workers-test.yaml runs them.
CI
Each worker has its own .github/workflows/<workername>-nuget.yaml, a thin
caller of the shared virtufin/common/.github/workflows/worker-nuget-common.yaml
reusable workflow: on push to master (path-filtered to that worker's
directory), it runs the worker's tests, builds (managed-only, or
managed+NativeAOT via Docker when the caller sets ships_native: true),
and publishes to the Gitea NuGet feed with virtufin-worker build|publish.
The Python workers' <worker>-package.yaml run the same two commands.
/.github/workflows/docs.yaml (calls common/.github/workflows/docs-common.yaml@master with docs_repo: virtufin/platform-workers.docs.virtufin.com) and /.github/workflows/docs-lint.yaml (calls docs-lint-common.yaml@master) are the doc-site CI surfaces.
Conventions
- Both csproj files (
Managed/andNative/) share the same<AssemblyName>so the nupkg's single<virtufinLibrary>value resolves to either the.dllor the.sodepending on which engine loads it. - The AOT csproj's
<Compile Include="..\...Managed\Logic.cs" Link="Logic.cs" />links the shared handler logic from the managed project dir. Path is relative to the AOT csproj's location, so no absolute paths. - NuGet auth is via
VIRTUFIN_REGISTRY_USER/VIRTUFIN_REGISTRY_TOKENenv vars;virtufin-workerdoesn't read~/.docker/config.jsonfor NuGet creds (only for Docker). The credentials are provided by the CI runner or the dev shell.
See also
- Build Script — what
virtufin-worker builddoes - Troubleshooting — common build/load failures and how to diagnose them