Skip to content

Gate: every spored notification event must be in spore-bot's handled-events list #1004

Closed

Description

@scttfrdmn

spore-host/spore-host#558 (PR spore-host/spore-host#561) added lambda/spore-bot/testdata/spored_events.txt and a gate that every listed event has a message on each channel. The bot repo can't see spawn's source in CI, so a new spored event added here is only caught if someone runs that check by hand with SPAWN_SRC set. That is how fsx_mount_failed, fsx_dra_failed and region_vacated went unhandled.

Suggested: a spawn-side test that finds every event spored passes to Notify, using AST so events chosen through a variable (e.g. idle_stopped/idle_hibernated in #977) are resolved too, and compares the set against a pinned copy of the bot's list (fetched in CI from spore-host main, or vendored with a sync check). It should fail when spored sends an event the bot doesn't handle, and fail on empty discovery.

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