Follow-up to T363384: [24Q4] Make it easier for users to debug their code by having each function sub-call return a complete metadata map and then its disabling in production
- Confirm we know where the problem was
- Fix said issues, with testing
- Add better handling of failure state rather than mysterious "Gateway timeout"
- Re-deploy and check all is well
Steps to replicate the issue (include links if applicable):
- go to https://www.wikifunctions.org/wiki/Z902 (for example)
What happens?:
- both linked tests fail
- Try this implementation works, however
What should have happened instead?:
The linked tests should always pass for such a critical function. Dependent implementations like https://www.wikifunctions.org/view/en/Z11223 also have failing tests but evaluate with Try this implementation (“4 hours ago”).
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Not all built-in functions have connected tests.
Tests pass on:
- https://www.wikifunctions.org/view/en/Z901
- https://www.wikifunctions.org/view/en/Z903
- https://www.wikifunctions.org/view/en/Z910
- https://www.wikifunctions.org/view/en/Z911
- https://www.wikifunctions.org/view/en/Z912
- https://www.wikifunctions.org/view/en/Z913
- https://www.wikifunctions.org/view/en/Z881
- https://www.wikifunctions.org/view/en/Z988
- https://www.wikifunctions.org/view/en/Z989
Tests fail on:
- https://www.wikifunctions.org/view/en/Z902
- https://www.wikifunctions.org/view/en/Z944
- https://www.wikifunctions.org/view/en/Z966
Community functions generally fail and Try this function also fails (with no metadata) on:
- https://www.wikifunctions.org/view/en/Z10000
- https://www.wikifunctions.org/view/en/Z10012
- https://www.wikifunctions.org/view/en/Z10018
- https://www.wikifunctions.org/view/en/Z10174
Some exceptions which pass:
I haven’t seen any functions where some implementations pass while others fail, apart from built-in functions like https://www.wikifunctions.org/wiki/Z801.
For https://www.wikifunctions.org/view/en/Z12203, the composition with Z802 fails and the composition wrapping Z13254 succeeds
It appears to have been a temporary error, but I encountered
on https://www.wikifunctions.org/view/en/Z13521. Here, three of four implementations were successfully tested by Z13527 4 or 5 hours ago (18:45 UTC) (the fourth always fails). Try this function succeeds for 2 + 11 (Z13573) but fails with 213 + 1179 (no metadata). Using Try this implementation, this sum succeeds with Z13573, Z13529 and Z14759 (which depends on a function that has only Python implementations). Although it is not generally delivering old results, the selected implementation varies from call to call, failing altogether about 10% of the time. The depicted error occurred again at 19:18 UTC, adding 7387 and 6656. It seems to be persisting with similar values even after succeeding with one of its values increased by an order of magnitude. Trying this sum as a new test, the three implementations all pass but the sum still fails in Try this function.