Skip to content

[Bug]: run_name parameter on CI event returns an HTTP Status: 422#117

Description

@dwyman-fs

Describe the bug 馃悰
The --run_name parameter is listed in the CI arguments section of the README https://github.com/faros-ai/faros-events-cli/tree/main?tab=readme-ov-file#ci-arguments

When adding the parameter to the call, an error HTTP Status: 422 is returned. When removing the parameter, the call returns an HTTP 200

Steps to reproduce the behavior 馃暪
faros_event.sh CI -k ${API_KEY} --commit GitHub://ORG/repo/sha --run Jenkins://ORG/repo-build/7 --run_status Success --run_name "Run Name" --run_start_time 2026-04-01T20:11:13Z --run_end_time 2026-04-01T20:48:27Z --validate_only

Returns:

[2026-04-02 04:42:23] INFO Request Body: [2026-04-02 04:42:23] INFO { "type": "CI", "version": "0.0.1", "origin": "Faros_Script_Event", "data": { "commit": { "uri": "GitHub://ORG/repo/sha" }, "run": { "uri": "Jenkins://ORG/repo-build/7", "name": "Run Name", "status": "Success", "startTime": "2026-04-01T20:11:13Z", "endTime": "2026-04-01T20:48:27Z" } } } [2026-04-02 04:42:23] INFO Sending event to Faros (graph: default)... [2026-04-02 04:42:23] ERROR [HTTP status: 422] [2026-04-02 04:42:23] ERROR Response Body: [2026-04-02 04:42:23] ERROR { "error": { "message": "Invalid event data", "details": [ { "message": "data.run must NOT have additional properties", "additionalProperties": [ "name" ] } ] } } [2026-04-02 04:42:23] ERROR Failed.

Expected behavior 馃
The name should be accepted per the documentation, and a HTTP 200 status is returned

Activity

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