feat(ci): add multinode integration test workflow
Closed
WA
6mo ago+553+553+012345678901234567890123456789-72-72-01234567890123456789
Summary
- Adds a
workflow_dispatch+pull_requesttriggered workflow that runs the full multinode integration test suite (--multinode --clean) against a 3-witness docker-compose stack - FullNode.jar is built from the PR head and injected via a local Docker wrapper image (
TRON_IMAGE=java-tron-local:pr) - DinD path-alignment: compose configs are extracted from the integration-test image to the host workspace so
--project-directoryresolves for the host daemon --network hostis used so the test container can reach witness nodes at127.0.0.1:50051-50053
Test plan
- PR trigger fires the workflow on
develop - FullNode.jar builds successfully
- 3-witness compose stack starts and nodes become healthy
- Multinode tests pass (gradle test + multinodeTest)
- Reports and witness logs are collected as artifacts
- Compose stack is torn down after tests
🤖 Generated with Claude Code
Summary by cubic
Adds a multinode CI workflow (Full), configurable blocking vs non‑blocking API rate limiting, and enforces event‑plugin >= 3.0.0 to prevent silent failures.
-
New Features
- CI: Run multinode integration tests on PRs and manual dispatch via “Integration Test Multinode (Full)”. Build
FullNode.jar, inject viajava-tron-local:pr, use host networking, extract compose files to the host, bind‑mount the multinode dir for Jacoco, collect reports/logs, and clean up. Usestroninfra/troninfra-ci:latest(public). - Rate limiting: Add
rate.limiter.apiNonBlocking(default false) and blockingacquire()paths, with anacquirePermit()dispatcher onIRateLimiterandGlobalRateLimiter. - Events: Enforce event‑plugin >= 3.0.0 via
pf4j; defaultevent.subscribe.native.useNativeQueueto false.
- CI: Run multinode integration tests on PRs and manual dispatch via “Integration Test Multinode (Full)”. Build
-
Bug Fixes
--esnow takes effect: apply event config after CLI and build plugin config when enabled only via CLI.- Rate limiting: keep per‑endpoint‑before‑global and IP‑before‑global ordering; fail closed if IP limiter load fails; HTTP/gRPC now use
acquirePermit(). - Avoid NPE by null‑checking
relayNodesinPeerConnection.
Summary by CodeRabbit
-
New Features
- Configurable rate-limiter non-blocking mode (immediate rejection vs. waiting)
- Event plugin version compatibility enforcement
- Multinode integration test workflow added to CI
-
Bug Fixes
- Prevented a potential null-pointer in relay node handling
-
Configuration Changes
- Event native queue now defaults to disabled
- Added
rate.limiter.apiNonBlocking(defaults to false)
-
Tests
- Expanded rate-limiter and event-plugin test coverage