-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
matrix-appservice-irc 0.26.1 -> 0.30.0 #137035
Conversation
affe18e
to
db2264b
Compare
@ofborg test matrix-appservice-irc |
EditorConfig check fails because the REVISION file doesn't end with a newline. But this is done on purpose since the version should not contain a new line. Is there a way to make an exception for the test? |
This comment has been minimized.
This comment has been minimized.
@@ -1,16 +1,23 @@ | |||
{ pkgs, nodePackages, makeWrapper, nixosTests, nodejs, stdenv, lib, ... }: | |||
{ pkgs, nodePackages, makeWrapper, nixosTests, nodejs, stdenv, lib, fetchFromGitHub, ... }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should drop the ...
here. It isn't required and not good practice. I know this isn't your fault but if we change it we can make a slight improvement.
diff --git a/nixos/tests/matrix-appservice-irc.nix b/nixos/tests/matrix-appservice-irc.nix
index 79b07ef83c5..264142a9066 100644
--- a/nixos/tests/matrix-appservice-irc.nix
+++ b/nixos/tests/matrix-appservice-irc.nix
@@ -131,6 +131,8 @@ import ./make-test-python.nix ({ pkgs, ... }:
};
testScript = ''
+ import pathlib
+
start_all()
ircd.wait_for_unit("ngircd.service") |
rm -f package.json package-lock.json | ||
wget https://github.com/matrix-org/matrix-appservice-irc/raw/$TARGET_VERSION/package.json | ||
wget -O package-lock-temp.json https://github.com/matrix-org/matrix-appservice-irc/raw/$TARGET_VERSION/package-lock.json | ||
echo -n "$TARGET_VERSION" > ./REVISION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just give it a newline and trim / get the first line in the nix revision. That makes this part more robust to manual updates & gets rid of the editorconfig error.
Thanks. I overlooked the test.
For me it looks like a bug in the matrix_client python package. import socket
from matrix_client.client import MatrixClient
from time import sleep
matrix = MatrixClient("${homeserverUrl}")
matrix.register_with_password(username="alice", password="foobar") // <-- it fails here
... |
Result of 2 packages built successfully:
3 suggestions:
Result of 2 packages built successfully:
|
@@ -0,0 +1 @@ | |||
0.30.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nix can return this value from the derivation eg nix-instantiate --eval -E 'with (import ./. { }).pkgs; python3Packages.pyopenssl.version'
I've opened an upstream issue for the test. In the meantime, downgrading to a lower version of the library should work. |
Any reason we aren't just using |
This is purely historical (maybe due to cargo cult, maybe it was the best choice at the time); switching to a different library should be purely a matter of somebody taking the time and doing the work. |
Motivation for this change
Hackint matrix irc bridge broke because this package is outdated
Things done
update-sh
script is updated accordinglysandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)