-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Move cli_testing_examples under crates/cli/tests #6558
Conversation
3dfc2d2
to
813b001
Compare
Thanks for working on this @jschear :) Would it be possible to get rid of cli_testing_examples and place its subfolders directly in crates/cli/tests? |
Heh, great point. Updated. |
crates/cli_utils/src/bench_utils.rs
Outdated
@@ -107,7 +107,10 @@ fn bench_cmd<T: Measurement>( | |||
|
|||
pub fn bench_nqueens<T: Measurement>(bench_group_opt: Option<&mut BenchmarkGroup<T>>) { | |||
exec_bench_w_input( | |||
&file_path_from_root("crates/cli_testing_examples/benchmarks", "nQueens.roc"), | |||
&file_path_from_root( | |||
"crates/cli/tests/cli_testing_examples/benchmarks", |
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.
Looks like the paths in this file still need to be updated
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.
Good catch, updated.
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.
Thanks @jschear, looks good :)
Looks like something failed with the benchmarks check; I'll have some time to look into it later today. |
Hmm, hitting a different issue when trying to run the benchmarks locally (maybe I need to run them in a noninteractive shell somehow?):
|
Oh I see, the CI job checks out |
I'll test this by checking out the current branch twice for the comparison, if that's good we can change one back to main and force the merge after. |
This is required to test the benchmarks because we have breaking changes. Signed-off-by: Anton-4 <[email protected]>
Benchmarks passed :) |
Signed-off-by: Anton-4 <[email protected]>
Can you force merge this @rtfeldman? The benchmarks failure is expected. |
Fixes #6557. When these fixtures are under
crates/cli
, the file paths in expect failures are property relativized to the CWD.This touches the benchmark stuff a bit, not sure how to run those on CI.