-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
1,380 changed files
with
165,673 additions
and
49,999 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 |
---|---|---|
@@ -1,11 +1,26 @@ | ||
{ | ||
"Checks": "-*,readability-*,modernize-*,performance-*,cppcoreguidelines-pro-type-member-init,cppcoreguidelines-init-variables,-modernize-use-trailing-return-type,-readability-uppercase-literal-suffix", | ||
"Checks": "-*,readability-*,modernize-*,performance-*,cppcoreguidelines-pro-type-member-init,cppcoreguidelines-init-variables,readability-identifier-naming,-modernize-use-trailing-return-type,-readability-magic-numbers,-readability-function-cognitive-complexity,-readability-identifier-length,-readability-uppercase-literal-suffix", | ||
"FormatStyle": "file", | ||
"WarningsAsErrors": "-*,performance-*,modernize-use-using,readability-braces-around-statements", | ||
"CheckOptions": [ | ||
{ | ||
"key": "performance-move-const-arg.CheckTriviallyCopyableMove", | ||
"value": "0" | ||
} | ||
}, | ||
{"key": "readability-identifier-naming.NamespaceCase", "value": "lower_case"}, | ||
{"key": "readability-identifier-naming.ClassCase", "value": "lower_case"}, | ||
{"key": "readability-identifier-naming.StructCase", "value": "lower_case"}, | ||
{"key": "readability-identifier-naming.MemberCase", "value": "lower_case"}, | ||
{"key": "readability-identifier-naming.PrivateMemberPrefix", "value": "_"}, | ||
{"key": "readability-identifier-naming.ProtectedMemberPrefix", "value": "_"}, | ||
{"key": "readability-identifier-naming.FunctionCase", "value": "lower_case"}, | ||
{"key": "readability-identifier-naming.MethodCase", "value": "lower_case"}, | ||
{"key": "readability-identifier-naming.VariableCase", "value": "lower_case" }, | ||
{"key": "readability-identifier-naming.MacroDefinitionCase", "value": "UPPER_CASE"}, | ||
{"key": "readability-identifier-naming.EnumCase", "value": "lower_case"}, | ||
{"key": "readability-identifier-naming.ScopedEnumConstantCase", "value": "UPPER_CASE"}, | ||
{"key": "readability-identifier-naming.EnumConstantCase", "value": "UPPER_CASE"}, | ||
{"key": "readability-identifier-naming.GlobalConstantCase", "value": "UPPER_CASE"}, | ||
{"key": "readability-identifier-naming.StaticConstantCase", "value": "UPPER_CASE"} | ||
] | ||
} |
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,89 @@ | ||
name: Backward Model checks | ||
|
||
# This file is for checking that models generated from the current VW master do not cause crashes when loaded into newer VW code | ||
# Generate a model using the latest vw master branch and load the same model using the latest wheel | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'releases/**' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
python-build: | ||
name: Build previous master python wheel | ||
container: | ||
image: vowpalwabbit/manylinux2010-build:latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
# v1 must be used because newer versions require a node.js version that will not run on this old image. | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: recursive | ||
- name: Build wheel | ||
shell: bash | ||
run: | | ||
git clone --recursive https://github.com/VowpalWabbit/vowpal_wabbit.git | ||
cd vowpal_wabbit | ||
/opt/python/cp310-cp310/bin/pip wheel . -w wheel_last_commit/ --global-option --cmake-options="-DSTATIC_LINK_VW_JAVA=On;-DPython_INCLUDE_DIR='/opt/python/cp310-cp310/include/python3.10/'" --verbose | ||
cd .. | ||
auditwheel repair vowpal_wabbit/wheel_last_commit/*whl -w audit_last_commit/ | ||
- name: Upload built wheel | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: test_manylinux_amd64_3.10 | ||
path: audit_last_commit/ | ||
generate-latest-model: | ||
name: Generate model using previous python wheel | ||
needs: python-build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Download artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: test_manylinux_amd64_3.10 | ||
path: built_wheel | ||
- name: Build recent-models | ||
shell: bash | ||
run: | | ||
pip install built_wheel/*.whl | ||
python ./test/run_tests_model_gen_and_load.py --generate_models --skip_missing_args --skip_pr_tests "${{ github.event.pull_request.title }}" | ||
- name: Upload generated file | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: vw_generated_models | ||
path: ~/.vw_runtests_model_gen_working_dir/* | ||
if-no-files-found: error | ||
test-latest-model: | ||
name: Test previous master model with newest wheel | ||
container: | ||
image: vowpalwabbit/manylinux2010-build:latest | ||
needs: generate-latest-model | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: recursive | ||
- uses: actions/download-artifact@v1 | ||
with: | ||
name: vw_generated_models | ||
path: .vw_runtests_model_gen_working_dir | ||
- name: Test loading model with current master | ||
shell: bash | ||
run: | | ||
mv .vw_runtests_model_gen_working_dir ~ | ||
/opt/python/cp310-cp310/bin/pip wheel . -w wheel_output/ --global-option --cmake-options="-DSTATIC_LINK_VW_JAVA=On;-DPython_INCLUDE_DIR='/opt/python/cp310-cp310/include/python3.10/'" --verbose | ||
auditwheel repair wheel_output/*whl -w audit_output/ | ||
/opt/python/cp310-cp310/bin/python3.10 -m pip install wheel_output/*.whl | ||
/opt/python/cp310-cp310/bin/python3.10 ./test/run_tests_model_gen_and_load.py --load_models --skip_pr_tests "${{ github.event.pull_request.title }}" |
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.