Skip to content

Add entry log to error_classifier.js classify function #755

Description

@stranske

Why

The classify() function in error_classifier.js processes error messages but lacks visibility into when classification starts. Adding an entry log helps trace error classification during CI failure debugging.

Scope

  • Modify the classify() function in .github/scripts/error_classifier.js
  • Add one console.log statement at function entry

Non-Goals

  • No changes to classification logic
  • No changes to test files
  • No new dependencies

Tasks

  • Add console.log at start of classify() showing error type being classified
  • Verify existing tests pass

Acceptance Criteria

  • classify() logs: [error_classifier] Classifying error: <first 50 chars>
  • All existing tests in __tests__/error_classifier.test.js pass
  • No lint errors

Implementation Notes

File: .github/scripts/error_classifier.js

Add at the start of the classify function:

console.log(`[error_classifier] Classifying error: ${(error || "").substring(0, 50)}`);

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions