-
Notifications
You must be signed in to change notification settings - Fork 0
Validation support and associated updates #59
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
61546ad
Update how we get test tools and make use of $TOOLS_BIN
malucius-rh aec992d
Now running package_tool without %TOOLS_BIN and using return code
malucius-rh ee954e9
Add validation files
malucius-rh 4be3e4e
Stage for addition of validation but do not activate
malucius-rh 630feec
Adding the validation code
malucius-rh 074b867
Replace return codes with new style
malucius-rh 14c7e1c
Fixing the validation bits based on testing
malucius-rh 139efdf
Move gather data to after test_tools installation
malucius-rh 8cfba67
clean up whitespace
malucius-rh 77e438f
Preserve the json file used for validation
malucius-rh f27393d
Change where the json file goess
malucius-rh b4c6daf
Missed a path change
malucius-rh a28a44d
Fix copy/paste typo
malucius-rh 21c705e
Fix underscore/plus issue in reduce_non_auto_data
malucius-rh 21b8a73
Remove no-longer-necessary option in call to package_tool
malucius-rh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| import pydantic | ||
| import datetime | ||
| from enum import Enum | ||
| class Filesys(Enum): | ||
| xfs = "xfs" | ||
| ext4 = "ext4" | ||
| ext3 = "ext3" | ||
|
|
||
| class Testmode(Enum): | ||
| directio = "directio" | ||
| incache = "incache" | ||
| incache_fsync = "incache+fsync" | ||
| incache_mmap = "incache+mmap" | ||
| outcache = "outcache" | ||
|
|
||
| class Iozone_Results (pydantic.BaseModel): | ||
| fs: Filesys | ||
| mode: Testmode | ||
| all_ios: int = pydantic.Field(gt=0) | ||
| initwrite: int = pydantic.Field(gt=0) | ||
| rewrite: int = pydantic.Field(gt=0) | ||
| read: int = pydantic.Field(gt=0) | ||
| reread: int = pydantic.Field(gt=0) | ||
| rndread: int = pydantic.Field(gt=0) | ||
| rndwrite: int = pydantic.Field(gt=0) | ||
| backread: int = pydantic.Field(gt=0) | ||
| recrewrite: int = pydantic.Field(gt=0) | ||
| strideread: int = pydantic.Field(gt=0) | ||
| fwrite: float = pydantic.Field() | ||
| frewrite: float = pydantic.Field() | ||
| fread: float = pydantic.Field() | ||
| freread: float = pydantic.Field() | ||
| Start_Date: datetime.datetime | ||
| End_Date: datetime.datetime |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| import pydantic | ||
| import datetime | ||
| from enum import Enum | ||
| class Filesys(Enum): | ||
| xfs = "xfs" | ||
| ext4 = "ext4" | ||
| ext3 = "ext3" | ||
|
|
||
| class Testmode(Enum): | ||
| directio = "directio" | ||
| incache = "incache" | ||
| incache_fsync = "incache+fsync" | ||
| incache_mmap = "incache+mmap" | ||
| outcache = "outcache" | ||
|
|
||
| class Operation(Enum): | ||
| Initialwrite = "Initialwrite" | ||
| Rewrite = "Rewrite" | ||
| Read = "Read" | ||
| Reread = "Reread" | ||
| ReverseRead = "ReverseRead" | ||
| Strideread = "Strideread" | ||
| Randomread = "Randomread" | ||
| Mixedworkload = "Mixedworkload" | ||
| Randomwrite = "Randomwrite" | ||
| Pwrite = "Pwrite" | ||
| Pread = "Pread" | ||
| Fwrite = "Fwrite" | ||
| Fread = "Fread" | ||
|
|
||
| class Iozone_Results (pydantic.BaseModel): | ||
| fs: Filesys | ||
| mode: Testmode | ||
| op: Operation | ||
| proc1: float = pydantic.Field(gt=0, allow_inf_nan=False) | ||
| proc2: float = pydantic.Field(gt=0, allow_inf_nan=False) | ||
| proc4: float = pydantic.Field(gt=0, allow_inf_nan=False) | ||
| Start_Date: datetime.datetime | ||
| End_Date: datetime.datetime | ||
|
malucius-rh marked this conversation as resolved.
|
||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.