llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[LNT] submissions list for machine should be ordered by start date.

Open yuanfang-chen opened this issue 6 years ago • 4 comments

Bugzilla Link 45179
Resolution INVALID
Resolved on Mar 20, 2020 18:05
Version unspecified
OS Windows NT
CC @cmatthew

Extended Description

Currently @v4_route("/recent_activity") submissions list is sorted by 'start time'. http://lnt.llvm.org/db_default/v4/nts/recent_activity

submissions list for machine should be the same. http://lnt.llvm.org/db_default/v4/nts/machine/1364

yuanfang-chen avatar Mar 12 '20 00:03 yuanfang-chen

After some investigation and code reading. I totally agree with you that this problem should be addressed by the bot's admin. Closing.

yuanfang-chen avatar Mar 21 '20 01:03 yuanfang-chen

Thanks for the info! It completely makes sense to use a monotonically increasing number such as build number or the git distance. I was proposing to use start time since by looking at 'def v4_recent_activity():' and 'def v4_machine(id):', it seems it is hardcoded to sort by start time in both cases. Maybe it should be ordered by TestSuiteOrderFields.

The 'ordinal' of 'class OrderField' is always 0 here. Meaning users could not configure the sort order? "order: true" in .yaml only adds it to be an extra column in TestSuiteOrderFields. https://github.com/llvm/llvm-lnt/blob/f5d76a0d510429bc5879398f6c7d3adcea8fd38b/lnt/server/db/testsuite.py#L164

yuanfang-chen avatar Mar 12 '20 17:03 yuanfang-chen

Can you find that bot owner as ask them about it?

cmatthew avatar Mar 12 '20 17:03 cmatthew

The page is currently sorted by order, which I think is still the correct thing to sort by. If you sorted by time, results would be out of order if the CI runs slowly or out of order.

This is a bot misconfiguration error. The order field should not be a hash. This will make every graph in LNT look crazy.

For example:

http://lnt.llvm.org/db_default/v4/nts/graph?plot.0=1364.1604440.3&highlight_run=131337

That bot has no ordering on the x axis at all.

To fix this, the bot should be submitting the order as a monotonically increasing number. That could be the build number, or the git distance from a know commit.

The owner of LNT-Broadwell-AVX2-O3__clang_PROD__x86_64 should update that.

cmatthew avatar Mar 12 '20 17:03 cmatthew