!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

75 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
25 Apr 2022
@drupol:matrix.orgPol
  1. https://github.com/NixOS/nixpkgs/pull/157287
  2. https://github.com/NixOS/nixpkgs/issues/154774
07:54:22
@drupol:matrix.orgPolIt would be so nice to push these 2 issues.07:54:32
@drupol:matrix.orgPol The first one prevent me to use infection/infection locally. As it needs XDebug, it fails because of all the warnings. 07:54:58
@drupol:matrix.orgPolThe second one also need some care, but I don't know where or how to start.07:55:19
@etu:semi.socialetuWriting a test07:55:30
@drupol:matrix.orgPolI don't really know, if you could give it some love or at least explain a bit how to do, I might have a look at some point.07:56:21
@etu:semi.socialetuHere's the tests file for php: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/php/default.nix07:58:30
@etu:semi.socialetuWhere we include the tests07:58:34
@etu:semi.socialetuThey are then declared for each PHP version in the all tests file: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/all-tests.nix#L420-L42307:59:09
@etu:semi.socialetuSo we run all tests as each version07:59:17
@etu:semi.socialetuSo it launches a NixOS VM and sets up services or runs commands and all that, then we can curl the VM to check if things works as expected07:59:57
@drupol:matrix.orgPolmmh mmh, thanks, will have a look as soon as I have some time.08:01:03
@drupol:matrix.orgPolIf you have an idea on how to write the test, please let me know.08:01:16
@etu:semi.socialetuWe also have this hack to pass through the "right version" of the tests to each PHP package: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/php/generic.nix#L15508:01:49
@etu:semi.socialetu So you can build php81.tests to eval the tests with php81 08:02:19
@etu:semi.socialetuBut this last bit doesn't need any changes, it's just good to know :)08:02:40
@drupol:matrix.orgPolThanks mate08:02:57
@drupol:matrix.orgPolI'll ping you for further questions if needed. Don't know when, but I will.08:03:17
@etu:semi.socialetuI think the zts thing should be addressed after the next release branch off08:04:24
@etu:semi.socialetuJust as we should drop php74 and change to php81 as default by then08:04:39
@drupol:matrix.orgPolOki, could you comment on the thread, so this information is not lost in the matrix's void :)08:05:03
@andreas.schraegle:helsinki-systems.deAndreas Schrägle
In reply to @etu:semi.social
Just as we should drop php74 and change to php81 as default by then
You can add that to the 22.11 blockers project
08:08:10
@etu:semi.socialetuOh, great suggestion :)08:11:47
@etu:semi.socialetuDone!08:13:30
@drupol:matrix.orgPolHow do you do that?08:18:15
26 Apr 2022
@drupol:matrix.orgPolhttps://dpaste.org/a3euL05:23:01
@drupol:matrix.orgPolLooks like the GCC update broke PHP < 7.4 compilation05:23:13
@andreas.schraegle:helsinki-systems.deAndreas Schräglethe easiest way around that is probably just using gcc < 1107:22:54
@andreas.schraegle:helsinki-systems.deAndreas SchrägleAlso, how does nix-php (is that what it's called) handle openssl_1_0_2 finally not being a thing anymore in nixpkgs?07:23:27
@drupol:matrix.orgPolIt's using a patch08:33:54

Show newer messages


Back to Room ListRoom Version: 6