Skip to content

Feature: per-job opt-in/opt-out for automatic AI error explanation #203

Description

@shenxianpeng

Background

PR #201 introduced a global admin toggle (enableAutoExplainOnFailure) that automatically explains all failed builds via a RunListener. This is sufficient for the initial use case, but @panicking raised a valid point in #202: the feature should also be configurable at the job level.

Problem

With only a global switch, there is no way to:

  • Opt out a specific noisy job when the global toggle is enabled (e.g. a flaky test job that fails frequently and would waste AI quota)
  • Opt in a specific job when the global toggle is disabled

Proposed Solution

The RunListener would check the job-level property first, falling back to the global setting when the property is absent or set to inherit.

Related

#202 (original feature request)
PR #201 (global toggle implementation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFor changelog: Minor enhancement. use `major-rfe` for changes to be highlighted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions