Skip to content

Commit

Permalink
fix: cortex.cpp nightly test with cortex.llamacpp (#1771)
Browse files Browse the repository at this point in the history
Co-authored-by: Hien To <[email protected]>
  • Loading branch information
hiento09 and hiento09 authored Dec 6, 2024
1 parent 61c3ee1 commit a6d9da3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
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"]))

0 comments on commit a6d9da3

Please sign in to comment.