Skip to content

script: Refuse empty files in cmp when updating#52

Merged
joamaki merged 1 commit intomainfrom
pr/joamaki/empty-not-cmp
May 23, 2025
Merged

script: Refuse empty files in cmp when updating#52
joamaki merged 1 commit intomainfrom
pr/joamaki/empty-not-cmp

Conversation

@joamaki
Copy link
Copy Markdown
Contributor

@joamaki joamaki commented May 22, 2025

Add an additional safeguard to -scripttest.update when used with 'cmp' to ignore empty files and increase the retries to 2. This significantly increases the likelyhood that we do not pick a too "early" version of the actual output.

Removed the update handling from 'empty' command as I don't see a use-case where we'd use 'empty' on a file within the txtar. You can just empty the file manually.

Add an additional safeguard to -scripttest.update when used with 'cmp'
to ignore empty files and increase the retries to 2. This significantly
increases the likelyhood that we do not pick a too "early" version of the
actual output.

Removed the update handling from 'empty' command as I don't see a use-case
where we'd use 'empty' on a file within the txtar. You can just empty the
file manually.

Signed-off-by: Jussi Maki <jussi.maki@isovalent.com>
@joamaki joamaki requested a review from a team as a code owner May 22, 2025 12:30
@joamaki joamaki requested review from pippolo84 and removed request for a team May 22, 2025 12:30
Copy link
Copy Markdown
Member

@pippolo84 pippolo84 left a comment

Choose a reason for hiding this comment

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

@joamaki joamaki merged commit 7cbbf5e into main May 23, 2025
1 check passed
@joamaki joamaki deleted the pr/joamaki/empty-not-cmp branch May 23, 2025 12:54
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