Skip to content

Conversation

@williamjallen
Copy link
Collaborator

Prep work for upcoming changes to the structure of some of these handler files. By allowing PHPStan to better understand the types, refactors to this critical component of CDash will be slightly safer.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Jan 5, 2026
Merged via the queue into Kitware:master with commit 660472a Jan 5, 2026
7 checks passed
@williamjallen williamjallen deleted the handler-type-annotations branch January 5, 2026 15:25
williamjallen added a commit to williamjallen/CDash that referenced this pull request Jan 8, 2026
The legacy BuildError and BuildFailure models are treated as if they're derived from the same parent class in the build handler, but there's no guarantee that the fields the build handler attempts to access actually exist on a particular object.  This PR resolves a critical issue introduced by Kitware#3320 which causes failures when parsing builds with old style build errors.
github-merge-queue bot pushed a commit that referenced this pull request Jan 8, 2026
The legacy BuildError and BuildFailure models are treated as if they're
derived from the same parent class in the build handler, but there's no
guarantee that the fields the build handler attempts to access actually
exist on a particular object. This PR resolves a critical issue
introduced by #3320 which causes
failures when parsing builds with old style build errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants