Skip to content

Conversation

@oech3
Copy link
Contributor

@oech3 oech3 commented Jan 31, 2026

Closes #10130
Closes #10623 ?

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cksum/b2sum. tests/cksum/b2sum is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/cksum. tests/cksum/cksum is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/cksum-a. tests/cksum/cksum-a is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/cksum-base64. tests/cksum/cksum-base64 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/cksum-base64-untagged. tests/cksum/cksum-base64-untagged is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/cksum-c. tests/cksum/cksum-c is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/cksum-raw. tests/cksum/cksum-raw is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/cksum-sha3. tests/cksum/cksum-sha3 is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/tty/tty-eof (fails in this run but passes in the 'main' branch)

@oech3 oech3 marked this pull request as draft January 31, 2026 10:55
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 31, 2026

Merging this PR will not alter performance

✅ 284 untouched benchmarks
⏩ 38 skipped benchmarks1


Comparing oech3:cksum-new (2803f45) with main (8d8e7f8)2

Open in CodSpeed

Footnotes

  1. 38 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.

  2. No successful run was found on main (8e59663) during the generation of this report, so 8d8e7f8 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cksum/cksum-base64-untagged. tests/cksum/cksum-base64-untagged is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/cksum/cksum-c. tests/cksum/cksum-c is passing on 'main'. Maybe you have to rebase?

@oech3 oech3 force-pushed the cksum-new branch 2 times, most recently from c190aaa to 557af54 Compare January 31, 2026 12:13
@oech3

This comment was marked as resolved.

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cksum/cksum-c. tests/cksum/cksum-c is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cksum/cksum-c. tests/cksum/cksum-c is passing on 'main'. Maybe you have to rebase?
Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)

@oech3 oech3 marked this pull request as ready for review January 31, 2026 16:48
@oech3
Copy link
Contributor Author

oech3 commented Jan 31, 2026

See #10623 . Regression was caused by backport.

@oech3 oech3 force-pushed the cksum-new branch 3 times, most recently from f215b6a to fb74f2a Compare January 31, 2026 17:13
@oech3
Copy link
Contributor Author

oech3 commented Jan 31, 2026

from_standalone splitation is painful for clap...

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Feb 1, 2026

GNU testsuite comparison:

GNU test failed: tests/ls/abmon-align. tests/ls/abmon-align is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Feb 1, 2026

GNU testsuite comparison:

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

@github-actions
Copy link

github-actions bot commented Feb 1, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/tty/tty-eof (fails in this run but passes in the 'main' branch)

@ChrisDryden
Copy link
Collaborator

Now that the GNU 9.10 is merged this should be passing right?

@oech3
Copy link
Contributor Author

oech3 commented Feb 7, 2026

No. still needed to strip errno from cksum -c...

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

GNU testsuite comparison:

Congrats! The gnu test tests/cksum/cksum-a is no longer failing!

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

GNU testsuite comparison:

GNU test failed: tests/pr/bounded-memory. tests/pr/bounded-memory is passing on 'main'. Maybe you have to rebase?
Congrats! The gnu test tests/cksum/cksum-a is no longer failing!

@ChrisDryden
Copy link
Collaborator

Surprisingly it seems that the reason cksum-c is failing is because of cat's error parsing not from cksum.

@ChrisDryden
Copy link
Collaborator

Adding

#[error("{}", strip_errno(.0))]

To line 85 in cat will make that gnu test pass

@oech3
Copy link
Contributor Author

oech3 commented Feb 11, 2026

I think it should be a different PR since it fixes different error.

if tag {
return Err(ChecksumError::TagCheck.into());
}
if binary_flag || text_flag {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this check is invalid to have in the checksum_common library since it only applies to cksum and not the other ones like md5sum and sha256sum.

When running on the 9.10 version I'm finding that this is valid:

sha256sum --text --check file

//todo: deduplicate matches.get_flag
let text = !matches.get_flag(options::BINARY);
let tag = matches.get_flag(options::TAG);
let format = OutputFormat::from_standalone(text, tag);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm trying to brainstorm to clean this code up and I'm wondering if its better to just pass the matches in the OutputFormat?

Then you can also move the error handling validation into there and it will make the code reduce by a bunch

@oech3
Copy link
Contributor Author

oech3 commented Feb 11, 2026

SInce CI job's queue is filled, I want to avoid rebasing just for cleanup. We can do that later.

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/pr/bounded-memory. tests/pr/bounded-memory is passing on 'main'. Maybe you have to rebase?
Congrats! The gnu test tests/cksum/cksum-a is no longer failing!

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/factor/t26. tests/factor/t26 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/t31. tests/factor/t31 is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/tty/tty-eof (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/cksum/cksum-a is no longer failing!
Congrats! The gnu test tests/cksum/cksum-c is no longer failing!

BinaryTextConflict,
#[error("--text mode is only supported with --untagged")]
TextWithoutUntagged,
#[error("the --tag option is meaningless when verifying checksums")]
Copy link
Contributor

Choose a reason for hiding this comment

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

can be done a different pr but it will need translate!() at some point

@oech3
Copy link
Contributor Author

oech3 commented Feb 12, 2026

Is

FAIL: tests/factor/t26
======================

Terminated
FAIL tests/factor/t26.sh (exit status: 124)

FAIL: tests/factor/t31
======================

Terminated
FAIL tests/factor/t31.sh (exit status: 124)

flakey?

@sylvestre
Copy link
Contributor

yes, unrelated
i don't know why it is happening lately

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.

cksum: Error message was changed at GNU 9.10 cksum family: Backport --text --tag and --binary --tag --untagged behavior from main of GNU

3 participants