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

fix: cortex.cpp nightly test with cortex.llamacpp #1771

Merged
merged 1 commit into from
Dec 6, 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
4 changes: 2 additions & 2 deletions .github/workflows/cortex-cpp-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
cat ~/.cortexrc

- name: Run e2e tests
if: runner.os != 'Windows' && github.event.pull_request.draft == false
if: github.event_name != 'schedule' && runner.os != 'Windows' && github.event.pull_request.draft == false
run: |
cd engine
cp build/cortex build/cortex-nightly
Expand All @@ -138,7 +138,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT_SERVICE_ACCOUNT }}

- name: Run e2e tests
if: runner.os == 'Windows' && github.event.pull_request.draft == false
if: github.event_name != 'schedule' && runner.os == 'Windows' && github.event.pull_request.draft == false
run: |
cd engine
cp build/cortex.exe build/cortex-nightly.exe
Expand Down
17 changes: 3 additions & 14 deletions engine/e2e-test/cortex-llamacpp-e2e-nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,19 @@
### e2e tests are expensive, have to keep engines tests in order
from test_api_engine_list import TestApiEngineList
from test_api_engine_install_nightly import TestApiEngineInstall
from test_api_engine_get import TestApiEngineGet

### models, keeps in order, note that we only uninstall engine after finishing all models test
from test_api_model_pull_direct_url import TestApiModelPullDirectUrl
from test_api_model_start import TestApiModelStart
from test_api_model_stop import TestApiModelStop
from test_api_model_get import TestApiModelGet
from test_api_model_list import TestApiModelList
from test_api_model_update import TestApiModelUpdate
from test_api_model_delete import TestApiModelDelete
from test_api_model import TestApiModel
from test_api_model_import import TestApiModelImport
from test_api_engine_uninstall import TestApiEngineUninstall

###
from test_cli_engine_get import TestCliEngineGet
from test_cli_engine_install_nightly import TestCliEngineInstall
from test_cli_engine_list import TestCliEngineList
from test_cli_model_delete import TestCliModelDelete
from test_cli_model_pull_direct_url import TestCliModelPullDirectUrl
from test_cli_engine_uninstall import TestCliEngineUninstall
from test_cli_model import TestCliModel
from test_cli_server_start import TestCliServerStart
from test_cortex_update import TestCortexUpdate
from test_create_log_folder import TestCreateLogFolder
from test_cli_model_import import TestCliModelImport
from test_cli_engine_uninstall import TestCliEngineUninstall

if __name__ == "__main__":
sys.exit(pytest.main([__file__, "-v"]))