Commit Graph

568 Commits

Author SHA1 Message Date
Valentin Lorentz 754df829d4 Add tests for SUB 2023-04-16 09:19:50 +02:00
Valentin Lorentz 10c1772121 Use real metadata keys 2023-04-16 09:19:50 +02:00
Valentin Lorentz 6c5595539c Add tests for KEY_NO_PERMISSION 2023-04-16 09:19:50 +02:00
Valentin Lorentz 34f078e04a Add a bunch of GetSet tests 2023-04-16 09:19:50 +02:00
Valentin Lorentz f18162c02d Add untested 'before-connect' test 2023-04-16 09:19:50 +02:00
Valentin Lorentz 8a6a12e7f7 Fix fail code 2023-04-16 09:19:50 +02:00
Valentin Lorentz 0318a37075 Test for nick instead of * as target 2023-04-16 09:19:50 +02:00
Valentin Lorentz 8d01063aee Improve testing for invalid UTF8, and add test for too-long values 2023-04-16 09:19:50 +02:00
Valentin Lorentz 88f8be0ff6 expect batches 2023-04-16 09:19:50 +02:00
Valentin Lorentz e17ab347f4 Adapt metadata_2 to stdreplies, and run it on Unreal
Passes on 3968354247
2023-04-16 09:19:50 +02:00
Valentin Lorentz 604041aa13 Copy metadata.py to metadata2.py 2023-04-16 09:19:50 +02:00
Val Lorentz 11dc5b046e
unrealircd: Move SSL and port generation out of the critical section (#196) 2023-04-16 09:19:05 +02:00
Val Lorentz ddb37d6c3f
Use real metadata keys (#194) 2023-04-15 23:04:24 +02:00
Val Lorentz aed6478a2c
Bump UnrealIRCd to v6.0.7 (#192) 2023-04-05 08:24:34 +02:00
Val Lorentz 418b526033
Prevent random port collisions between controllers (#191)
This happens from time to time on the CI and is pretty annoying
2023-04-04 22:01:20 +02:00
Val Lorentz 136a7923c0
Bump linter versions (#188)
The isort we had has some weird poetry issue, I figured I might as well
bump the other linters at the same time

```
[INFO] Installing environment for https://github.com/PyCQA/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/home/runner/.cache/pre-commit/repo0m3eczdf/py_env-python3.7/bin/python', '-mpip', 'install', '.')
return code: 1
stdout:
    Processing /home/runner/.cache/pre-commit/repo0m3eczdf
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'error'

stderr:
      error: subprocess-exited-with-error

      × Preparing metadata (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [14 lines of output]
          Traceback (most recent call last):
            File "/home/runner/.cache/pre-commit/repo0m3eczdf/py_env-python3.7/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
              main()
            File "/home/runner/.cache/pre-commit/repo0m3eczdf/py_env-python3.7/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
              json_out['return_val'] = hook(**hook_input['kwargs'])
            File "/home/runner/.cache/pre-commit/repo0m3eczdf/py_env-python3.7/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
              return hook(metadata_directory, config_settings)
            File "/tmp/pip-build-env-beaf5dxh/overlay/lib/python3.7/site-packages/poetry/core/masonry/api.py", line 40, in prepare_metadata_for_build_wheel
              poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False)
            File "/tmp/pip-build-env-beaf5dxh/overlay/lib/python3.7/site-packages/poetry/core/factory.py", line 57, in create_poetry
              raise RuntimeError("The Poetry configuration is invalid:\n" + message)
          RuntimeError: The Poetry configuration is invalid:
            - [extras.pipfile_deprecated_finder.2] 'pip-shims<=0.3.4' does not match '^[a-zA-Z-_.0-9]+$'

          [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed

    × Encountered error while generating package metadata.
    ╰─> See above for output.

    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.
```
2023-03-04 10:51:40 +01:00
Val Lorentz 5364f963ae
Add tests for draft/extended-monitor (#180) 2023-03-04 10:11:51 +01:00
Val Lorentz 1ea3e1c15c
Fix insp4 support after 'helpop' config file was renamed (#187)
c2e954903a
2023-03-01 20:07:58 +01:00
Valentin Lorentz 8530c85adc sopel: remove use of deprecated argument
it's removed in aceedf5837
2023-02-15 19:11:51 +01:00
Valentin Lorentz 6815dd238b Fix race condition on Ergo 2023-02-11 22:26:23 +01:00
Mitchell Riley 00562ff82d
Run utf8 tests on servers which advertise UTF8ONLY (#185) 2023-01-28 10:12:32 +01:00
Shivaram Lingamneni b7e8a7a5f5
direct message tests (#184)
* Test privmsg to non-existent user

* Test privmsg to user

* fix synchronization issue

* apply black

Co-authored-by: ma-anwar <ma.rizvi.anwar@gmail.com>
2023-01-22 07:45:25 -05:00
Valentin Lorentz 6181dd07ad Skip failure on RPL_WHOISSPECIAL with Dlk-Services 2022-12-16 19:09:09 +01:00
Valentin Lorentz 35d342a478 account_registration: Add missing 'services' mark 2022-11-20 23:33:20 +01:00
Valentin Lorentz 29e4c2bbdb Hardcode DH parameters
openssl version in ubuntu 22.04 forbids moduli smaller than 512,
which would take longer to generate.
2022-11-18 18:57:51 +01:00
Val Lorentz fd0b050686
Add support for Dlk-Services (#176) 2022-11-14 22:58:30 +01:00
Valentin Lorentz d0645ab1a8 dashboard: Use qualified class names in multi-module views 2022-11-12 11:49:14 +01:00
Valentin Lorentz 65d7e0e506 whowas: Update quotes and links to Modern spec
In particular, this takes https://github.com/ircdocs/modern-irc/pull/196
into account.
2022-10-22 15:49:30 +02:00
Valentin Lorentz 690aaf24a1 Bump flake8 version
Fixes support for importlib_metadata 5.0.0,
https://github.com/PyCQA/flake8/issues/1701
2022-10-22 12:34:46 +02:00
Shivaram Lingamneni 40385c112b
add a test for AWAY :\r\n (#175) 2022-09-18 13:27:48 -04:00
Val Lorentz 9d4212504b
Add tests for TIME. (#127) 2022-09-11 17:18:10 +02:00
Valentin Lorentz c1442c4301 unrealircd: Use lock around startup/shutdown instead of proot
to ensure no unrealircd instance is starting up while another clears
$PREFIX/tmp/

While proot allows full parallelism and is less error-prone, it takes
a long time to start; and segfaults on my Armbian system.
2022-09-10 14:56:20 +02:00
Valentin Lorentz 507f5b7426 Use pathlib to work with temporary config dirs 2022-09-10 14:17:19 +02:00
Shivaram Lingamneni dbdadec677
test that WHO ignores +i for bare nicknames (#171) 2022-08-26 19:01:41 +02:00
Valentin Lorentz 6b6017b40c testStarNick: Replace unreliable workaround for irc2 2022-06-27 20:54:04 +02:00
Valentin Lorentz 601f49a9ef Fix infinite loop when server is slow (eg. Bahamut) 2022-06-27 20:53:50 +02:00
Valentin Lorentz e205cc1531 bahamut: pre-initialize entropy to avoid freezing on GH Actions 2022-06-19 16:48:26 +02:00
Shivaram Lingamneni 058fab85b0
test incorrect channel keys (#169) 2022-05-29 09:49:21 +02:00
Valentin Lorentz 683f7c0a15 Fix support of Unreal 5 2022-05-13 22:30:31 +02:00
Valentin Lorentz 0f100a5c80 Work around Unreal >=6.0.4 sending RPL_WHOISSPECIAL by default
085490d780
2022-05-13 22:12:40 +02:00
Shivaram Lingamneni 83017483ba
test +R user mode as implemented in Ergo (#168) 2022-05-13 19:49:40 +02:00
Valentin Lorentz 627f0b6415 Try fixing flakyness of Plexus4 and others 2022-05-01 11:56:09 +02:00
Val Lorentz 641bea5f0a
bot_mode: Make draft/ prefix optional (#167)
The spec is ratified.
2022-04-28 20:38:49 +02:00
Valentin Lorentz 8c73ac2b75 patma: Add support for operators in keys
Will be used to match either '@bot' or '@draft/bot'.
2022-04-28 20:12:18 +02:00
Valentin Lorentz 011bdff7e4 Fix ELIST detection 2022-04-26 22:22:36 +02:00
Shivaram Lingamneni c0af9bc0a8 add a regression test for ergochat/ergo#1928
LIST on a nonexistent channel does not get an error response.
2022-04-26 21:46:06 +02:00
Val Lorentz a15025a276
Add tests for JOIN with some invalid channels in the target param (#163) 2022-04-16 12:15:56 +02:00
Val Lorentz a923353ec4
Add test for ban exception mode (+e) (#162) 2022-04-16 08:12:27 +02:00
Val Lorentz 45dd42e682
Replace incorrect uses of NotImplementedByController exception (#161) 2022-04-15 16:01:36 +02:00
Val Lorentz 5122c04826
Add tests for the two invite lists (#149)
* Add tests for the two invite lists

* Add workaround for Hybrid

* Skip testInviteList on ircu2

* Fix merge
2022-04-14 21:28:12 +02:00