Skip to content

3.0 pre-release: events without webhooks, config sections, MySQL UTC, validation #130

Closed

Description

@CodingAnarchy

Pre-release 3.0 bug hunt, core library. Part of #122.

  1. Workers can't publish lifecycle events without webhooks (src/worker.rs:602, with_event_manager at ~1285, publish sites ~276/~3021). Streaming-only builds (kafka, kinesis, google-pubsub, streaming, plain EventManager subscribers) can't get worker events; worked in 2.x because webhooks was default. Fix: compile worker event publishing whenever the events module is compiled (it always is).
  2. Config sections of compiled-out features are silently ignored; with the feature on, the section is mandatory (src/config.rs:283-302, from_file). Fix: #[serde(default)] on gated fields; when the feature is off, a skipped placeholder detects the section and from_file returns HammerworkError::Config naming the feature to enable.
  3. TestQueue::set_throttle_config accepts zero rates that PG/MySQL reject (src/queue/test.rs:2354). Validate.
  4. config::SimpleEventFilter exists only while webhooks is off (features not additive), unused. Delete; drop from CHANGELOG/guide.
  5. MySQL key-manager SQL and migration-021 defaults use session-local NOW(6) / CURRENT_TIMESTAMP(6) on DATETIME columns (src/encryption/key_manager.rs ~3230–3699, migration 021 defaults/ON UPDATE). Use UTC_TIMESTAMP(6) / write values explicitly (021 is unreleased, so it can be edited).
  6. WorkerConfig.batch_size = 0 enables batch mode. Reject 0 (and > MAX_DEQUEUE_BATCH_SIZE) in validate.

Cleanups: share the 0/1/N dequeue dispatch + cap across backends; reuse fill_weighted_batch/weighted_seed for single weighted claims and TestQueue; remove dead cfg(not(feature = ...)) fallbacks inside feature-only modules (alerting.rs, metrics.rs); make WebhookManager::new fallible (no panic); reject RateLimit::with_burst_limit(0) and with_attempt_cap(<1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions