-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
582 additions
and
89 deletions.
There are no files selected for viewing
This file contains 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,39 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
CI: | ||
runs-on: ubuntu-22.04 # latest at time of writing | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' # default version on Amazon Linux 2023 | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' # default version on Amazon Linux 2023 | ||
|
||
- run: python -m pip install -r scripts/requirements.txt | ||
|
||
- name: Lint Python scripts | ||
run: python scripts/lint-python.py | ||
|
||
- name: Lint s3-benchrunner-c | ||
run: python runners/s3-benchrunner-c/scripts/lint.py | ||
|
||
- name: Lint s3-benchrunner-crt-java | ||
run: python runners/s3-benchrunner-crt-java/scripts/lint.py | ||
|
||
- name: Check that benchmark.run.json files are up to date | ||
# build benchmarks and see if any files change | ||
run: | | ||
python scripts/build-benchmarks.py | ||
git diff --exit-code | ||
- name: Build s3-benchrunner-c | ||
run: python runners/s3-benchrunner-c/scripts/build.py --build-dir ${{runner.temp}}/build/c | ||
|
||
- name: Build s3-benchrunner-crt-java | ||
run: python runners/s3-benchrunner-crt-java/scripts/build.py --build-dir ${{runner.temp}}/build/crt-java |
This file contains 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 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,60 @@ | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: Mozilla | ||
AlignAfterOpenBracket: AlwaysBreak | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Right | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: Inline | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Allman | ||
BreakBeforeTernaryOperators: true | ||
BreakStringLiterals: true | ||
ColumnLimit: 120 | ||
ContinuationIndentWidth: 4 | ||
DerivePointerAlignment: false | ||
FixNamespaceComments : true | ||
IncludeBlocks: Preserve | ||
IndentCaseLabels: true | ||
IndentPPDirectives: AfterHash | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: true | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: All | ||
PenaltyBreakAssignment: 2 | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 100000 | ||
PointerAlignment: Right | ||
ReflowComments: true | ||
SortIncludes: true | ||
SpaceAfterCStyleCast: false | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesInContainerLiterals: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
TabWidth: 4 | ||
UseTab: Never | ||
... | ||
|
This file contains 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 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,26 @@ | ||
#!/usr/bin/env python3 | ||
import argparse | ||
import os | ||
from pathlib import Path | ||
|
||
PARSER = argparse.ArgumentParser(description="Check formatting") | ||
|
||
if __name__ == '__main__': | ||
args = PARSER.parse_args() | ||
|
||
runner_dir = Path(__file__).parent.parent | ||
files: list[str] = [] | ||
for pattern in ['*.cpp', '*.c', '*.h']: | ||
for i in runner_dir.glob(pattern): | ||
files.append(str(i)) | ||
|
||
failed = False | ||
for file in files: | ||
# using shell commands because it's way shorter than proper python | ||
if os.system(f'clang-format {file} | diff -u {file} -') != 0: | ||
failed = True | ||
|
||
if failed: | ||
# display clang format version | ||
os.system('clang-format --version') | ||
exit('FAILED') |
47 changes: 0 additions & 47 deletions
47
runners/s3-benchrunner-crt-java/dependency-reduced-pom.xml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.