Skip to content

Fix flaky TestDedupeRepos#30576

Merged
gjenkins8 merged 1 commit into
helm:mainfrom
felipecrs:fix-dedupe-tests
Feb 23, 2025
Merged

Fix flaky TestDedupeRepos#30576
gjenkins8 merged 1 commit into
helm:mainfrom
felipecrs:fix-dedupe-tests

Conversation

@felipecrs

@felipecrs felipecrs commented Feb 23, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Closes #30573

Special notes for your reviewer:

Sorry, I'm not a golanger. The solution doesn't seem the cleanest, but it's the cleanest I could come up with. I'm open to suggestions.

As suggested by @gjenkins8 here.

@pull-request-size pull-request-size Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 23, 2025
Comment thread pkg/downloader/manager_test.go Outdated
@pull-request-size pull-request-size Bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 23, 2025

@gjenkins8 gjenkins8 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the speedy fix PR. One suggestion to use a helper from https://github.com/stretchr/testify?tab=readme-ov-file#assert-package

This is frequently used (including in other places in Helm) for unit tests in golang, to the point where it is close to being idiomatic (I'm sure some people would disagree with this statement)

Comment thread pkg/downloader/manager_test.go Outdated
Comment thread go.mod Outdated
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
@gjenkins8

Copy link
Copy Markdown
Member

Merging size/XS with single review (minor test code fix only)

@gjenkins8 gjenkins8 merged commit 392ff93 into helm:main Feb 23, 2025
@scottrigby scottrigby added the bug Categorizes issue or PR as related to a bug. label Nov 5, 2025
@scottrigby scottrigby added this to the 4.0.0 milestone Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test flake on TestDedupeRepos

3 participants