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

No config - move even more things out of Config class #43

Merged
merged 11 commits into from
Nov 29, 2024

Conversation

marcosps
Copy link
Collaborator

With this PR we are mostly done: a ton of things now are moved into util and Codestream classes

@marcosps marcosps requested a review from fgyanz November 25, 2024 12:34
Now we use a dict to quickly search for the codestreams without
resorting to a list.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
Some problems can happen with remote branches, but we don't care.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
Fixing small stuff, not functional changes expected.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
And simplify the Config class, and the other classes that inherit it.
Also fix some pylint issues found.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
And also classify the codestreams when grouping codestreams after the
extract.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
Sometimes, after a livepatch is taking long to finish, some codestrams
can get out of support, so in order to prepare the tests correctly, drop
these stale codestreams once we found them.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
Reported by pylint.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
Now IBS only contains two arguments, so remove the stale argument.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
This helps us to download missing codestreams. We still need to check all
configs, but we can do that in the future, since we don't really have to
deal with multiple places with different configs that much.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
subprocess.check_output(["/usr/bin/git", "-C", self.kern_src, "fetch",
"--quiet", "--tags", "origin"] +
subprocess.check_output(["/usr/bin/git", "-C", str(self.kern_src), "fetch",
"--quiet", "--tags", "--force", "origin"] +
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you clarify why do we need force here? Is there any advantage to the current behavior? I'm wondering if this will have a negative effect on performance and when fetching from multiple instances of klp-build at the same time.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, there was one error when fetching changes from kernel-sources related to so stale/removed tags, IIRC, but as we don't care much about those I just added force so it just bypasses it, instead of errorring out.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah I see! Alright, makes sense :)

@fgyanz
Copy link
Collaborator

fgyanz commented Nov 29, 2024

LGTM! Thanks for all the work!

@fgyanz fgyanz merged commit c5a7be3 into SUSE:main Nov 29, 2024
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