Skip to content

fix: correct certification.json to use actual LevelResult attributes#47

Merged
GuyZivRH merged 1 commit into
mainfrom
fix/certification-json-attribute
Jul 8, 2026
Merged

fix: correct certification.json to use actual LevelResult attributes#47
GuyZivRH merged 1 commit into
mainfrom
fix/certification-json-attribute

Conversation

@GuyZivRH

@GuyZivRH GuyZivRH commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix AttributeError in write_certification(): 'LevelResult' object has no attribute 'failure_reasons'

Problem

PR #46 added certification.json output but referenced failure_reasons attribute that doesn't exist on LevelResult.

Fix

  • Compute failed_checks from the checks list instead
  • Add checks_total and checks_passed counts

Test plan

  • Retrigger harbor-test run after merge

Made with Cursor

LevelResult doesn't have failure_reasons - compute failed_checks from
checks list instead. Also add checks_total and checks_passed counts.

Co-authored-by: Cursor <cursoragent@cursor.com>
@GuyZivRH GuyZivRH merged commit 2ff5f47 into main Jul 8, 2026
1 check passed
@GuyZivRH GuyZivRH deleted the fix/certification-json-attribute branch July 8, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant