Skip to content

Conversation

@sylvestre
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 6, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Sep 7, 2025

GNU testsuite comparison:

GNU test failed: tests/rmdir/symlink-errors. tests/rmdir/symlink-errors is passing on 'main'. Maybe you have to rebase?

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/rmdir/symlink-errors. tests/rmdir/symlink-errors is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@sylvestre sylvestre marked this pull request as ready for review September 14, 2025 21:32
Comment on lines 1089 to 1090
// Test that -g/--progress flag is accepted
ucmd.arg("-g").arg(file).succeeds();
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a disconnect between the code and the comment. I would either adapt the code to test both -g and --progress or change/remove the comment.

Comment on lines 1126 to 1135
let (_, mut ucmd) = at_and_ucmd!();
let nonexistent_file = "this_file_does_not_exist";

// Test that progress bar is not shown when file doesn't exist
let result = ucmd.arg("--progress").arg(nonexistent_file).fails();

// Should contain error message but no progress bar output
result
.stderr_contains("cannot remove")
.stderr_contains("No such file or directory");
Copy link
Contributor

Choose a reason for hiding this comment

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

I would use new_ucmd! and no result var.

Suggested change
let (_, mut ucmd) = at_and_ucmd!();
let nonexistent_file = "this_file_does_not_exist";
// Test that progress bar is not shown when file doesn't exist
let result = ucmd.arg("--progress").arg(nonexistent_file).fails();
// Should contain error message but no progress bar output
result
.stderr_contains("cannot remove")
.stderr_contains("No such file or directory");
let nonexistent_file = "this_file_does_not_exist";
// Test that progress bar is not shown when file doesn't exist
new_ucmd!()
.arg("--progress")
.arg(nonexistent_file)
.fails()
.stderr_contains("cannot remove")
.stderr_contains("No such file or directory");

Copy link
Contributor

@cakebaker cakebaker left a comment

Choose a reason for hiding this comment

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

Done :)

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 21, 2025

CodSpeed Performance Report

Merging #8567 will degrade performances by 3.83%

Comparing sylvestre:rm-progress (8bf15fe) with main (0c3eb12)

Summary

⚡ 4 improvements
❌ 1 regression
✅ 101 untouched
⏩ 73 skipped1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
du_balanced_tree[(5, 4, 10)] 9.4 ms 9.1 ms +2.46%
du_human_balanced_tree[(5, 4, 10)] 10.4 ms 10.1 ms +3.02%
du_max_depth_balanced_tree[(6, 4, 10)] 33.3 ms 32.5 ms +2.34%
du_summarize_balanced_tree[(5, 4, 10)] 8.6 ms 8.4 ms +2.65%
rm_single_file 99.4 ms 103.4 ms -3.83%

Footnotes

  1. 73 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@cakebaker cakebaker merged commit e2634e5 into uutils:main Oct 22, 2025
121 of 122 checks passed
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.

2 participants