Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Rename hostRequires_list to host_requires_list #140

Closed

Conversation

emanchado
Copy link
Contributor

Although it does hold a list of "hostRequires", it's a bit ugly that
we end up with a variable that has both mixedCase and snake_case in
the same name. So, default to the normal Python convention and use
"host_requires_list" for the variable.

Ref. FASTMOVING-1612

@coveralls
Copy link

coveralls commented Feb 7, 2020

Pull Request Test Coverage Report for Build 717

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 86.452%

Totals Coverage Status
Change from base Build 711: 0.01%
Covered Lines: 855
Relevant Lines: 961

💛 - Coveralls

@cki-bot
Copy link

cki-bot commented Feb 7, 2020

Hi! This is the friendly CKI test bot. The maintainers can mention me in a comment together with the word "test" and I will test this PR and post the results. Please note that the only tests that will be tested by the bot are those that are enabled in kpet-db or are already in use within CKI pipelines. If your test is new and has not been enabled for use in pipelines, the bot cannot test it here.

@emanchado emanchado force-pushed the FASTMOVING-1612-consistent-naming-conventions branch from 1ac4ace to 3ab3ac6 Compare February 7, 2020 12:14
@spbnick
Copy link
Contributor

spbnick commented Feb 10, 2020

This looks good, thank you!

However, you gotta take care of transitioning kpet-db to the new name smoothly. So instead start with exposing both the old name and the new name, submit an MR to kpet-db, which switches over to the new name, then when that's merged, submit another one to kpet, which removes the old name.

Copy link
Contributor

@spbnick spbnick left a comment

Choose a reason for hiding this comment

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

Please see the previous comment for requested changes.

@emanchado emanchado force-pushed the FASTMOVING-1612-consistent-naming-conventions branch from 3ab3ac6 to 626cbad Compare February 10, 2020 09:50
@emanchado
Copy link
Contributor Author

Oops, my bad. I thought of it, but then wrongly thought that it was just internal and it wasn't a problem. Oh well. See the update.

Copy link
Contributor

@spbnick spbnick left a comment

Choose a reason for hiding this comment

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

Looks good, I have just two minor requests :)

kpet/run.py Outdated
self.partitions_list = filter(lambda e: e is not None,
partitions_list)
self.kickstart_list = filter(lambda e: e is not None,
kickstart_list)
# For compatibility. Remove when kpet-db is updated.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add TODO: in front of this comment? Then it will be easy to find.

kpet/run.py Outdated
self.partitions_list = filter(lambda e: e is not None,
partitions_list)
self.kickstart_list = filter(lambda e: e is not None,
kickstart_list)
# For compatibility. Remove when kpet-db is updated.
self.hostRequires_list = self.host_requires_list
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move this line, along with the comment to be together with the self.host_requires_list assignment?

Although it does hold a list of "hostRequires", it's a bit ugly that
we end up with a variable that has both mixedCase and snake_case in
the same name. So, default to the normal Python convention and use
"host_requires_list" for the variable.

However, need to keep hostRequires_list temporarily for compatibility
reasons.

Ref. FASTMOVING-1612
@emanchado emanchado force-pushed the FASTMOVING-1612-consistent-naming-conventions branch from 626cbad to 1b86b16 Compare February 13, 2020 10:22
@emanchado
Copy link
Contributor Author

@cki-bot: test!

@cki-bot
Copy link

cki-bot commented Feb 13, 2020

CKI pipeline triggered

Copy link

@cki-bot cki-bot left a comment

Choose a reason for hiding this comment

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

@emanchado
Copy link
Contributor Author

See #141 for the test results.

@emanchado
Copy link
Contributor Author

#141 was merged, so no sense in keeping this anymore

@emanchado emanchado closed this Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants