Commit graph

6654 commits

Author SHA1 Message Date
John McLear
5d76206b93 fix broken config for workflow 2021-01-29 10:40:37 +00:00
John McLear
f6413c8e39 timeouts 2021-01-29 09:39:00 +00:00
John McLear
14db2e52c2 timeouts 2021-01-29 09:38:32 +00:00
John McLear
a908bbee8e resolve conflict with async test 2021-01-29 09:19:54 +00:00
Richard Hansen
89bcfa2b4a tests: Stop using nyc
There are some problems with nyc:
  * The coverage numbers aren't useful in our case because most of the
    code is executed outside the test process (the test code is mostly
    API client logic).
  * nyc messes with line numbers, which makes it much harder to debug
    problems.
  * We're seeing frequent SIGABRT crashes while nyc is printing the
    results table. I'm not sure if nyc is the cause of the crashes, or
    if it's making a race condition worse, or if the crashes have
    nothing to do with nyc, but we don't lose much by removing it so
    we might as well see if the crash frequency improves.
2021-01-29 09:17:17 +00:00
John McLear
0897a28e70 lint: AttributeManager 2021-01-29 09:16:50 +00:00
Richard Hansen
873987f989 tests: Asyncify indentation test
This makes it much easier to see why a test is failing. Before, a
`helper.waitFor()` failure would simply cause the test to time out.
Now an exception is displayed.
2021-01-29 09:16:50 +00:00
Richard Hansen
462530eafb AttributeManager: Fix attribute name during attribute removal
Before this change, the `author` attribute was silently discarded
during `.map()` iteration and the name of the attribute to remove was
included twice with two different values.
2021-01-29 09:16:50 +00:00
Richard Hansen
8efc87f33a AttributeManager: Fix bogus this during attribute removal
Before this commit, the callback passed to `.map()` during attribute
removal was a normal function, not an arrow function. This meant that
the value of `this` in the function body depended on how the callback
was invoked. In this case, the callback was invoked without any
explicit context (it was not called as a method, nor was it called via
`.call()`, `.apply()`, or `.bind()`). Without any explicit context,
the value of `this` depends on strict mode. Currently the function is
in sloppy mode, so `this` refers to the "global this" object (a.k.a.,
`window`). It doesn't make sense for the callback to reference
`window.author`, so I'm assuming the previous behavior was a bug.

Now the function is an arrow function, so the value of `this` comes
from the enclosing lexical context, which in this case is the
AttributeManager object. I believe that was the original intention.
2021-01-29 09:16:50 +00:00
Richard Hansen
c1ef12b8da lint: Re-run eslint --fix 2021-01-29 01:14:03 -05:00
Richard Hansen
b02ab430fe Bump eslint-config-etherpad to 1.0.24 2021-01-29 01:10:58 -05:00
John McLear
5d7645e36a lint: ace2_common.js linting 2021-01-29 00:53:59 -05:00
John McLear
f6eb6bd266 remove dead object code 2021-01-29 00:53:22 -05:00
John McLear
1dc4a2acf5 MS 2021-01-28 23:07:20 +00:00
John McLear
843dd927ce timeouts 2021-01-28 23:00:13 +00:00
John McLear
7f384f13cd timeouts 2021-01-28 22:52:53 +00:00
John McLear
3718767d5a timeout 2021-01-28 22:44:03 +00:00
John McLear
df580ec513 timeouts 2021-01-28 22:25:44 +00:00
John McLear
da237547ac fml yml no like u 2021-01-28 22:16:57 +00:00
John McLear
938f33f44d fml yml no like u 2021-01-28 22:15:00 +00:00
translatewiki.net
989f42204f Localisation updates from https://translatewiki.net. 2021-01-28 18:48:11 +01:00
John McLear
704b9f94a6 change in stat storage 2021-01-28 13:13:10 +00:00
John McLear
d01aafb98c change in stat storage 2021-01-28 13:11:24 +00:00
John McLear
3caedd370e change in stat storage 2021-01-28 13:10:46 +00:00
John McLear
f99d294a1c change in stat storage 2021-01-28 13:09:49 +00:00
John McLear
71dd0bfa04 include performance metrics in testing 2021-01-28 12:52:23 +00:00
John McLear
360f32aa13 Merge branch 'develop' of github.com:ether/etherpad-lite into mochawesome 2021-01-28 12:21:53 +00:00
Richard Hansen
7f392e12e9 tests: Create a src/tests/ symlink that points to tests/
This makes it possible for plugin backend tests to do
`require('ep_etherpad-lite/tests/backend/common')` to access the API
key (among other things).

Eventually we probably should reverse these (move `tests/` to
`src/tests/` and make `tests/` a symlink to `src/tests/`) and move
`bin/` to `src/bin/` so that we can avoid the top-level `package.json`
mess.
2021-01-28 10:02:58 +00:00
Richard Hansen
53092fa7af db/Pad: Call padCopy and padRemove hooks asynchronously 2021-01-28 09:36:22 +00:00
John McLear
88d56168c0 decide against mochawesome 2021-01-27 22:28:36 +00:00
John McLear
05fe4904ed various timeout changes 2021-01-27 21:59:06 +00:00
John McLear
e8e90ac207 various timeout changes 2021-01-27 21:51:22 +00:00
John McLear
189786979f various timeout changes 2021-01-27 21:50:18 +00:00
John McLear
c43de8ea59 lint and test timeouts for importexportGetPost.js 2021-01-27 21:25:23 +00:00
John McLear
ac420f4683 lint and test timeouts for webaccess.js 2021-01-27 21:18:39 +00:00
John McLear
5aa0ad3f55 lint and test timeouts for specialpages.js 2021-01-27 21:18:28 +00:00
John McLear
ae49fcf1ae lint and test timeouts for socketio.js 2021-01-27 21:18:17 +00:00
John McLear
d12dbc7f63 lint and test timeouts for caching_middleware.js 2021-01-27 21:18:08 +00:00
John McLear
fd7a7b4c6c lint and test timeouts for importexportGetPost.js 2021-01-27 21:17:58 +00:00
John McLear
6f364b065d lint and timeouts for sessionAndGroups.js 2021-01-27 20:45:40 +00:00
John McLear
3d69773cd2 lint and timeouts for pad.js 2021-01-27 20:45:31 +00:00
John McLear
e5d80a0696 lint and timeouts for instance.js 2021-01-27 20:45:23 +00:00
John McLear
8fff1db4d0 lint and timeouts for importexport.js 2021-01-27 20:33:36 +00:00
John McLear
02bb5a5b73 lint and timeouts for chat.js 2021-01-27 20:30:15 +00:00
John McLear
f4eeb59b86 line and timeouts for characterEncoding.js 2021-01-27 20:29:14 +00:00
John McLear
103e3398ad api.js lint and timeouts 2021-01-27 20:19:48 +00:00
John McLear
ff71e41812 test timeouts for promises.js 2021-01-27 20:14:22 +00:00
John McLear
28617ee9d0 timeout for contentcollector.js 2021-01-27 20:13:04 +00:00
John McLear
7696ec0a02 Merge branch 'develop' of github.com:ether/etherpad-lite into mochawesome 2021-01-27 20:11:53 +00:00
John McLear
96d9a40b04 timeout values and low hanging lint for hooks.js 2021-01-27 20:09:05 +00:00