aiverify-moonshot 0.7.4__tar.gz → 0.7.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/integration-test.yaml +622 -137
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/smoke-test-cli.yaml +16 -1
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/smoke-test.yaml +16 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/PKG-INFO +22 -8
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/README.md +1 -1
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/app.py +1 -1
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/pyproject.toml +31 -19
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/requirements.txt +24 -22
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.coveragerc +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.flake8 +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/developing-workflows.md +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/pull_request_template.md +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/scripts/create_backup.sh +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/scripts/install_ms_service.sh +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/scripts/moonshot_env +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/scripts/moonshot_test_env +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/scripts/moonshot_ui_env +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/scripts/run_smoke_test.sh +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/scripts/start_ms_service.sh +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/docs-update.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/gh-event-notification.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/notices-file-gen.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/pre-build-checks.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/pypi-deployment.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/sast-codeql.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/sca-scan.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/sit-build.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/test-pypi-deployment.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.github/workflows/uat-build.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.gitignore +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/.pre-commit-config.yaml +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/AUTHORS.md +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/LICENSE.md +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/NOTICES.md +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/__main__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/api.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/__main__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/active_session_cfg.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/benchmark.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/cookbook.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/datasets.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/metrics.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/recipe.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/result.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/run.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/benchmark/runner.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/cli.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/cli_errors.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/common/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/common/common.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/common/connectors.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/common/dataset.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/common/display_helper.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/common/prompt_template.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/initialisation/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/initialisation/initialisation.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/redteam/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/redteam/attack_module.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/redteam/context_strategy.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/redteam/prompt_template.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/redteam/redteam.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/redteam/session.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/cli/utils/process_data.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/.env.dev +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/__main__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/container.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/log/.gitkeep +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/logging_conf.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/attack_modules.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/benchmark.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/benchmark_result.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/bookmark.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/context_strategy.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/cookbook.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/dataset.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/endpoint.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/metric.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/prompt_template.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/recipe.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/redteam.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/routes/runner.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/benchmark_runner_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/bookmark_create_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/cookbook_create_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/cookbook_response_model.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/dataset_create_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/dataset_response_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/endpoint_create_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/endpoint_response_model.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/prompt_response_model.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/prompt_template_response_model.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/recipe_create_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/recipe_response_model.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/session_create_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/session_prompt_dto.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/schemas/session_response_model.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/attack_module_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/auto_red_team_test_manager.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/auto_red_team_test_state.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/base_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/benchmark_result_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/benchmark_test_manager.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/benchmark_test_state.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/benchmarking_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/bookmark_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/context_strategy_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/cookbook_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/dataset_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/endpoint_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/metric_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/prompt_template_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/recipe_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/runner_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/session_service.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/utils/exceptions_handler.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/utils/file_manager.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/services/utils/results_formatter.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/status_updater/interface/benchmark_progress_callback.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/status_updater/interface/redteam_progress_callback.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/status_updater/moonshot_ui_webhook.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/temp/.gitkeep +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/integrations/web_api/types/types.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_bookmark.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_connector.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_connector_endpoint.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_context_strategy.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_cookbook.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_dataset.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_environment_variables.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_metrics.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_prompt_template.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_recipe.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_red_teaming.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_result.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_run.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_runner.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/api/api_session.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/bookmark/bookmark.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/bookmark/bookmark_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/configs/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/configs/env_variables.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/connectors/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/connectors/connector.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/connectors/connector_prompt_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/connectors/connector_response.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/connectors_endpoints/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/connectors_endpoints/connector_endpoint.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/connectors_endpoints/connector_endpoint_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/cookbooks/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/cookbooks/cookbook.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/cookbooks/cookbook_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/datasets/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/datasets/dataset.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/datasets/dataset_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/messages_constants.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/metrics/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/metrics/metric.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/metrics/metric_interface.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/prompt_templates/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/prompt_templates/prompt_template.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/recipes/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/recipes/recipe.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/recipes/recipe_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/attack/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/attack/attack_module.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/attack/attack_module_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/attack/context_strategy.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/context_strategy/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/context_strategy/context_strategy_interface.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/session/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/session/chat.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/session/red_teaming_progress.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/session/red_teaming_type.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/redteaming/session/session.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/results/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/results/result.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/results/result_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runners/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runners/runner.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runners/runner_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runners/runner_type.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runs/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runs/run.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runs/run_arguments.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runs/run_progress.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/runs/run_status.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/storage/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/storage/db_interface.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/storage/io_interface.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/storage/storage.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/utils/__init__.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/utils/find_feature.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/utils/import_modules.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/utils/log.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/utils/pagination.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/moonshot/src/utils/timeit.py +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/third-party/pygments-2.18.0-py3-none-any.whl +0 -0
- {aiverify_moonshot-0.7.4 → aiverify_moonshot-0.7.6}/third-party/text_unidecode-1.3-py2.py3-none-any.whl +0 -0
|
@@ -22,6 +22,11 @@ on:
|
|
|
22
22
|
required: true
|
|
23
23
|
default: 'main'
|
|
24
24
|
type: string
|
|
25
|
+
run-ui-test-with-wip-tag-only:
|
|
26
|
+
description: 'Only run UI Test and with @wip tag (true/false)'
|
|
27
|
+
required: true
|
|
28
|
+
default: 'false'
|
|
29
|
+
type: string
|
|
25
30
|
|
|
26
31
|
# Allow one concurrent deployment
|
|
27
32
|
concurrency:
|
|
@@ -29,13 +34,29 @@ concurrency:
|
|
|
29
34
|
cancel-in-progress: true
|
|
30
35
|
|
|
31
36
|
jobs:
|
|
32
|
-
|
|
37
|
+
ui-test-endpoint:
|
|
33
38
|
|
|
39
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
34
40
|
runs-on: ubuntu-latest
|
|
35
41
|
timeout-minutes: 300
|
|
36
42
|
|
|
37
43
|
steps:
|
|
38
44
|
|
|
45
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
46
|
+
- name: Free Disk Space (Ubuntu)
|
|
47
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
48
|
+
with:
|
|
49
|
+
# Required for Python
|
|
50
|
+
tool-cache: false
|
|
51
|
+
|
|
52
|
+
# Remove tools
|
|
53
|
+
android: true
|
|
54
|
+
dotnet: true
|
|
55
|
+
haskell: true
|
|
56
|
+
large-packages: true
|
|
57
|
+
docker-images: true
|
|
58
|
+
swap-storage: true
|
|
59
|
+
|
|
39
60
|
- name: Checkout Moonshot (Workflow Dispatch)
|
|
40
61
|
if: github.event_name == 'workflow_dispatch'
|
|
41
62
|
uses: actions/checkout@v4
|
|
@@ -92,7 +113,7 @@ jobs:
|
|
|
92
113
|
npm install
|
|
93
114
|
npm run build
|
|
94
115
|
cd ../
|
|
95
|
-
nohup python -m moonshot web &
|
|
116
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
96
117
|
|
|
97
118
|
- name: Checkout Integration Test
|
|
98
119
|
uses: actions/checkout@v4
|
|
@@ -121,8 +142,8 @@ jobs:
|
|
|
121
142
|
npx playwright install
|
|
122
143
|
npx playwright install-deps
|
|
123
144
|
npm install dotenv --save
|
|
124
|
-
|
|
125
|
-
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/endpoint.spec.ts
|
|
145
|
+
echo "Running UI Endpoint Test Cases"
|
|
146
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/endpoint.spec.ts --grep-invert "@wip|@flaky"
|
|
126
147
|
|
|
127
148
|
- name: Print Environment Variables
|
|
128
149
|
run: env
|
|
@@ -134,33 +155,40 @@ jobs:
|
|
|
134
155
|
name: playwright-trace-integration-ui-test-endpoint-${{ github.run_id }}
|
|
135
156
|
path: |
|
|
136
157
|
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
158
|
+
|
|
159
|
+
- name: Upload Moonshot logs
|
|
160
|
+
if: always()
|
|
161
|
+
uses: actions/upload-artifact@v4
|
|
162
|
+
with:
|
|
163
|
+
name: Moonshot-logs-integration-ui-test-endpoint-${{ github.run_id }}
|
|
164
|
+
path: |
|
|
165
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
137
166
|
|
|
138
|
-
- name: TestRail upload results
|
|
139
|
-
env:
|
|
140
|
-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
|
|
141
|
-
TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
|
|
142
|
-
run: |
|
|
143
|
-
cd moonshot-integration-testing/ui-integration-testing
|
|
144
|
-
pip install trcli
|
|
145
|
-
trcli -y \
|
|
146
|
-
-h https://imdabtg.testrail.io/ \
|
|
147
|
-
--project "Moonshot" \
|
|
148
|
-
-u $TESTRAIL_USERNAME \
|
|
149
|
-
-p $TESTRAIL_PASSWORD \
|
|
150
|
-
parse_junit \
|
|
151
|
-
--title "Moonshot" \
|
|
152
|
-
--result-fields "os:Ubuntu 22.04" \
|
|
153
|
-
--milestone-id "5" \
|
|
154
|
-
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
|
|
155
|
-
-f "./test-results/junit-report.xml"
|
|
156
167
|
##########################################################################################################################################################################
|
|
157
|
-
integration-ui-test-homepage:
|
|
158
168
|
|
|
169
|
+
ui-test-homepage:
|
|
170
|
+
|
|
171
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
159
172
|
runs-on: ubuntu-latest
|
|
160
173
|
timeout-minutes: 300
|
|
161
174
|
|
|
162
175
|
steps:
|
|
163
176
|
|
|
177
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
178
|
+
- name: Free Disk Space (Ubuntu)
|
|
179
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
180
|
+
with:
|
|
181
|
+
# Required for Python
|
|
182
|
+
tool-cache: false
|
|
183
|
+
|
|
184
|
+
# Remove tools
|
|
185
|
+
android: true
|
|
186
|
+
dotnet: true
|
|
187
|
+
haskell: true
|
|
188
|
+
large-packages: true
|
|
189
|
+
docker-images: true
|
|
190
|
+
swap-storage: true
|
|
191
|
+
|
|
164
192
|
- name: Checkout Moonshot (Workflow Dispatch)
|
|
165
193
|
if: github.event_name == 'workflow_dispatch'
|
|
166
194
|
uses: actions/checkout@v4
|
|
@@ -217,7 +245,7 @@ jobs:
|
|
|
217
245
|
npm install
|
|
218
246
|
npm run build
|
|
219
247
|
cd ../
|
|
220
|
-
nohup python -m moonshot web &
|
|
248
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
221
249
|
|
|
222
250
|
- name: Checkout Integration Test
|
|
223
251
|
uses: actions/checkout@v4
|
|
@@ -246,10 +274,11 @@ jobs:
|
|
|
246
274
|
npx playwright install
|
|
247
275
|
npx playwright install-deps
|
|
248
276
|
npm install dotenv --save
|
|
249
|
-
|
|
250
|
-
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/homepage.spec.ts
|
|
277
|
+
echo "Running Homepage Test Cases"
|
|
278
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/homepage.spec.ts --grep-invert "@wip|@flaky"
|
|
251
279
|
|
|
252
280
|
- name: Print Environment Variables
|
|
281
|
+
if: always()
|
|
253
282
|
run: env
|
|
254
283
|
|
|
255
284
|
- name: Upload Playwright Traces
|
|
@@ -259,33 +288,40 @@ jobs:
|
|
|
259
288
|
name: playwright-trace-integration-ui-test-homepage-${{ github.run_id }}
|
|
260
289
|
path: |
|
|
261
290
|
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
291
|
+
|
|
292
|
+
- name: Upload Moonshot logs
|
|
293
|
+
if: always()
|
|
294
|
+
uses: actions/upload-artifact@v4
|
|
295
|
+
with:
|
|
296
|
+
name: Moonshot-logs-integration-ui-test-homepage-${{ github.run_id }}
|
|
297
|
+
path: |
|
|
298
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
262
299
|
|
|
263
|
-
- name: TestRail upload results
|
|
264
|
-
env:
|
|
265
|
-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
|
|
266
|
-
TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
|
|
267
|
-
run: |
|
|
268
|
-
cd moonshot-integration-testing/ui-integration-testing
|
|
269
|
-
pip install trcli
|
|
270
|
-
trcli -y \
|
|
271
|
-
-h https://imdabtg.testrail.io/ \
|
|
272
|
-
--project "Moonshot" \
|
|
273
|
-
-u $TESTRAIL_USERNAME \
|
|
274
|
-
-p $TESTRAIL_PASSWORD \
|
|
275
|
-
parse_junit \
|
|
276
|
-
--title "Moonshot" \
|
|
277
|
-
--result-fields "os:Ubuntu 22.04" \
|
|
278
|
-
--milestone-id "5" \
|
|
279
|
-
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
|
|
280
|
-
-f "./test-results/junit-report.xml"
|
|
281
300
|
##########################################################################################################################################################################
|
|
282
|
-
integration-ui-test-benchmarking:
|
|
283
301
|
|
|
302
|
+
ui-test-benchmarking:
|
|
303
|
+
|
|
304
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
284
305
|
runs-on: ubuntu-latest
|
|
285
306
|
timeout-minutes: 300
|
|
286
307
|
|
|
287
308
|
steps:
|
|
288
309
|
|
|
310
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
311
|
+
- name: Free Disk Space (Ubuntu)
|
|
312
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
313
|
+
with:
|
|
314
|
+
# Required for Python
|
|
315
|
+
tool-cache: false
|
|
316
|
+
|
|
317
|
+
# Remove tools
|
|
318
|
+
android: true
|
|
319
|
+
dotnet: true
|
|
320
|
+
haskell: true
|
|
321
|
+
large-packages: true
|
|
322
|
+
docker-images: true
|
|
323
|
+
swap-storage: true
|
|
324
|
+
|
|
289
325
|
- name: Checkout Moonshot (Workflow Dispatch)
|
|
290
326
|
if: github.event_name == 'workflow_dispatch'
|
|
291
327
|
uses: actions/checkout@v4
|
|
@@ -354,7 +390,7 @@ jobs:
|
|
|
354
390
|
npm install
|
|
355
391
|
npm run build
|
|
356
392
|
cd ../
|
|
357
|
-
nohup python -m moonshot web &
|
|
393
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
358
394
|
|
|
359
395
|
- name: Checkout Integration Test
|
|
360
396
|
uses: actions/checkout@v4
|
|
@@ -384,9 +420,10 @@ jobs:
|
|
|
384
420
|
npx playwright install-deps
|
|
385
421
|
npm install dotenv --save
|
|
386
422
|
echo "Running Benchmarking UI Test Cases"
|
|
387
|
-
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/benchmarking.spec.ts
|
|
423
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/benchmarking.spec.ts --grep-invert "@wip|@flaky"
|
|
388
424
|
|
|
389
425
|
- name: Print Environment Variables
|
|
426
|
+
if: always()
|
|
390
427
|
run: env
|
|
391
428
|
|
|
392
429
|
- name: Upload Playwright Traces
|
|
@@ -396,34 +433,185 @@ jobs:
|
|
|
396
433
|
name: playwright-trace-integration-ui-test-benchmarking-${{ github.run_id }}
|
|
397
434
|
path: |
|
|
398
435
|
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
399
|
-
|
|
400
|
-
- name:
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
436
|
+
|
|
437
|
+
- name: Upload Moonshot logs
|
|
438
|
+
if: always()
|
|
439
|
+
uses: actions/upload-artifact@v4
|
|
440
|
+
with:
|
|
441
|
+
name: Moonshot-logs-integration-ui-test-benchmarking-${{ github.run_id }}
|
|
442
|
+
path: |
|
|
443
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
444
|
+
|
|
445
|
+
##########################################################################################################################################################################
|
|
446
|
+
|
|
447
|
+
ui-test-benchmarking-imda-starter-kit:
|
|
448
|
+
|
|
449
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
450
|
+
runs-on: ubuntu-latest
|
|
451
|
+
timeout-minutes: 300
|
|
452
|
+
|
|
453
|
+
steps:
|
|
454
|
+
|
|
455
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
456
|
+
- name: Free Disk Space (Ubuntu)
|
|
457
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
458
|
+
with:
|
|
459
|
+
# Required for Python
|
|
460
|
+
tool-cache: false
|
|
461
|
+
|
|
462
|
+
# Remove tools
|
|
463
|
+
android: true
|
|
464
|
+
dotnet: true
|
|
465
|
+
haskell: true
|
|
466
|
+
large-packages: true
|
|
467
|
+
docker-images: true
|
|
468
|
+
swap-storage: true
|
|
469
|
+
|
|
470
|
+
- name: Checkout Moonshot (Workflow Dispatch)
|
|
471
|
+
if: github.event_name == 'workflow_dispatch'
|
|
472
|
+
uses: actions/checkout@v4
|
|
473
|
+
with:
|
|
474
|
+
repository: aiverify-foundation/moonshot
|
|
475
|
+
ref: ${{ inputs.moonshot_branch }}
|
|
476
|
+
|
|
477
|
+
- name: Setup Python 3.11
|
|
478
|
+
uses: actions/setup-python@v4
|
|
479
|
+
with:
|
|
480
|
+
python-version: '3.11'
|
|
481
|
+
|
|
482
|
+
- name: Setup Moonshot
|
|
483
|
+
run: |
|
|
484
|
+
python -m venv venv
|
|
485
|
+
source venv/bin/activate
|
|
486
|
+
pip install -r requirements.txt
|
|
487
|
+
touch .env
|
|
488
|
+
echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
|
|
489
|
+
|
|
490
|
+
- name: Checkout Moonshot Data (Workflow Dispatch)
|
|
491
|
+
if: github.event_name == 'workflow_dispatch'
|
|
492
|
+
uses: actions/checkout@v4
|
|
493
|
+
with:
|
|
494
|
+
repository: aiverify-foundation/moonshot-data
|
|
495
|
+
ref: ${{ inputs.moonshot_data_branch }}
|
|
496
|
+
path: moonshot-data
|
|
497
|
+
|
|
498
|
+
- name: Setup Moonshot Data
|
|
499
|
+
run: |
|
|
500
|
+
source venv/bin/activate
|
|
501
|
+
cd moonshot-data
|
|
502
|
+
pip install -r requirements.txt
|
|
503
|
+
|
|
504
|
+
- name: Checkout Moonshot UI (Workflow Dispatch)
|
|
505
|
+
if: github.event_name == 'workflow_dispatch'
|
|
506
|
+
uses: actions/checkout@v4
|
|
507
|
+
with:
|
|
508
|
+
repository: aiverify-foundation/moonshot-ui
|
|
509
|
+
ref: ${{ inputs.moonshot_ui_branch }}
|
|
510
|
+
path: moonshot-ui
|
|
511
|
+
|
|
512
|
+
# Download NLTK stopwords
|
|
513
|
+
- name: Download NLTK stopwords
|
|
514
|
+
run: |
|
|
515
|
+
source venv/bin/activate
|
|
516
|
+
pip install nltk
|
|
517
|
+
python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
|
|
518
|
+
|
|
519
|
+
- name: Setup Moonshot UI
|
|
520
|
+
env:
|
|
521
|
+
URI: ${{ secrets.URI }}
|
|
522
|
+
TOKEN: ${{ secrets.TOKEN }}
|
|
523
|
+
URI2: ${{ secrets.URI2 }}
|
|
524
|
+
TOKEN2: ${{ secrets.TOKEN2 }}
|
|
525
|
+
ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
|
|
526
|
+
TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
|
|
527
|
+
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
|
|
528
|
+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
529
|
+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
530
|
+
GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
|
|
531
|
+
H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
|
|
532
|
+
run: |
|
|
533
|
+
source venv/bin/activate
|
|
534
|
+
cd moonshot-ui
|
|
535
|
+
npm install
|
|
536
|
+
npm run build
|
|
537
|
+
cd ../
|
|
538
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
539
|
+
|
|
540
|
+
- name: Checkout Integration Test
|
|
541
|
+
uses: actions/checkout@v4
|
|
542
|
+
with:
|
|
543
|
+
repository: aiverify-foundation/moonshot-integration-testing
|
|
544
|
+
path: moonshot-integration-testing
|
|
545
|
+
|
|
546
|
+
- name: Run Integration UI Test
|
|
547
|
+
env:
|
|
548
|
+
URI: ${{ secrets.URI }}
|
|
549
|
+
TOKEN: ${{ secrets.TOKEN }}
|
|
550
|
+
URI2: ${{ secrets.URI2 }}
|
|
551
|
+
TOKEN2: ${{ secrets.TOKEN2 }}
|
|
552
|
+
ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
|
|
553
|
+
TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
|
|
554
|
+
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
|
|
555
|
+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
556
|
+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
557
|
+
GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
|
|
558
|
+
H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
|
|
559
|
+
id: integrationuitest
|
|
560
|
+
run: |
|
|
561
|
+
source venv/bin/activate
|
|
562
|
+
cd moonshot-integration-testing/ui-integration-testing
|
|
563
|
+
npm ci
|
|
564
|
+
npx playwright install
|
|
565
|
+
npx playwright install-deps
|
|
566
|
+
npm install dotenv --save
|
|
567
|
+
echo "Running Benchmarking UI Test Cases"
|
|
568
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/benchmarking.imda-starter-kit.spec.ts --grep-invert "@wip|@flaky"
|
|
569
|
+
|
|
570
|
+
- name: Print Environment Variables
|
|
571
|
+
if: always()
|
|
572
|
+
run: env
|
|
573
|
+
|
|
574
|
+
- name: Upload Playwright Traces
|
|
575
|
+
if: always()
|
|
576
|
+
uses: actions/upload-artifact@v4
|
|
577
|
+
with:
|
|
578
|
+
name: playwright-trace-integration-ui-test-benchmarking-imda-starter-kit-${{ github.run_id }}
|
|
579
|
+
path: |
|
|
580
|
+
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
581
|
+
|
|
582
|
+
- name: Upload Moonshot logs
|
|
583
|
+
if: always()
|
|
584
|
+
uses: actions/upload-artifact@v4
|
|
585
|
+
with:
|
|
586
|
+
name: Moonshot-logs-integration-ui-test-benchmarking-imda-starter-kit-${{ github.run_id }}
|
|
587
|
+
path: |
|
|
588
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
589
|
+
|
|
419
590
|
##########################################################################################################################################################################
|
|
420
|
-
integration-ui-test-red-teaming:
|
|
421
591
|
|
|
592
|
+
ui-test-red-teaming:
|
|
593
|
+
|
|
594
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
422
595
|
runs-on: ubuntu-latest
|
|
423
596
|
timeout-minutes: 300
|
|
424
597
|
|
|
425
598
|
steps:
|
|
426
599
|
|
|
600
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
601
|
+
- name: Free Disk Space (Ubuntu)
|
|
602
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
603
|
+
with:
|
|
604
|
+
# Required for Python
|
|
605
|
+
tool-cache: false
|
|
606
|
+
|
|
607
|
+
# Remove tools
|
|
608
|
+
android: true
|
|
609
|
+
dotnet: true
|
|
610
|
+
haskell: true
|
|
611
|
+
large-packages: true
|
|
612
|
+
docker-images: true
|
|
613
|
+
swap-storage: true
|
|
614
|
+
|
|
427
615
|
- name: Checkout Moonshot (Workflow Dispatch)
|
|
428
616
|
if: github.event_name == 'workflow_dispatch'
|
|
429
617
|
uses: actions/checkout@v4
|
|
@@ -492,7 +680,7 @@ jobs:
|
|
|
492
680
|
npm install
|
|
493
681
|
npm run build
|
|
494
682
|
cd ../
|
|
495
|
-
nohup python -m moonshot web &
|
|
683
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
496
684
|
|
|
497
685
|
- name: Checkout Integration Test
|
|
498
686
|
uses: actions/checkout@v4
|
|
@@ -521,10 +709,11 @@ jobs:
|
|
|
521
709
|
npx playwright install
|
|
522
710
|
npx playwright install-deps
|
|
523
711
|
npm install dotenv --save
|
|
524
|
-
|
|
525
|
-
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/red_teaming.spec.ts
|
|
712
|
+
echo "Running Red Teaming UI Test Cases"
|
|
713
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/red_teaming.spec.ts --grep-invert "@wip|@flaky"
|
|
526
714
|
|
|
527
715
|
- name: Print Environment Variables
|
|
716
|
+
if: always()
|
|
528
717
|
run: env
|
|
529
718
|
|
|
530
719
|
- name: Upload Playwright Traces
|
|
@@ -534,33 +723,40 @@ jobs:
|
|
|
534
723
|
name: playwright-trace-integration-ui-test-redteaming-${{ github.run_id }}
|
|
535
724
|
path: |
|
|
536
725
|
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
726
|
+
|
|
727
|
+
- name: Upload Moonshot logs
|
|
728
|
+
if: always()
|
|
729
|
+
uses: actions/upload-artifact@v4
|
|
730
|
+
with:
|
|
731
|
+
name: Moonshot-logs-integration-ui-test-redteaming-${{ github.run_id }}
|
|
732
|
+
path: |
|
|
733
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
537
734
|
|
|
538
|
-
- name: TestRail upload results
|
|
539
|
-
env:
|
|
540
|
-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
|
|
541
|
-
TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
|
|
542
|
-
run: |
|
|
543
|
-
cd moonshot-integration-testing/ui-integration-testing
|
|
544
|
-
pip install trcli
|
|
545
|
-
trcli -y \
|
|
546
|
-
-h https://imdabtg.testrail.io/ \
|
|
547
|
-
--project "Moonshot" \
|
|
548
|
-
-u $TESTRAIL_USERNAME \
|
|
549
|
-
-p $TESTRAIL_PASSWORD \
|
|
550
|
-
parse_junit \
|
|
551
|
-
--title "Moonshot" \
|
|
552
|
-
--result-fields "os:Ubuntu 22.04" \
|
|
553
|
-
--milestone-id "5" \
|
|
554
|
-
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
|
|
555
|
-
-f "./test-results/junit-report.xml"
|
|
556
735
|
##########################################################################################################################################################################
|
|
557
|
-
integration-ui-test-utils:
|
|
558
736
|
|
|
737
|
+
ui-test-utils:
|
|
738
|
+
|
|
739
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
559
740
|
runs-on: ubuntu-latest
|
|
560
741
|
timeout-minutes: 300
|
|
561
742
|
|
|
562
743
|
steps:
|
|
563
744
|
|
|
745
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
746
|
+
- name: Free Disk Space (Ubuntu)
|
|
747
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
748
|
+
with:
|
|
749
|
+
# Required for Python
|
|
750
|
+
tool-cache: false
|
|
751
|
+
|
|
752
|
+
# Remove tools
|
|
753
|
+
android: true
|
|
754
|
+
dotnet: true
|
|
755
|
+
haskell: true
|
|
756
|
+
large-packages: true
|
|
757
|
+
docker-images: true
|
|
758
|
+
swap-storage: true
|
|
759
|
+
|
|
564
760
|
- name: Checkout Moonshot (Workflow Dispatch)
|
|
565
761
|
if: github.event_name == 'workflow_dispatch'
|
|
566
762
|
uses: actions/checkout@v4
|
|
@@ -617,7 +813,7 @@ jobs:
|
|
|
617
813
|
npm install
|
|
618
814
|
npm run build
|
|
619
815
|
cd ../
|
|
620
|
-
nohup python -m moonshot web &
|
|
816
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
621
817
|
|
|
622
818
|
- name: Checkout Integration Test
|
|
623
819
|
uses: actions/checkout@v4
|
|
@@ -646,10 +842,11 @@ jobs:
|
|
|
646
842
|
npx playwright install
|
|
647
843
|
npx playwright install-deps
|
|
648
844
|
npm install dotenv --save
|
|
649
|
-
|
|
650
|
-
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/utils.spec.ts
|
|
845
|
+
echo "Running Homepage Test Cases"
|
|
846
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/utils.spec.ts --grep-invert "@wip|@flaky"
|
|
651
847
|
|
|
652
848
|
- name: Print Environment Variables
|
|
849
|
+
if: always()
|
|
653
850
|
run: env
|
|
654
851
|
|
|
655
852
|
- name: Upload Playwright Traces
|
|
@@ -659,33 +856,40 @@ jobs:
|
|
|
659
856
|
name: playwright-trace-integration-ui-test-utils-${{ github.run_id }}
|
|
660
857
|
path: |
|
|
661
858
|
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
859
|
+
|
|
860
|
+
- name: Upload Moonshot logs
|
|
861
|
+
if: always()
|
|
862
|
+
uses: actions/upload-artifact@v4
|
|
863
|
+
with:
|
|
864
|
+
name: Moonshot-logs-integration-ui-test-utils-${{ github.run_id }}
|
|
865
|
+
path: |
|
|
866
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
662
867
|
|
|
663
|
-
- name: TestRail upload results
|
|
664
|
-
env:
|
|
665
|
-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
|
|
666
|
-
TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
|
|
667
|
-
run: |
|
|
668
|
-
cd moonshot-integration-testing/ui-integration-testing
|
|
669
|
-
pip install trcli
|
|
670
|
-
trcli -y \
|
|
671
|
-
-h https://imdabtg.testrail.io/ \
|
|
672
|
-
--project "Moonshot" \
|
|
673
|
-
-u $TESTRAIL_USERNAME \
|
|
674
|
-
-p $TESTRAIL_PASSWORD \
|
|
675
|
-
parse_junit \
|
|
676
|
-
--title "Moonshot" \
|
|
677
|
-
--result-fields "os:Ubuntu 22.04" \
|
|
678
|
-
--milestone-id "5" \
|
|
679
|
-
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
|
|
680
|
-
-f "./test-results/junit-report.xml"
|
|
681
868
|
##########################################################################################################################################################################
|
|
682
|
-
integration-ui-test-history:
|
|
683
869
|
|
|
870
|
+
ui-test-history:
|
|
871
|
+
|
|
872
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
684
873
|
runs-on: ubuntu-latest
|
|
685
874
|
timeout-minutes: 300
|
|
686
875
|
|
|
687
876
|
steps:
|
|
688
877
|
|
|
878
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
879
|
+
- name: Free Disk Space (Ubuntu)
|
|
880
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
881
|
+
with:
|
|
882
|
+
# Required for Python
|
|
883
|
+
tool-cache: false
|
|
884
|
+
|
|
885
|
+
# Remove tools
|
|
886
|
+
android: true
|
|
887
|
+
dotnet: true
|
|
888
|
+
haskell: true
|
|
889
|
+
large-packages: true
|
|
890
|
+
docker-images: true
|
|
891
|
+
swap-storage: true
|
|
892
|
+
|
|
689
893
|
- name: Checkout Moonshot (Workflow Dispatch)
|
|
690
894
|
if: github.event_name == 'workflow_dispatch'
|
|
691
895
|
uses: actions/checkout@v4
|
|
@@ -742,7 +946,7 @@ jobs:
|
|
|
742
946
|
npm install
|
|
743
947
|
npm run build
|
|
744
948
|
cd ../
|
|
745
|
-
nohup python -m moonshot web &
|
|
949
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
746
950
|
|
|
747
951
|
- name: Checkout Integration Test
|
|
748
952
|
uses: actions/checkout@v4
|
|
@@ -771,10 +975,11 @@ jobs:
|
|
|
771
975
|
npx playwright install
|
|
772
976
|
npx playwright install-deps
|
|
773
977
|
npm install dotenv --save
|
|
774
|
-
|
|
775
|
-
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/history.spec.ts
|
|
978
|
+
echo "Running Homepage Test Cases"
|
|
979
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test tests/history.spec.ts --grep-invert "@wip|@flaky"
|
|
776
980
|
|
|
777
981
|
- name: Print Environment Variables
|
|
982
|
+
if: always()
|
|
778
983
|
run: env
|
|
779
984
|
|
|
780
985
|
- name: Upload Playwright Traces
|
|
@@ -784,32 +989,173 @@ jobs:
|
|
|
784
989
|
name: playwright-trace-integration-ui-test-history-${{ github.run_id }}
|
|
785
990
|
path: |
|
|
786
991
|
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
992
|
+
|
|
993
|
+
- name: Upload Moonshot logs
|
|
994
|
+
if: always()
|
|
995
|
+
uses: actions/upload-artifact@v4
|
|
996
|
+
with:
|
|
997
|
+
name: Moonshot-logs-integration-ui-test-history-${{ github.run_id }}
|
|
998
|
+
path: |
|
|
999
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
1000
|
+
|
|
1001
|
+
##########################################################################################################################################################################
|
|
1002
|
+
|
|
1003
|
+
ui-test-with-flaky-tag:
|
|
1004
|
+
|
|
1005
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
1006
|
+
runs-on: ubuntu-latest
|
|
1007
|
+
timeout-minutes: 300
|
|
1008
|
+
|
|
1009
|
+
steps:
|
|
1010
|
+
|
|
1011
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
1012
|
+
- name: Free Disk Space (Ubuntu)
|
|
1013
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
1014
|
+
with:
|
|
1015
|
+
# Required for Python
|
|
1016
|
+
tool-cache: false
|
|
1017
|
+
|
|
1018
|
+
# Remove tools
|
|
1019
|
+
android: true
|
|
1020
|
+
dotnet: true
|
|
1021
|
+
haskell: true
|
|
1022
|
+
large-packages: true
|
|
1023
|
+
docker-images: true
|
|
1024
|
+
swap-storage: true
|
|
1025
|
+
|
|
1026
|
+
- name: Checkout Moonshot (Workflow Dispatch)
|
|
1027
|
+
if: github.event_name == 'workflow_dispatch'
|
|
1028
|
+
uses: actions/checkout@v4
|
|
1029
|
+
with:
|
|
1030
|
+
repository: aiverify-foundation/moonshot
|
|
1031
|
+
ref: ${{ inputs.moonshot_branch }}
|
|
1032
|
+
|
|
1033
|
+
- name: Setup Python 3.11
|
|
1034
|
+
uses: actions/setup-python@v4
|
|
1035
|
+
with:
|
|
1036
|
+
python-version: '3.11'
|
|
1037
|
+
|
|
1038
|
+
- name: Setup Moonshot
|
|
1039
|
+
run: |
|
|
1040
|
+
python -m venv venv
|
|
1041
|
+
source venv/bin/activate
|
|
1042
|
+
pip install -r requirements.txt
|
|
1043
|
+
touch .env
|
|
1044
|
+
echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
|
|
1045
|
+
|
|
1046
|
+
- name: Checkout Moonshot Data (Workflow Dispatch)
|
|
1047
|
+
if: github.event_name == 'workflow_dispatch'
|
|
1048
|
+
uses: actions/checkout@v4
|
|
1049
|
+
with:
|
|
1050
|
+
repository: aiverify-foundation/moonshot-data
|
|
1051
|
+
ref: ${{ inputs.moonshot_data_branch }}
|
|
1052
|
+
path: moonshot-data
|
|
1053
|
+
|
|
1054
|
+
- name: Setup Moonshot Data
|
|
1055
|
+
run: |
|
|
1056
|
+
source venv/bin/activate
|
|
1057
|
+
cd moonshot-data
|
|
1058
|
+
pip install -r requirements.txt
|
|
1059
|
+
|
|
1060
|
+
- name: Checkout Moonshot UI (Workflow Dispatch)
|
|
1061
|
+
if: github.event_name == 'workflow_dispatch'
|
|
1062
|
+
uses: actions/checkout@v4
|
|
1063
|
+
with:
|
|
1064
|
+
repository: aiverify-foundation/moonshot-ui
|
|
1065
|
+
ref: ${{ inputs.moonshot_ui_branch }}
|
|
1066
|
+
path: moonshot-ui
|
|
1067
|
+
|
|
1068
|
+
# Download NLTK stopwords
|
|
1069
|
+
- name: Download NLTK stopwords
|
|
1070
|
+
run: |
|
|
1071
|
+
source venv/bin/activate
|
|
1072
|
+
pip install nltk
|
|
1073
|
+
python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
|
|
1074
|
+
|
|
1075
|
+
- name: Setup Moonshot UI
|
|
1076
|
+
run: |
|
|
1077
|
+
source venv/bin/activate
|
|
1078
|
+
cd moonshot-ui
|
|
1079
|
+
npm install
|
|
1080
|
+
npm run build
|
|
1081
|
+
cd ../
|
|
1082
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
1083
|
+
|
|
1084
|
+
- name: Checkout Integration Test
|
|
1085
|
+
uses: actions/checkout@v4
|
|
1086
|
+
with:
|
|
1087
|
+
repository: aiverify-foundation/moonshot-integration-testing
|
|
1088
|
+
path: moonshot-integration-testing
|
|
1089
|
+
|
|
1090
|
+
- name: Run Integration UI Test
|
|
1091
|
+
env:
|
|
1092
|
+
URI: ${{ secrets.URI }}
|
|
1093
|
+
TOKEN: ${{ secrets.TOKEN }}
|
|
1094
|
+
URI2: ${{ secrets.URI2 }}
|
|
1095
|
+
TOKEN2: ${{ secrets.TOKEN2 }}
|
|
1096
|
+
ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
|
|
1097
|
+
TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
|
|
1098
|
+
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
|
|
1099
|
+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
1100
|
+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
1101
|
+
GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
|
|
1102
|
+
H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
|
|
1103
|
+
id: integrationuitest
|
|
1104
|
+
run: |
|
|
1105
|
+
source venv/bin/activate
|
|
1106
|
+
cd moonshot-integration-testing/ui-integration-testing
|
|
1107
|
+
npm ci
|
|
1108
|
+
npx playwright install
|
|
1109
|
+
npx playwright install-deps
|
|
1110
|
+
npm install dotenv --save
|
|
1111
|
+
echo "Running flaky test Cases from all test cases"
|
|
1112
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test --grep "@flaky" --grep-invert "@wip"
|
|
1113
|
+
|
|
1114
|
+
- name: Print Environment Variables
|
|
1115
|
+
if: always()
|
|
1116
|
+
run: env
|
|
1117
|
+
|
|
1118
|
+
- name: Upload Playwright Traces
|
|
1119
|
+
if: always()
|
|
1120
|
+
uses: actions/upload-artifact@v4
|
|
1121
|
+
with:
|
|
1122
|
+
name: playwright-trace-integration-ui-test-with-flaky-tag-${{ github.run_id }}
|
|
1123
|
+
path: |
|
|
1124
|
+
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
1125
|
+
|
|
1126
|
+
- name: Upload Moonshot logs
|
|
1127
|
+
if: always()
|
|
1128
|
+
uses: actions/upload-artifact@v4
|
|
1129
|
+
with:
|
|
1130
|
+
name: Moonshot-logs-integration-ui-test-with-flaky-tag-${{ github.run_id }}
|
|
1131
|
+
path: |
|
|
1132
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
787
1133
|
|
|
788
|
-
- name: TestRail upload results
|
|
789
|
-
env:
|
|
790
|
-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
|
|
791
|
-
TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
|
|
792
|
-
run: |
|
|
793
|
-
cd moonshot-integration-testing/ui-integration-testing
|
|
794
|
-
pip install trcli
|
|
795
|
-
trcli -y \
|
|
796
|
-
-h https://imdabtg.testrail.io/ \
|
|
797
|
-
--project "Moonshot" \
|
|
798
|
-
-u $TESTRAIL_USERNAME \
|
|
799
|
-
-p $TESTRAIL_PASSWORD \
|
|
800
|
-
parse_junit \
|
|
801
|
-
--title "Moonshot" \
|
|
802
|
-
--result-fields "os:Ubuntu 22.04" \
|
|
803
|
-
--milestone-id "5" \
|
|
804
|
-
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
|
|
805
|
-
-f "./test-results/junit-report.xml"
|
|
806
1134
|
##########################################################################################################################################################################
|
|
807
|
-
integration-cli-test:
|
|
808
1135
|
|
|
1136
|
+
ui-test-with-wip-tag:
|
|
1137
|
+
|
|
1138
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'true' }}
|
|
809
1139
|
runs-on: ubuntu-latest
|
|
810
1140
|
timeout-minutes: 300
|
|
1141
|
+
|
|
811
1142
|
steps:
|
|
812
1143
|
|
|
1144
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
1145
|
+
- name: Free Disk Space (Ubuntu)
|
|
1146
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
1147
|
+
with:
|
|
1148
|
+
# Required for Python
|
|
1149
|
+
tool-cache: false
|
|
1150
|
+
|
|
1151
|
+
# Remove tools
|
|
1152
|
+
android: true
|
|
1153
|
+
dotnet: true
|
|
1154
|
+
haskell: true
|
|
1155
|
+
large-packages: true
|
|
1156
|
+
docker-images: true
|
|
1157
|
+
swap-storage: true
|
|
1158
|
+
|
|
813
1159
|
- name: Checkout Moonshot (Workflow Dispatch)
|
|
814
1160
|
if: github.event_name == 'workflow_dispatch'
|
|
815
1161
|
uses: actions/checkout@v4
|
|
@@ -866,7 +1212,140 @@ jobs:
|
|
|
866
1212
|
npm install
|
|
867
1213
|
npm run build
|
|
868
1214
|
cd ../
|
|
869
|
-
nohup python -m moonshot web &
|
|
1215
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
1216
|
+
|
|
1217
|
+
- name: Checkout Integration Test
|
|
1218
|
+
uses: actions/checkout@v4
|
|
1219
|
+
with:
|
|
1220
|
+
repository: aiverify-foundation/moonshot-integration-testing
|
|
1221
|
+
path: moonshot-integration-testing
|
|
1222
|
+
|
|
1223
|
+
- name: Run Integration UI Test
|
|
1224
|
+
env:
|
|
1225
|
+
URI: ${{ secrets.URI }}
|
|
1226
|
+
TOKEN: ${{ secrets.TOKEN }}
|
|
1227
|
+
URI2: ${{ secrets.URI2 }}
|
|
1228
|
+
TOKEN2: ${{ secrets.TOKEN2 }}
|
|
1229
|
+
ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
|
|
1230
|
+
TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
|
|
1231
|
+
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
|
|
1232
|
+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
1233
|
+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
1234
|
+
GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
|
|
1235
|
+
H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
|
|
1236
|
+
id: integrationuitest
|
|
1237
|
+
run: |
|
|
1238
|
+
source venv/bin/activate
|
|
1239
|
+
cd moonshot-integration-testing/ui-integration-testing
|
|
1240
|
+
npm ci
|
|
1241
|
+
npx playwright install
|
|
1242
|
+
npx playwright install-deps
|
|
1243
|
+
npm install dotenv --save
|
|
1244
|
+
echo "Running work-in-progress Test Cases"
|
|
1245
|
+
URI="$URI" TOKEN="$TOKEN" URI2="$URI2" TOKEN2="$TOKEN2" ADDITIONAL_PARAMETERS="$ADDITIONAL_PARAMETERS" TOGETHER_TOKEN="$TOGETHER_TOKEN" OPENAI_TOKEN="$OPENAI_TOKEN" AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" GOOGLE_TOKEN="$GOOGLE_TOKEN" H2OGPT_TOKEN="$H2OGPT_TOKEN" DEBUG=pw:api npx playwright test --grep "@wip"
|
|
1246
|
+
|
|
1247
|
+
- name: Print Environment Variables
|
|
1248
|
+
run: env
|
|
1249
|
+
|
|
1250
|
+
- name: Upload Playwright Traces
|
|
1251
|
+
if: always()
|
|
1252
|
+
uses: actions/upload-artifact@v4
|
|
1253
|
+
with:
|
|
1254
|
+
name: playwright-trace-integration-ui-test-with-wip-tag-only-${{ github.run_id }}
|
|
1255
|
+
path: |
|
|
1256
|
+
/home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
|
|
1257
|
+
|
|
1258
|
+
- name: Upload Moonshot logs
|
|
1259
|
+
if: always()
|
|
1260
|
+
uses: actions/upload-artifact@v4
|
|
1261
|
+
with:
|
|
1262
|
+
name: Moonshot-logs-integration-ui-test-with-wip-tag-${{ github.run_id }}
|
|
1263
|
+
path: |
|
|
1264
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
##########################################################################################################################################################################
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
cli-test:
|
|
1271
|
+
|
|
1272
|
+
if: ${{ inputs.run-ui-test-with-wip-tag-only == 'false' }}
|
|
1273
|
+
runs-on: ubuntu-latest
|
|
1274
|
+
timeout-minutes: 300
|
|
1275
|
+
steps:
|
|
1276
|
+
|
|
1277
|
+
# [WS-299] Remove pre-installed tools to free up space for installation of moonshot-data
|
|
1278
|
+
- name: Free Disk Space (Ubuntu)
|
|
1279
|
+
uses: jlumbroso/free-disk-space@v1.3.1
|
|
1280
|
+
with:
|
|
1281
|
+
# Required for Python
|
|
1282
|
+
tool-cache: false
|
|
1283
|
+
|
|
1284
|
+
# Remove tools
|
|
1285
|
+
android: true
|
|
1286
|
+
dotnet: true
|
|
1287
|
+
haskell: true
|
|
1288
|
+
large-packages: true
|
|
1289
|
+
docker-images: true
|
|
1290
|
+
swap-storage: true
|
|
1291
|
+
|
|
1292
|
+
- name: Checkout Moonshot (Workflow Dispatch)
|
|
1293
|
+
if: github.event_name == 'workflow_dispatch'
|
|
1294
|
+
uses: actions/checkout@v4
|
|
1295
|
+
with:
|
|
1296
|
+
repository: aiverify-foundation/moonshot
|
|
1297
|
+
ref: ${{ inputs.moonshot_branch }}
|
|
1298
|
+
|
|
1299
|
+
- name: Setup Python 3.11
|
|
1300
|
+
uses: actions/setup-python@v4
|
|
1301
|
+
with:
|
|
1302
|
+
python-version: '3.11'
|
|
1303
|
+
|
|
1304
|
+
- name: Setup Moonshot
|
|
1305
|
+
run: |
|
|
1306
|
+
python -m venv venv
|
|
1307
|
+
source venv/bin/activate
|
|
1308
|
+
pip install -r requirements.txt
|
|
1309
|
+
touch .env
|
|
1310
|
+
echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
|
|
1311
|
+
|
|
1312
|
+
- name: Checkout Moonshot Data (Workflow Dispatch)
|
|
1313
|
+
if: github.event_name == 'workflow_dispatch'
|
|
1314
|
+
uses: actions/checkout@v4
|
|
1315
|
+
with:
|
|
1316
|
+
repository: aiverify-foundation/moonshot-data
|
|
1317
|
+
ref: ${{ inputs.moonshot_data_branch }}
|
|
1318
|
+
path: moonshot-data
|
|
1319
|
+
|
|
1320
|
+
- name: Setup Moonshot Data
|
|
1321
|
+
run: |
|
|
1322
|
+
source venv/bin/activate
|
|
1323
|
+
cd moonshot-data
|
|
1324
|
+
pip install -r requirements.txt
|
|
1325
|
+
|
|
1326
|
+
- name: Checkout Moonshot UI (Workflow Dispatch)
|
|
1327
|
+
if: github.event_name == 'workflow_dispatch'
|
|
1328
|
+
uses: actions/checkout@v4
|
|
1329
|
+
with:
|
|
1330
|
+
repository: aiverify-foundation/moonshot-ui
|
|
1331
|
+
ref: ${{ inputs.moonshot_ui_branch }}
|
|
1332
|
+
path: moonshot-ui
|
|
1333
|
+
|
|
1334
|
+
# Download NLTK stopwords
|
|
1335
|
+
- name: Download NLTK stopwords
|
|
1336
|
+
run: |
|
|
1337
|
+
source venv/bin/activate
|
|
1338
|
+
pip install nltk
|
|
1339
|
+
python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
|
|
1340
|
+
|
|
1341
|
+
- name: Setup Moonshot UI
|
|
1342
|
+
run: |
|
|
1343
|
+
source venv/bin/activate
|
|
1344
|
+
cd moonshot-ui
|
|
1345
|
+
npm install
|
|
1346
|
+
npm run build
|
|
1347
|
+
cd ../
|
|
1348
|
+
nohup python -m moonshot web > moonshot.log 2>&1 &
|
|
870
1349
|
|
|
871
1350
|
- name: Checkout Integration Test
|
|
872
1351
|
uses: actions/checkout@v4
|
|
@@ -894,5 +1373,11 @@ jobs:
|
|
|
894
1373
|
pip install python-dotenv
|
|
895
1374
|
pip install pytest
|
|
896
1375
|
pytest
|
|
897
|
-
|
|
898
|
-
|
|
1376
|
+
|
|
1377
|
+
- name: Upload Moonshot logs
|
|
1378
|
+
if: always()
|
|
1379
|
+
uses: actions/upload-artifact@v4
|
|
1380
|
+
with:
|
|
1381
|
+
name: Moonshot-logs-integration-cli-test-${{ github.run_id }}
|
|
1382
|
+
path: |
|
|
1383
|
+
/home/runner/work/moonshot/moonshot/moonshot.log
|