feat(ci): add multinode integration test workflow

Closed
WA
6mo ago
+553-72

Summary

  • Adds a workflow_dispatch + pull_request triggered 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-directory resolves for the host daemon
  • --network host is used so the test container can reach witness nodes at 127.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 via java-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. Uses troninfra/troninfra-ci:latest (public).
    • Rate limiting: Add rate.limiter.apiNonBlocking (default false) and blocking acquire() paths, with an acquirePermit() dispatcher on IRateLimiter and GlobalRateLimiter.
    • Events: Enforce event‑plugin >= 3.0.0 via pf4j; default event.subscribe.native.useNativeQueue to false.
  • Bug Fixes

    • --es now 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 relayNodes in PeerConnection.

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

Review Change Stack