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

Misc fixes #84

Merged
merged 5 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: [ubuntu-latest]

steps:
Expand Down
3 changes: 3 additions & 0 deletions kcidb_io/schema/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def __init__(cls, name, bases, _dict, **kwargs):
for k, v in cls.graph.items())
assert "" in cls.graph

def __str__(cls):
return f"v{cls.major}.{cls.minor}"

def __le__(cls, other):
if isinstance(other, type) and \
(issubclass(cls, other) or issubclass(other, cls)):
Expand Down
2 changes: 1 addition & 1 deletion kcidb_io/schema/v04_00.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Version(PreviousVersion):
"examples": [
"https://git.kernel.org/pub/scm/linux/kernel/git/"
"torvalds/linux.git",
],
], # noqa: E122, silly flake8
},
"git_commit_hash": {
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions kcidb_io/schema/v04_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class Version(PreviousVersion):
"examples": [
"https://git.kernel.org/pub/scm/linux/kernel/git/"
"torvalds/linux.git",
],
], # noqa: E122, silly flake8
},
"git_commit_hash": {
"type": "string",
Expand Down Expand Up @@ -778,7 +778,7 @@ class Version(PreviousVersion):
"type": "integer",
"description":
"The modification version number of the "
"occurring/absent issue. ",
"occurring/absent issue.",
"minimum": 0,
},
"build_id": {
Expand Down
4 changes: 2 additions & 2 deletions kcidb_io/schema/v04_02.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class Version(PreviousVersion):
"examples": [
"https://git.kernel.org/pub/scm/linux/kernel/git/"
"torvalds/linux.git",
],
], # noqa: E122, silly flake8
},
"git_commit_hash": {
"type": "string",
Expand Down Expand Up @@ -788,7 +788,7 @@ class Version(PreviousVersion):
"type": "integer",
"description":
"The modification version number of the "
"occurring/absent issue. ",
"occurring/absent issue.",
"minimum": 0,
},
"build_id": {
Expand Down
7 changes: 4 additions & 3 deletions kcidb_io/schema/v04_03.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class Version(PreviousVersion):
"examples": [
"https://git.kernel.org/pub/scm/linux/kernel/git/"
"torvalds/linux.git",
],
], # noqa: E122, silly flake8
},
"git_commit_hash": {
"type": "string",
Expand Down Expand Up @@ -745,7 +745,8 @@ class Version(PreviousVersion):
"type": "object",
"description":
"Layers of the execution stack responsible "
"for the issue.",
"for the issue. If all are false, the issue is "
"considered invalid.",
"properties": {
"code": {
"type": "boolean",
Expand Down Expand Up @@ -843,7 +844,7 @@ class Version(PreviousVersion):
"type": "integer",
"description":
"The modification version number of the "
"occurring/absent issue. ",
"occurring/absent issue.",
"minimum": 0,
},
"build_id": {
Expand Down
Loading