Skip to content

Conversation

@traxys
Copy link
Member

@traxys traxys commented Jul 19, 2024

No description provided.

@MattSturgeon
Copy link
Member

We'll have to update the tests dev command; maybe we could use gum choose --no-limit (and maybe --deliminator) to allow users to select arbitrary tests to be run?

This could be another PR; this PR could just disable the tests command for now.

@traxys
Copy link
Member Author

traxys commented Jul 19, 2024

Yeah I tried this PR to see what it would do, but I think we ought to wait for nix-community/buildbot-nix#217 to reduce the clutter a bit

@traxys traxys force-pushed the no_link_farm branch 2 times, most recently from 420b7ab to 51b5590 Compare July 20, 2024 14:12
@traxys traxys changed the title WIP: tests: Remove the test link farm tests: Remove the test link farm Jul 21, 2024
@traxys traxys marked this pull request as ready for review July 21, 2024 09:49

run_tests() {
# Add the prefix "checks.${system}." to each argument
if ! "${NIXVIM_NIX_COMMAND}" build -f . "${@/#/checks.${NIXVIM_SYSTEM}.}"; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use --file instead of -f? I prefer using long-form options in scripts since anyone can follow their meaning, even if unfamiliar with the specific command's options.

Copy link
Member

@MattSturgeon MattSturgeon Jul 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, does nix build -f . produce ./result? I'm wondering if we can speed up the generate-files build by doing all builds in one step?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does for each of the derivations passed to the command line.
I don't see how can be do all the builds in "one" step, I already pass all the builds to a single nix invocation :/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, which comment are you replying to?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if we can speed up the generate-files build by doing all builds in one step?

The `tests` command can either launch all tests (without any arguments),
a specific test with `-t/--test` or choose a test with `-i/--interactive`
Copy link
Member

@MattSturgeon MattSturgeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues from me assuming everything works and tests pass etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants