Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
4ea6a1f
chore: align TinyEventQueues SDK dependencies
senamakel Oct 21, 2026
69fbce9
Merge pull request #6 from senamakel/epic-8056-eventqueues-sdk0311
senamakel Oct 21, 2026
3d7fcec
Release v0.1.3
github-actions[bot] Oct 21, 2026
c46d134
fix(release): verify published archive checksum
senamakel Oct 21, 2026
828fa85
Merge pull request #7 from senamakel/epic-8056-eventqueues-release-ch…
senamakel Oct 21, 2026
1768312
Add bound storage descriptors to event queues
senamakel Oct 21, 2026
4f04847
Merge pull request #10 from senamakel/feat/8056-eventqueues-bound-sto…
senamakel Oct 21, 2026
1acd5f1
Release v0.1.4
github-actions[bot] Oct 21, 2026
1ee9cf5
feat: migrate event queue storage to host ports
senamakel Oct 21, 2026
a84accf
test: cover queue storage validation paths
senamakel Oct 21, 2026
39eefa5
test(tinybus_module): rework storage tests around invocation addresses
senamakel Oct 26, 2026
13651c3
chore(deps): update tinystoragedrivers to v2 storage contracts
senamakel Oct 26, 2026
c4bb9ec
chore(deps): update dependencies and lockfile
senamakel Oct 26, 2026
c020ce5
style(tinyeventqueues): apply rustfmt formatting to storage settings …
senamakel Oct 26, 2026
42bf692
test(tinybus): gate platform-specific imports behind cfg
senamakel Oct 26, 2026
6a3fb07
test(tinybus_module): use underscores in storage address names
senamakel Oct 26, 2026
43002eb
test(tinybus): reorder imports in module tests
senamakel Oct 26, 2026
6bcd2d6
test(tinyeventqueues): assert caller-bound address rejects outsider
senamakel Oct 26, 2026
ec21791
chore(tinyeventqueues): add build artifacts for callback module
senamakel Oct 26, 2026
d021df5
chore(tinyeventqueues): remove dynamic test artifacts
senamakel Oct 26, 2026
007e82e
chore(deps): bump tokio from 1.54.0 to 1.54.1
senamakel Oct 26, 2026
d9c0484
test(tinybus): cover invalid object path configuration error
senamakel Oct 26, 2026
db12048
Merge pull request #11 from senamakel/sec-654-eventqueues-tsd2
senamakel Oct 26, 2026
b57cf22
test(storage): assert collection declaration serialization shape
senamakel Oct 30, 2026
e3720e0
refactor(tinyeventqueues-bus): declare storage collections as bus-own…
senamakel Oct 30, 2026
db99586
feat(tinybus): support host-bound storage callback peer
senamakel Oct 30, 2026
8ba49cc
test(tinyeventqueues): cover module storage callback binding
senamakel Oct 30, 2026
fd4c337
fix(module): support admitted storage callback peers
senamakel Oct 30, 2026
35c63c4
Merge canonical queue coalescing and release changes into storage cal…
senamakel Oct 30, 2026
1a9fc7c
chore(deps): point tinystoragedrivers crates at tinyhumansai fork
senamakel Oct 31, 2026
2a82ce5
chore(deps): point tinystoragedrivers git deps at tinyhumansai fork
senamakel Oct 31, 2026
b87131e
chore(deps): downgrade several transitive dependencies
senamakel Oct 31, 2026
b856d57
test(storage): reject well-known callback routes without fallback
senamakel Oct 31, 2026
84663d4
fix(deps): pin TinyStorageDrivers to the canonical v2.1.2 release
M3gA-Mind Nov 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/scripts/test_release_checksum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
"""Regression tests for the checksum selected by the release verifier."""
from pathlib import Path
import subprocess
import sys
import tempfile
import textwrap
import unittest


ROOT = Path(__file__).resolve().parents[2]
WORKFLOW = ROOT / ".github/workflows/release.yml"
SELECTOR_MARKER = (
'python3 - "$archive" release-assets/published/checksum.toml <<\'PY\'\n'
)


class ReleaseChecksumTests(unittest.TestCase):
def test_selects_archive_digest_not_embedded_library_digest(self):
workflow = WORKFLOW.read_text()
ci = (ROOT / ".github/workflows/ci.yml").read_text()
self.assertEqual(
ci.count("run: python3 .github/scripts/test_release_checksum.py"), 1
)
self.assertIn(
'gh release download "$RELEASE_TAG" --repo "$REPOSITORY" '
'--pattern checksum.toml --dir release-assets/published',
workflow,
)
self.assertIn(SELECTOR_MARKER, workflow)
source_start = workflow.index(SELECTOR_MARKER) + len(SELECTOR_MARKER)
source_end = workflow.index("\n PY", source_start)
selector = textwrap.dedent(workflow[source_start:source_end])

