This is an archive of the discontinued LLVM Phabricator instance.

LNT: Fix baseline lookup in run view.
ClosedPublic

Authored by tnfchris on Dec 11 2020, 5:56 AM.

Details

Reviewers
thopre
Summary

The v4_set_baseline route currently always sets the session baseline
using the default key (passing ts_name=None implicitly), however the
logic to actually look up the baseline (get_baseline_run in
testsuitedb.py) always uses the ts-specific key. This mismatch means
that generate_run_data fails to look up the correct baseline and instead
always uses the default fallback.

It appears that the implicit default parameter to baseline_key is never
relied upon in a way that isn't broken, so we simply remove the default
and pass ts.name explicitly everywhere.

Diff Detail

Event Timeline

tnfchris requested review of this revision.Dec 11 2020, 5:56 AM
tnfchris created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 11 2020, 5:56 AM
thopre accepted this revision.Dec 11 2020, 6:25 AM

LGTM

This revision is now accepted and ready to land.Dec 11 2020, 6:25 AM
tnfchris closed this revision.Dec 13 2020, 6:17 AM