Multiple fixes#40
Closed
roxanan1996 wants to merge 10 commits into
Closed
Conversation
Add support for linting tools and dependencies management. The file needed are: - pyproject.toml. This is used for managing dependencies and configuration into a single file. At the moment, it is not written to be able to install this project as a proper package, but it can be changed in the future. - .pre-commit-config.yaml. This will run Ruff's linter and formatter via pre-commit. At the moment, all *py are excluded from pre-commit formatting. Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
63c7b03 to
7636623
Compare
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
This was done automatically by ruff format. Default configuration is used. Variable l was replaced by index due to #E741. It is not recommened to use variables named 'I', 'O' or 'l' because they are hard to read. Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
This was done automatically by ruff format. Default configuration is used. Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
This was done automatically by ruff format. Default configuration is used. Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
…are commited If the commit that needs to be cherry picked has "Fixes:" references in the commit body, there is now a check in pace that verify if those commits are present in the current branch. At the moment, the scrips returns an Exception because the developer must check why the commit has to be cherry picked for a bug fix or cve fix if the actual commit that introduced the bug/cve was not commited. If the commit does not reference any Fixes:, an warning is shown to make the developer aware that they have to double check if it makes sense to cherry pick this commit. The script continues as this can be reviewed after. This is common in the linux kernel community. Not all fixes have a Fixes: reference. Checking if a commit is part of the branch has now improved. It checks if either the commit was backported by our team, or if the commit came from upstream. Note: The implementation reuses some of the logic in the check_kernel_commits.py. Those have been moved to ciq_helper.py. This commit address the small refactor in check_kernel_commits.py as well. Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
It now automatically cherry picks the Fixes: dependencies. To accomodate this, CIQ_find_mainline_fixes was moved to ciq_helpers. And an extra argument for upstream-ref was introduced, the default being origin/kernel-mainline, as the dependencies are looked up there. Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
It adds a lot of noice. When debugging printing is introduced in the future, it may be added back. Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
7636623 to
36dde2c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some commits apply cleanly, and even pass testing even though they should not be cherry picked because the commit they try to fix is not there. Exemple:
in lts-8.6
3. Add automatic cherry pick for cve-bf
WIP because github action for checking the formatting will be added soon.
And extra testing for the other improvements.