Skip to content
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

Fixes #37031 - hammer proxy content info fails when DB has no content counts #921

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

ianballou
Copy link
Member

Test by upgrading from Katello 4.10 to 4.11 with a synced smart proxy. Run hammer proxy content info... and see the error "undefined method each for nil"

Related to Katello/katello#10835

@ianballou ianballou force-pushed the 37031-fix-content-counts-empty branch from 9eef6df to 6ac3418 Compare January 4, 2024 23:45
@ianballou
Copy link
Member Author

The test failure seems to be happening to any PR -- I think the GH ubuntu test machine is broken somehow. It's not reproducible locally on EL7.

@chris1984 chris1984 self-assigned this Jan 10, 2024
Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

Works great, thanks @ianballou I will figure out the test error, last time I saw this happen it was because of the seed order so half the time it would work, half the time it would fail. Here is what I did last time:

#910

One of the files was loading before another one and didn't have the proper require.

Feel free to merge it, since it's not related.

@ianballou
Copy link
Member Author

Thanks @chris1984 ! I'll take a look at what you did before and see if I can't fix it with this PR.

@ianballou ianballou force-pushed the 37031-fix-content-counts-empty branch from 96f80a3 to 3295730 Compare January 11, 2024 19:02
@ianballou ianballou merged commit 9e09e6a into Katello:master Jan 11, 2024
2 of 3 checks passed
@ianballou ianballou deleted the 37031-fix-content-counts-empty branch January 11, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants