Skip to content

Commit 3ce2214

Browse files
ben-claytonDawn LUCI CQ
authored andcommitted
[tools][cts] Fix "no data for query 'webgpu:shader'" error
If a test is removed from CTS that had a 'RetryOnFailure' expectation, then this would cause an error to be raised. Just ignore this situation. Expectations for removed tests will automatically get cleaned up in the updater.expatation() logic. Change-Id: I18f56a7aaac4a758b0bb95ec3286410627ada6eb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/146903 Commit-Queue: Ben Clayton <[email protected]> Kokoro: Ben Clayton <[email protected]> Auto-Submit: Ben Clayton <[email protected]> Reviewed-by: Austin Eng <[email protected]>
1 parent 1cee30f commit 3ce2214

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/src/cts/expectations/update.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,12 @@ func (u *updater) preserveRetryOnFailures() error {
282282

283283
glob, err := u.qt.tree.Glob(q)
284284
if err != nil {
285+
if errors.As(err, &query.ErrNoDataForQuery{}) {
286+
// No results for this RetryOnFailure expectation.
287+
// Flaky tests might have been removed from the CTS.
288+
// These expectations will be automatically removed by updater.expectation()
289+
continue
290+
}
285291
return err
286292
}
287293
for _, indices := range glob {

0 commit comments

Comments
 (0)