-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
xonsh: 0.8.3 -> 0.8.12 #58824
xonsh: 0.8.3 -> 0.8.12 #58824
Conversation
}; | ||
|
||
LC_ALL = "en_US.UTF-8"; | ||
postPatch = '' | ||
sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py | ||
sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' scripts/xon.sh | ||
sed -ie "s|SHELL=xonsh|SHELL=$out/bin/xonsh|" tests/test_integrations.py |
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.
I'm using $out/bin/xonsh because (if I understand correctly) for python projects the checkPhase == installCheckPhase, so we want to reference the "installed" binary.
-k 'not test_man_completion and not test_indir and not test_xonsh_party and not test_foreign_bash_data and not test_script and not test_single_command_no_windows and not test_redirect_out_to_file and not test_sourcefile and not test_printname and not test_printfile' | ||
HOME=$TMPDIR pytest -k 'not test_repath_backslash and not test_os and not test_man_completion and not test_builtins and not test_main and not test_ptk_highlight' | ||
HOME=$TMPDIR pytest -k 'test_builtins or test_main' --reruns 5 | ||
HOME=$TMPDIR pytest -k 'test_ptk_highlight' |
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.
Running this one separately is something that xonsh does as well. See xonsh/run-tests.xsh.
@GrahamcOfBorg build xonsh |
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.
The build broke locally due to python.pkgs.pytest-rerunfailures
being broken, I just pushed a fix. As soon as ofBorg finished successfully, I'd merge and backport 👍
Just seen that it's on master already, but the PR contains an old state.
@GrahamcOfBorg build xonsh |
Just a short update: I removed my commit again as I missed that |
I don't have a mac myself, but I was able to run some tests through travis. https://travis-ci.org/Meptl/nixpkgs/builds/516748079 (darwin-test branch). Copied the nix-build command from OfBorg README. I don't think the most recent travis osx image is nix-ready. Still investigating the travis environment to see how I might reproduce. |
Thanks a lot for doing this! I don't own a mac either, I planned to test this in a virtualbox vm with osx today, but you were faster regarding a macos test 😅 The only thing I'm not sure about atm is whether or not to keep the tests in darwin or to disable those with @grahamc would you mind having a look at the ofborg errors for darwin? Do you think that this is related to ofborg's testing environment or should we entirely disable the tests on darwin for now? :) |
Since xonsh is currently broken on master, should we just exclude darwin for now? If there is interest from a mac user, they are in a much better position to fix it. |
That makes sense, yes 👍 This should be backported as well then, IIRC the package is broken on |
Rebased off latest master, added the doCheck. I force pushed twice because I used the wrong email as the commit author. Kicked off OSX tests for every image available on travis: https://travis-ci.org/Meptl/nixpkgs/builds/519768510 (darwin-test2 branch) |
@GrahamcOfBorg build xonsh |
@timokau can you backport to |
(cherry picked from commit aa4af91)
Motivation for this change
Failing hydra build.
https://hydra.nixos.org/build/91523333
/cc #56826
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Tests
Note that to build this with a local master you need a small edit to pytest-rerunfailures. Add pytest to checkInputs. See part of #58710.<- PR released