archive = "tinyeventqueues-0.1.3-ubuntu-24.04-x86_64.tar.gz"
archive_digest = "4daf1ad06fdeb8fb5410ff48572aead4db4ce5d9446736bb5637e3083d6a3072"
library_digest = "718a226caac47b8fd3a570138c6e485dd89367e64a393231afa6428796586494"
(ROOT / "target").mkdir(exist_ok=True)
with tempfile.TemporaryDirectory(
prefix="release-checksum-selection-", dir=ROOT / "target"
) as scratch:
checksum = Path(scratch) / "checksum.toml"
checksum.write_text(
f'[sha256]\n"{archive}" = "{archive_digest}"\n\n'
f'[library_sha256]\n"{archive}" = "{library_digest}"\n'
)
result = subprocess.run(
[sys.executable, "-c", selector, archive, str(checksum)],
text=True,
capture_output=True,
check=False,
)
self.assertEqual(result.returncode, 0, result.stderr)
self.assertEqual(result.stdout, f"{archive_digest}\n")
self.assertNotEqual(result.stdout.strip(), library_digest)

checksum.write_text(
f'[library_sha256]\n"{archive}" = "{library_digest}"\n'
)
missing_archive = subprocess.run(
[sys.executable, "-c", selector, archive, str(checksum)],
text=True,
capture_output=True,
check=False,
)
self.assertNotEqual(missing_archive.returncode, 0)
self.assertEqual(missing_archive.stdout, "")


if __name__ == "__main__":
unittest.main()
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:

- uses: Swatinem/rust-cache@v2

- name: Test published checksum selection
run: python3 .github/scripts/test_release_checksum.py

- name: Check formatting
run: cargo fmt --all -- --check

Expand Down
33 changes: 26 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,16 @@ jobs:
--generate-notes
fi

- name: Download published checksum manifest
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ needs.prepare.outputs.tag }}
REPOSITORY: ${{ github.repository }}
run: |
set -euo pipefail
mkdir -p release-assets/published
gh release download "$RELEASE_TAG" --repo "$REPOSITORY" --pattern checksum.toml --dir release-assets/published

- name: Verify the published module through TinyBus
shell: bash
env:
Expand All @@ -580,14 +590,23 @@ jobs:
set -euo pipefail
archive="${CRATE_NAME}-${VERSION}-ubuntu-24.04-x86_64.tar.gz"
release_url="https://github.com/${REPOSITORY}/releases/tag/${RELEASE_TAG}"
sha256="$(
sed -n "s/^\"${archive}\" = \"\([0-9a-f]\{64\}\)\"$/\1/p" \
release-assets/checksum.toml
sha256="$(python3 - "$archive" release-assets/published/checksum.toml <<'PY'
import re
import sys
import tomllib

archive, checksum_path = sys.argv[1:]
with open(checksum_path, "rb") as checksum_file:
manifest = tomllib.load(checksum_file)

archive_sha256 = manifest.get("sha256", {}).get(archive)
if not isinstance(archive_sha256, str) or re.fullmatch(
r"[0-9a-f]{64}", archive_sha256
) is None:
raise SystemExit(f"archive checksum missing or invalid for {archive}")
print(archive_sha256)
PY
)"
if [[ -z "$sha256" ]]; then
echo "checksum missing for ${archive}" >&2
exit 1
fi

cargo run --manifest-path vendor/tinybus/Cargo.toml --locked \
--package tinybus --all-features --example github_module_host -- \
Expand Down
13 changes: 6 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ load, resolve against each other, and that the schema describes every field.

### Storage

The pipeline is generic over `Arc<dyn QueueStore>` and `Arc<dyn DocumentStore>`
from `tinystoragedrivers-core`, plus an injectable `Clock`. Every piece of
durable state lives in those two stores, so a new `Pipeline` over the same
storage is a restart; tests simulate restarts exactly that way, on
`MemoryStorage` with a `ManualClock`. `tinystoragedrivers-core` is a git
dependency pinned to a tinyhumansai/tinystoragedrivers `rev`; move the pin in
its own commit.
The pipeline is generic over `QueueStore` and `DocumentStore` from
`tinystoragedrivers-api` v2, plus an injectable `Clock`. The host declares the
module's document collections and queue manifest, then serves the scoped
storage endpoint; the loaded module connects through that host-owned port.
Tests use the v2 memory backend with a `ManualClock`. Production code does not
select or construct a storage engine.

### The two-crate split

Expand Down
Loading
Loading