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

Fix growpart race #4618

Merged
merged 4 commits into from
Jan 5, 2024
Merged

Conversation

holmanb
Copy link
Member

@holmanb holmanb commented Nov 21, 2023

Proposed Commit Message

Fixes #4613

Additional Context

See bug

Checklist

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

@holmanb holmanb changed the title Holmanb/growpart race Fix growpart race Nov 22, 2023
@TheRealFalcon TheRealFalcon self-assigned this Dec 1, 2023
Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

2 minor comments inline.

Can we make sure this is unit tested?

cloudinit/config/cc_growpart.py Outdated Show resolved Hide resolved
cloudinit/config/cc_growpart.py Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 4, 2024

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging TheRealFalcon, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag TheRealFalcon to reopen it.)

@github-actions github-actions bot added the stale-pr Pull request is stale; will be auto-closed soon label Jan 4, 2024
@holmanb holmanb removed the stale-pr Pull request is stale; will be auto-closed soon label Jan 5, 2024
@TheRealFalcon
Copy link
Member

@holmanb No rush on this, but I was waiting for unit tests before re-review.

@holmanb holmanb force-pushed the holmanb/growpart-race branch from efc0f45 to c506961 Compare January 5, 2024 19:47
@holmanb
Copy link
Member Author

holmanb commented Jan 5, 2024

Thanks @TheRealFalcon. This one fell off my radar - in part due to test complexity.

resize_devices() will require lots of mocks in order to get coverage for the log message logic - enough that I don't think that such a heavily mocked test provides much value. Refactoring that function would likely be required to make it more reasonable to write tests for, but I'm hoping to avoid that for now.

I've pushed a test for get_size(), let me know if that suffices for now.

@holmanb holmanb requested a review from TheRealFalcon January 5, 2024 19:48
@TheRealFalcon
Copy link
Member

Yeah, that one's a bit of a doozy. Given that we have some integration test coverage (that triggered this issue), I'm ok skipping that function for now.

@TheRealFalcon TheRealFalcon merged commit 598e056 into canonical:main Jan 5, 2024
29 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.

Growpart integration test intermittently failing
2 participants