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
gitAndTools.git-interactive-rebase-tool: init #79078
Conversation
44ba109
to
c25ded4
Compare
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.
Test suite fails with the following errors:
git-interactive-rebase-tool> failures:
git-interactive-rebase-tool> ---- display::utils::tests::detect_color_mode_term_program_env_apple_terminal stdout ----
git-interactive-rebase-tool> thread 'display::utils::tests::detect_color_mode_term_program_env_apple_terminal' panicked at 'assertion failed: `(left == right)`
git-interactive-rebase-tool> left: `TwoTone`,
git-interactive-rebase-tool> right: `EightBit`', src/display/utils.rs:147:3
git-interactive-rebase-tool> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
git-interactive-rebase-tool> ---- display::utils::tests::detect_color_mode_vte_version_less_0_36_00 stdout ----
git-interactive-rebase-tool> thread 'display::utils::tests::detect_color_mode_vte_version_less_0_36_00' panicked at 'assertion failed: `(left == right)`
git-interactive-rebase-tool> left: `TrueColor`,
git-interactive-rebase-tool> right: `EightBit`', src/display/utils.rs:182:3
git-interactive-rebase-tool> failures:
git-interactive-rebase-tool> display::utils::tests::detect_color_mode_term_program_env_apple_terminal
git-interactive-rebase-tool> display::utils::tests::detect_color_mode_vte_version_less_0_36_00
git-interactive-rebase-tool> test result: FAILED. 172 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out
git-interactive-rebase-tool> error: test failed, to rerun pass '--bin interactive-rebase-tool'
git-interactive-rebase-tool> builder for '/nix/store/y8v4vw37gzrkwcs2v1y3aq3w60lfl7w6-git-interactive-rebase-tool-1.2.1.drv' failed with exit code 101
error: build of '/nix/store/y8v4vw37gzrkwcs2v1y3aq3w60lfl7w6-git-interactive-rebase-tool-1.2.1.drv' on 'ssh://builder' failed: builder for '/nix/store/y8v4vw37gzrkwcs2v1y3aq3w60lfl7w6-git-interactive-rebase-tool-1.2.1.drv' failed with exit code 101
Hello @Ma27. Is that the output you're observing from trying to build the derivation? Could you share what platform you're building it on? |
Yes. The error seems to occur as well on ofborg.
|
@Ma27 Perhaps this has something to do with the terminal in which the Nix derivation is being built? When I try to build the derivation locally in my Konsole terminal (which supports true color) it works correctly:
I'm not super familiar with the Nixpkgs contribution processes. Would the appropriate step from here on be to comment out the terminal specific tests using a patch? |
Just realized that you built this without an enabled sandbox. Would you mind retrying with a sandbox enabled ( In that case it's probably related the terminal and you should disable the tests as this means that those will break at least on Hydra and ofborg. |
@Ma27 Thanks. After running:
I once again see that the tests pass. I'll try to figure out how to get rid of those tests. |
Ah, just realized that you're running on a non-NixOS Linux. Tbh I'm unfortunately not sure how the sandbox works in such an environment. Would you mind trying to configure the sandbox as described here: https://nixos.wiki/wiki/Nix |
@Ma27 Hmm. How do I tell whether or not sandboxing is working? Wouldn't the I tried adding |
At any rate, I've patched out the terminal related tests, so hopefully this should make the build succeed. Could you check whether the updated PR builds for you? |
8dfd983
to
4d67e30
Compare
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.
Tests work fine now, squashed the three commits together into a single one (with this tool btw :)).
Hmm, for instance you could build a derivation that tries to access the network. With sandboxing enbled it should definetely fail.
@masaeedu thanks! :) |
Motivation for this change
Adds
git-interactive-rebase-tool
, a nice interactive alternative to modifying a rebase task sequence fileThings done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)