jsperf.com: Some tests are not getting posted properly
The <table>
on https://jsperf.com/cash-vs-jquery-parents/2 has an empty <tbody>
.
Somehow, no tests were inserted into the database for this page:
mysql> select * from tests where pageID = 1303938;
Empty set (0.00 sec)
Any ideas how this happened?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 25
- Comments: 44 (7 by maintainers)
Commits related to this issue
- Fix updating and deleting tests Ref #315 ref #236 ref #153 — committed to jsperf/jsperf.com by maxbeatty 7 years ago
- Fix updating and deleting tests Ref #315 ref #236 ref #153 — committed to jsperf/jsperf.com by maxbeatty 7 years ago
- Fix issue with bad updates causing disappearing tests Fixes #236 Pretty much similar to #414, but with an added test to show issue. — committed to swang/jsperf.com by swang 6 years ago
- Fix issue with bad updates causing disappearing tests Fixes #236 Pretty much similar to #414, but with an added test to show issue. — committed to swang/jsperf.com by swang 6 years ago
- Fix issue with bad updates causing disappearing tests Fixes #236 Pretty much similar to #414, but with an added test to show issue. — committed to swang/jsperf.com by swang 6 years ago
- Fix issue with bad updates causing disappearing tests (#464) Fixes #236 Pretty much similar to #414, but with an added test to show issue. — committed to jsperf/jsperf.com by swang 6 years ago
Happens to me as well, I can’t edit a test without getting “Not all tests inserted”.
Basically, jsperf is more or less unusable because of this bug, it JUST happened again, forcing me to restart everything and clear the DB. I also made other observations that might contribute:
And it should be possible to have only a local login, or none at all for a local installation, but think this is another topic.
Please, fix this bug, this is quite serious and makes working with jsperf almost impossible right now (at least for me)!
Also still having the “Not all tests inserted” issue:
Chrome 55.0.2883.87 m, Win 10
We have enough comments on this being reproducible. Submitting a pull request with a fix is the best contribution.
I deployed
master
to https://jsperf-max.now.sh/ with a new database (my next to last guess on what’s causing this). if you could, please see if tests are post correct in this environment and add a reaction to this comment of 👍 if it works or 👎 if it doesn’tsome quick notes on this environment:
if all goes well, I’ll figure out how to get the old data into the new database
This is still happening to me when editing this test: https://jsperf.com/stringreplaceall-544/1/edit
The issue apparently is that, when updating tests, the SQL query contains a
WHERE pageID=NEWID
clause, whereNEWID
is given as the page id of the new revision, which updates nothing, because the stored pageID is that of the old revision. Hence, only the new tests are inserted for the new revision’s page, afterwards resulting in a “Not all tests inserted” error, which matches what I experienced above. Need to look through this a little more for a PR.Reproduced: https://jsperf.com/jquery-each-vs-underscore-each-vs-for-loops/104