This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Provide a way to reliably point to results page
ClosedPublic

Authored by leandron on Dec 12 2017, 8:14 AM.

Details

Summary

This is a proposed fix for "Bug 35002 - Provide a way to reliably point to results page".

This change makes the database ID to be reused when submitting data for an existing order with "--merge replace".

It modifies the previous behaviour of creating a new ID for the same order number which turns the URL for the previous submit to be invalid.

Bugzilla issue: https://bugs.llvm.org//show_bug.cgi?id=35002

Diff Detail

Event Timeline

leandron created this revision.Dec 12 2017, 8:14 AM

Notice: I'll update this review with an automated test.

MatzeB accepted this revision.Dec 14 2017, 11:42 AM

This would indeed solve most of the pain with a small change.

I faintly remember having trouble with mysql when choosing IDs myself in another project. But I think the column was marked autoincrement back then which I think our ID column is, so let's go with this.

lnt/server/db/testsuitedb.py
1003

Isn't this the same as new_id = existing_run_id here?

This revision is now accepted and ready to land.Dec 14 2017, 11:42 AM
leandron closed this revision.Dec 20 2017, 2:28 AM

Thanks for the feedback. This is commited as r321160 including a test and code simplification as suggested.