aiverify-moonshot 0.6.2__tar.gz → 0.6.3__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.
Files changed (212) hide show
  1. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/integration-test.yaml +328 -4
  2. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/pypi-deployment.yaml +3 -3
  3. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/test-pypi-deployment.yaml +2 -2
  4. aiverify_moonshot-0.6.3/NOTICES.md +1187 -0
  5. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/PKG-INFO +2 -2
  6. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/README.md +1 -1
  7. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/__main__.py +1 -3
  8. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/redteam/session.py +8 -8
  9. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/app.py +1 -1
  10. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/benchmark_result.py +1 -0
  11. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/bookmark.py +5 -2
  12. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/context_strategy.py +3 -1
  13. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/prompt_template.py +1 -0
  14. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/cookbook_create_dto.py +4 -2
  15. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/prompt_response_model.py +0 -1
  16. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/recipe_create_dto.py +2 -1
  17. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/context_strategy_service.py +1 -4
  18. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/cookbook_service.py +0 -2
  19. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/session_service.py +5 -5
  20. aiverify_moonshot-0.6.3/moonshot/integrations/web_api/services/utils/exceptions_handler.py +78 -0
  21. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/utils/results_formatter.py +25 -16
  22. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/cookbooks/cookbook_arguments.py +1 -1
  23. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/attack/attack_module.py +9 -3
  24. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/pyproject.toml +3 -2
  25. aiverify_moonshot-0.6.3/requirements.txt +61 -0
  26. aiverify_moonshot-0.6.2/NOTICES.md +0 -2506
  27. aiverify_moonshot-0.6.2/moonshot/integrations/web_api/services/utils/exceptions_handler.py +0 -41
  28. aiverify_moonshot-0.6.2/requirements.txt +0 -60
  29. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.coveragerc +0 -0
  30. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.flake8 +0 -0
  31. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/developing-workflows.md +0 -0
  32. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/pull_request_template.md +0 -0
  33. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/scripts/create_backup.sh +0 -0
  34. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/scripts/install_ms_service.sh +0 -0
  35. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/scripts/moonshot_env +0 -0
  36. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/scripts/moonshot_test_env +0 -0
  37. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/scripts/moonshot_ui_env +0 -0
  38. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/scripts/run_smoke_test.sh +0 -0
  39. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/scripts/start_ms_service.sh +0 -0
  40. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/docs-update.yaml +0 -0
  41. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/gh-event-notification.yaml +0 -0
  42. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/notices-file-gen.yaml +0 -0
  43. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/pre-build-checks.yaml +0 -0
  44. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/sast-codeql.yaml +0 -0
  45. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/sca-scan.yaml +0 -0
  46. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/sit-build.yaml +0 -0
  47. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/smoke-test-cli.yaml +0 -0
  48. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/smoke-test.yaml +0 -0
  49. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.github/workflows/uat-build.yaml +0 -0
  50. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.gitignore +0 -0
  51. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/.pre-commit-config.yaml +0 -0
  52. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/AUTHORS.md +0 -0
  53. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/LICENSE.md +0 -0
  54. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/__init__.py +0 -0
  55. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/__main__.py +0 -0
  56. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/api.py +0 -0
  57. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/__init__.py +0 -0
  58. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/__init__.py +0 -0
  59. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/active_session_cfg.py +0 -0
  60. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/__init__.py +0 -0
  61. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/benchmark.py +0 -0
  62. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/cookbook.py +0 -0
  63. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/datasets.py +0 -0
  64. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/metrics.py +0 -0
  65. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/recipe.py +0 -0
  66. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/result.py +0 -0
  67. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/run.py +0 -0
  68. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/benchmark/runner.py +0 -0
  69. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/cli.py +0 -0
  70. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/cli_errors.py +0 -0
  71. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/common/__init__.py +0 -0
  72. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/common/common.py +0 -0
  73. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/common/connectors.py +0 -0
  74. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/common/dataset.py +0 -0
  75. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/common/display_helper.py +0 -0
  76. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/common/prompt_template.py +0 -0
  77. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/initialisation/__init__.py +0 -0
  78. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/initialisation/initialisation.py +0 -0
  79. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/redteam/__init__.py +0 -0
  80. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/redteam/attack_module.py +0 -0
  81. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/redteam/context_strategy.py +0 -0
  82. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/redteam/prompt_template.py +0 -0
  83. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/redteam/redteam.py +0 -0
  84. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/cli/utils/process_data.py +0 -0
  85. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/.env.dev +0 -0
  86. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/__init__.py +0 -0
  87. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/__main__.py +0 -0
  88. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/container.py +0 -0
  89. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/log/.gitkeep +0 -0
  90. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/logging_conf.py +0 -0
  91. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/__init__.py +0 -0
  92. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/attack_modules.py +0 -0
  93. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/benchmark.py +0 -0
  94. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/cookbook.py +0 -0
  95. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/dataset.py +0 -0
  96. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/endpoint.py +0 -0
  97. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/metric.py +0 -0
  98. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/recipe.py +0 -0
  99. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/redteam.py +0 -0
  100. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/routes/runner.py +0 -0
  101. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/__init__.py +0 -0
  102. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/benchmark_runner_dto.py +0 -0
  103. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/bookmark_create_dto.py +0 -0
  104. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/cookbook_response_model.py +0 -0
  105. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/dataset_create_dto.py +0 -0
  106. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/dataset_response_dto.py +0 -0
  107. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/endpoint_create_dto.py +0 -0
  108. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/endpoint_response_model.py +0 -0
  109. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/prompt_template_response_model.py +0 -0
  110. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/recipe_response_model.py +0 -0
  111. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/session_create_dto.py +0 -0
  112. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/session_prompt_dto.py +0 -0
  113. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/schemas/session_response_model.py +0 -0
  114. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/__init__.py +0 -0
  115. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/attack_module_service.py +0 -0
  116. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/auto_red_team_test_manager.py +0 -0
  117. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/auto_red_team_test_state.py +0 -0
  118. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/base_service.py +0 -0
  119. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/benchmark_result_service.py +0 -0
  120. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/benchmark_test_manager.py +0 -0
  121. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/benchmark_test_state.py +0 -0
  122. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/benchmarking_service.py +0 -0
  123. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/bookmark_service.py +0 -0
  124. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/dataset_service.py +0 -0
  125. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/endpoint_service.py +0 -0
  126. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/metric_service.py +0 -0
  127. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/prompt_template_service.py +0 -0
  128. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/recipe_service.py +0 -0
  129. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/runner_service.py +0 -0
  130. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/services/utils/file_manager.py +0 -0
  131. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/status_updater/interface/benchmark_progress_callback.py +3 -3
  132. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/status_updater/interface/redteam_progress_callback.py +3 -3
  133. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/status_updater/moonshot_ui_webhook.py +0 -0
  134. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/temp/.gitkeep +0 -0
  135. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/integrations/web_api/types/types.py +0 -0
  136. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/__init__.py +0 -0
  137. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/__init__.py +0 -0
  138. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_bookmark.py +0 -0
  139. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_connector.py +0 -0
  140. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_connector_endpoint.py +0 -0
  141. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_context_strategy.py +0 -0
  142. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_cookbook.py +0 -0
  143. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_dataset.py +0 -0
  144. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_environment_variables.py +0 -0
  145. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_metrics.py +0 -0
  146. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_prompt_template.py +0 -0
  147. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_recipe.py +0 -0
  148. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_red_teaming.py +0 -0
  149. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_result.py +0 -0
  150. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_run.py +0 -0
  151. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_runner.py +0 -0
  152. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/api/api_session.py +0 -0
  153. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/bookmark/bookmark.py +0 -0
  154. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/bookmark/bookmark_arguments.py +0 -0
  155. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/configs/__init__.py +0 -0
  156. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/configs/env_variables.py +0 -0
  157. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/connectors/__init__.py +0 -0
  158. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/connectors/connector.py +0 -0
  159. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/connectors/connector_prompt_arguments.py +0 -0
  160. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/connectors/connector_response.py +0 -0
  161. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/connectors_endpoints/__init__.py +0 -0
  162. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/connectors_endpoints/connector_endpoint.py +0 -0
  163. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/connectors_endpoints/connector_endpoint_arguments.py +0 -0
  164. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/cookbooks/__init__.py +0 -0
  165. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/cookbooks/cookbook.py +0 -0
  166. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/datasets/__init__.py +0 -0
  167. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/datasets/dataset.py +0 -0
  168. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/datasets/dataset_arguments.py +0 -0
  169. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/messages_constants.py +0 -0
  170. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/metrics/__init__.py +0 -0
  171. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/metrics/metric.py +0 -0
  172. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/metrics/metric_interface.py +0 -0
  173. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/prompt_templates/__init__.py +0 -0
  174. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/prompt_templates/prompt_template.py +0 -0
  175. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/recipes/__init__.py +0 -0
  176. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/recipes/recipe.py +0 -0
  177. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/recipes/recipe_arguments.py +0 -0
  178. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/__init__.py +0 -0
  179. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/attack/__init__.py +0 -0
  180. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/attack/attack_module_arguments.py +0 -0
  181. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/attack/context_strategy.py +0 -0
  182. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/context_strategy/__init__.py +0 -0
  183. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/context_strategy/context_strategy_interface.py +0 -0
  184. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/session/__init__.py +0 -0
  185. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/session/chat.py +0 -0
  186. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/session/red_teaming_progress.py +0 -0
  187. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/session/red_teaming_type.py +0 -0
  188. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/redteaming/session/session.py +0 -0
  189. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/results/__init__.py +0 -0
  190. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/results/result.py +0 -0
  191. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/results/result_arguments.py +0 -0
  192. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runners/__init__.py +0 -0
  193. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runners/runner.py +0 -0
  194. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runners/runner_arguments.py +0 -0
  195. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runners/runner_type.py +0 -0
  196. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runs/__init__.py +0 -0
  197. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runs/run.py +0 -0
  198. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runs/run_arguments.py +0 -0
  199. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runs/run_progress.py +0 -0
  200. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/runs/run_status.py +0 -0
  201. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/storage/__init__.py +0 -0
  202. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/storage/db_interface.py +0 -0
  203. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/storage/io_interface.py +0 -0
  204. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/storage/storage.py +0 -0
  205. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/utils/__init__.py +0 -0
  206. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/utils/find_feature.py +0 -0
  207. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/utils/import_modules.py +0 -0
  208. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/utils/log.py +0 -0
  209. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/utils/pagination.py +0 -0
  210. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/moonshot/src/utils/timeit.py +0 -0
  211. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/third-party/pygments-2.18.0-py3-none-any.whl +0 -0
  212. {aiverify_moonshot-0.6.2 → aiverify_moonshot-0.6.3}/third-party/text_unidecode-1.3-py2.py3-none-any.whl +0 -0
@@ -139,6 +139,7 @@ jobs:
139
139
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
140
140
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
141
141
  GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
142
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
142
143
  id: integrationuitest
143
144
  run: |
144
145
  source venv/bin/activate
@@ -148,7 +149,7 @@ jobs:
148
149
  npx playwright install-deps
149
150
  npm install dotenv --save
150
151
  # echo "Running UI Endpoint Test Cases"
151
- 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" DEBUG=pw:api npx playwright test tests/endpoint.spec.ts
152
+ 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
152
153
 
153
154
  - name: Print Environment Variables
154
155
  run: env
@@ -286,6 +287,7 @@ jobs:
286
287
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
287
288
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
288
289
  GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
290
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
289
291
  id: integrationuitest
290
292
  run: |
291
293
  source venv/bin/activate
@@ -295,7 +297,7 @@ jobs:
295
297
  npx playwright install-deps
296
298
  npm install dotenv --save
297
299
  # echo "Running Homepage Test Cases"
298
- 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" DEBUG=pw:api npx playwright test tests/homepage.spec.ts
300
+ 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
299
301
 
300
302
  - name: Print Environment Variables
301
303
  run: env
@@ -407,6 +409,18 @@ jobs:
407
409
  python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
408
410
 
409
411
  - name: Setup Moonshot UI
412
+ env:
413
+ URI: ${{ secrets.URI }}
414
+ TOKEN: ${{ secrets.TOKEN }}
415
+ URI2: ${{ secrets.URI2 }}
416
+ TOKEN2: ${{ secrets.TOKEN2 }}
417
+ ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
418
+ TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
419
+ OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
420
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
421
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
422
+ GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
423
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
410
424
  run: |
411
425
  source venv/bin/activate
412
426
  cd moonshot-ui
@@ -433,6 +447,7 @@ jobs:
433
447
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
434
448
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
435
449
  GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
450
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
436
451
  id: integrationuitest
437
452
  run: |
438
453
  source venv/bin/activate
@@ -442,7 +457,7 @@ jobs:
442
457
  npx playwright install-deps
443
458
  npm install dotenv --save
444
459
  echo "Running Benchmarking UI Test Cases"
445
- 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" DEBUG=pw:api npx playwright test tests/benchmarking.spec.ts
460
+ 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
446
461
 
447
462
  - name: Print Environment Variables
448
463
  run: env
@@ -555,6 +570,18 @@ jobs:
555
570
  python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
556
571
 
557
572
  - name: Setup Moonshot UI
573
+ env:
574
+ URI: ${{ secrets.URI }}
575
+ TOKEN: ${{ secrets.TOKEN }}
576
+ URI2: ${{ secrets.URI2 }}
577
+ TOKEN2: ${{ secrets.TOKEN2 }}
578
+ ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
579
+ TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
580
+ OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
581
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
582
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
583
+ GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
584
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
558
585
  run: |
559
586
  source venv/bin/activate
560
587
  cd moonshot-ui
@@ -581,6 +608,7 @@ jobs:
581
608
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
582
609
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
583
610
  GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
611
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
584
612
  id: integrationuitest
585
613
  run: |
586
614
  source venv/bin/activate
@@ -590,7 +618,7 @@ jobs:
590
618
  npx playwright install-deps
591
619
  npm install dotenv --save
592
620
  # echo "Running Red Teaming UI Test Cases"
593
- 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" DEBUG=pw:api npx playwright test tests/red_teaming.spec.ts
621
+ 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
594
622
 
595
623
  - name: Print Environment Variables
596
624
  run: env
@@ -622,6 +650,302 @@ jobs:
622
650
  --run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
623
651
  -f "./test-results/junit-report.xml"
624
652
  ##########################################################################################################################################################################
653
+ integration-ui-test-utils:
654
+
655
+ runs-on: ubuntu-latest
656
+ timeout-minutes: 300
657
+
658
+ steps:
659
+
660
+ - name: Checkout Moonshot (Pull Request Review)
661
+ if: github.event_name == 'pull_request_review'
662
+ uses: actions/checkout@v4
663
+ with:
664
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
665
+ ref: ${{ github.event.pull_request.head.ref }}
666
+
667
+ - name: Checkout Moonshot (Workflow Dispatch)
668
+ if: github.event_name == 'workflow_dispatch'
669
+ uses: actions/checkout@v4
670
+ with:
671
+ repository: aiverify-foundation/moonshot
672
+ ref: ${{ inputs.moonshot_branch }}
673
+
674
+ - name: Setup Python 3.11
675
+ uses: actions/setup-python@v4
676
+ with:
677
+ python-version: '3.11'
678
+
679
+ - name: Setup Moonshot
680
+ run: |
681
+ python -m venv venv
682
+ source venv/bin/activate
683
+ pip install -r requirements.txt
684
+ touch .env
685
+ echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
686
+
687
+ - name: Checkout Moonshot Data (Pull Request Review)
688
+ if: github.event_name == 'pull_request_review'
689
+ uses: actions/checkout@v4
690
+ with:
691
+ repository: aiverify-foundation/moonshot-data
692
+ ref: ${{ vars.MOONSHOT_DATA_BRANCH }}
693
+ path: moonshot-data
694
+
695
+ - name: Checkout Moonshot Data (Workflow Dispatch)
696
+ if: github.event_name == 'workflow_dispatch'
697
+ uses: actions/checkout@v4
698
+ with:
699
+ repository: aiverify-foundation/moonshot-data
700
+ ref: ${{ inputs.moonshot_data_branch }}
701
+ path: moonshot-data
702
+
703
+ - name: Setup Moonshot Data
704
+ run: |
705
+ source venv/bin/activate
706
+ cd moonshot-data
707
+ pip install -r requirements.txt
708
+
709
+ - name: Checkout Moonshot UI (Pull Request Review)
710
+ if: github.event_name == 'pull_request_review'
711
+ uses: actions/checkout@v4
712
+ with:
713
+ repository: aiverify-foundation/moonshot-ui
714
+ ref: ${{ vars.MOONSHOT_UI_BRANCH }}
715
+ path: moonshot-ui
716
+
717
+ - name: Checkout Moonshot UI (Workflow Dispatch)
718
+ if: github.event_name == 'workflow_dispatch'
719
+ uses: actions/checkout@v4
720
+ with:
721
+ repository: aiverify-foundation/moonshot-ui
722
+ ref: ${{ inputs.moonshot_ui_branch }}
723
+ path: moonshot-ui
724
+
725
+ # Download NLTK stopwords
726
+ - name: Download NLTK stopwords
727
+ run: |
728
+ source venv/bin/activate
729
+ pip install nltk
730
+ python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
731
+
732
+ - name: Setup Moonshot UI
733
+ run: |
734
+ source venv/bin/activate
735
+ cd moonshot-ui
736
+ npm install
737
+ npm run build
738
+ cd ../
739
+ nohup python -m moonshot web &
740
+
741
+ - name: Checkout Integration Test
742
+ uses: actions/checkout@v4
743
+ with:
744
+ repository: aiverify-foundation/moonshot-integration-testing
745
+ path: moonshot-integration-testing
746
+
747
+ - name: Run Integration UI Test
748
+ env:
749
+ URI: ${{ secrets.URI }}
750
+ TOKEN: ${{ secrets.TOKEN }}
751
+ URI2: ${{ secrets.URI2 }}
752
+ TOKEN2: ${{ secrets.TOKEN2 }}
753
+ ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
754
+ TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
755
+ OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
756
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
757
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
758
+ GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
759
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
760
+ id: integrationuitest
761
+ run: |
762
+ source venv/bin/activate
763
+ cd moonshot-integration-testing/ui-integration-testing
764
+ npm ci
765
+ npx playwright install
766
+ npx playwright install-deps
767
+ npm install dotenv --save
768
+ # echo "Running Homepage Test Cases"
769
+ 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
770
+
771
+ - name: Print Environment Variables
772
+ run: env
773
+
774
+ - name: Upload Playwright Traces
775
+ if: always()
776
+ uses: actions/upload-artifact@v4
777
+ with:
778
+ name: playwright-trace-integration-ui-test-utils-${{ github.run_id }}
779
+ path: |
780
+ /home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
781
+
782
+ - name: TestRail upload results
783
+ env:
784
+ TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
785
+ TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
786
+ run: |
787
+ cd moonshot-integration-testing/ui-integration-testing
788
+ pip install trcli
789
+ trcli -y \
790
+ -h https://imdabtg.testrail.io/ \
791
+ --project "Moonshot" \
792
+ -u $TESTRAIL_USERNAME \
793
+ -p $TESTRAIL_PASSWORD \
794
+ parse_junit \
795
+ --title "Moonshot" \
796
+ --result-fields "os:Ubuntu 22.04" \
797
+ --milestone-id "5" \
798
+ --run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
799
+ -f "./test-results/junit-report.xml"
800
+ ##########################################################################################################################################################################
801
+ integration-ui-test-history:
802
+
803
+ runs-on: ubuntu-latest
804
+ timeout-minutes: 300
805
+
806
+ steps:
807
+
808
+ - name: Checkout Moonshot (Pull Request Review)
809
+ if: github.event_name == 'pull_request_review'
810
+ uses: actions/checkout@v4
811
+ with:
812
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
813
+ ref: ${{ github.event.pull_request.head.ref }}
814
+
815
+ - name: Checkout Moonshot (Workflow Dispatch)
816
+ if: github.event_name == 'workflow_dispatch'
817
+ uses: actions/checkout@v4
818
+ with:
819
+ repository: aiverify-foundation/moonshot
820
+ ref: ${{ inputs.moonshot_branch }}
821
+
822
+ - name: Setup Python 3.11
823
+ uses: actions/setup-python@v4
824
+ with:
825
+ python-version: '3.11'
826
+
827
+ - name: Setup Moonshot
828
+ run: |
829
+ python -m venv venv
830
+ source venv/bin/activate
831
+ pip install -r requirements.txt
832
+ touch .env
833
+ echo "${{ secrets.ENVIRONMENT_VARS }}" >> .env
834
+
835
+ - name: Checkout Moonshot Data (Pull Request Review)
836
+ if: github.event_name == 'pull_request_review'
837
+ uses: actions/checkout@v4
838
+ with:
839
+ repository: aiverify-foundation/moonshot-data
840
+ ref: ${{ vars.MOONSHOT_DATA_BRANCH }}
841
+ path: moonshot-data
842
+
843
+ - name: Checkout Moonshot Data (Workflow Dispatch)
844
+ if: github.event_name == 'workflow_dispatch'
845
+ uses: actions/checkout@v4
846
+ with:
847
+ repository: aiverify-foundation/moonshot-data
848
+ ref: ${{ inputs.moonshot_data_branch }}
849
+ path: moonshot-data
850
+
851
+ - name: Setup Moonshot Data
852
+ run: |
853
+ source venv/bin/activate
854
+ cd moonshot-data
855
+ pip install -r requirements.txt
856
+
857
+ - name: Checkout Moonshot UI (Pull Request Review)
858
+ if: github.event_name == 'pull_request_review'
859
+ uses: actions/checkout@v4
860
+ with:
861
+ repository: aiverify-foundation/moonshot-ui
862
+ ref: ${{ vars.MOONSHOT_UI_BRANCH }}
863
+ path: moonshot-ui
864
+
865
+ - name: Checkout Moonshot UI (Workflow Dispatch)
866
+ if: github.event_name == 'workflow_dispatch'
867
+ uses: actions/checkout@v4
868
+ with:
869
+ repository: aiverify-foundation/moonshot-ui
870
+ ref: ${{ inputs.moonshot_ui_branch }}
871
+ path: moonshot-ui
872
+
873
+ # Download NLTK stopwords
874
+ - name: Download NLTK stopwords
875
+ run: |
876
+ source venv/bin/activate
877
+ pip install nltk
878
+ python -c "import nltk; nltk.download('stopwords');nltk.download('punkt');nltk.download('punkt_tab');nltk.download('averaged_perceptron_tagger_eng')"
879
+
880
+ - name: Setup Moonshot UI
881
+ run: |
882
+ source venv/bin/activate
883
+ cd moonshot-ui
884
+ npm install
885
+ npm run build
886
+ cd ../
887
+ nohup python -m moonshot web &
888
+
889
+ - name: Checkout Integration Test
890
+ uses: actions/checkout@v4
891
+ with:
892
+ repository: aiverify-foundation/moonshot-integration-testing
893
+ path: moonshot-integration-testing
894
+
895
+ - name: Run Integration UI Test
896
+ env:
897
+ URI: ${{ secrets.URI }}
898
+ TOKEN: ${{ secrets.TOKEN }}
899
+ URI2: ${{ secrets.URI2 }}
900
+ TOKEN2: ${{ secrets.TOKEN2 }}
901
+ ADDITIONAL_PARAMETERS: ${{ secrets.ADDITIONAL_PARAMETERS }}
902
+ TOGETHER_TOKEN: ${{ secrets.TOGETHER_TOKEN }}
903
+ OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
904
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
905
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
906
+ GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
907
+ H2OGPT_TOKEN: ${{ secrets.H2OGPT_TOKEN }}
908
+ id: integrationuitest
909
+ run: |
910
+ source venv/bin/activate
911
+ cd moonshot-integration-testing/ui-integration-testing
912
+ npm ci
913
+ npx playwright install
914
+ npx playwright install-deps
915
+ npm install dotenv --save
916
+ # echo "Running Homepage Test Cases"
917
+ 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
918
+
919
+ - name: Print Environment Variables
920
+ run: env
921
+
922
+ - name: Upload Playwright Traces
923
+ if: always()
924
+ uses: actions/upload-artifact@v4
925
+ with:
926
+ name: playwright-trace-integration-ui-test-history-${{ github.run_id }}
927
+ path: |
928
+ /home/runner/work/moonshot/moonshot/moonshot-integration-testing/ui-integration-testing/test-results
929
+
930
+ - name: TestRail upload results
931
+ env:
932
+ TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
933
+ TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}
934
+ run: |
935
+ cd moonshot-integration-testing/ui-integration-testing
936
+ pip install trcli
937
+ trcli -y \
938
+ -h https://imdabtg.testrail.io/ \
939
+ --project "Moonshot" \
940
+ -u $TESTRAIL_USERNAME \
941
+ -p $TESTRAIL_PASSWORD \
942
+ parse_junit \
943
+ --title "Moonshot" \
944
+ --result-fields "os:Ubuntu 22.04" \
945
+ --milestone-id "5" \
946
+ --run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \
947
+ -f "./test-results/junit-report.xml"
948
+ ##########################################################################################################################################################################
625
949
  integration-cli-test:
626
950
 
627
951
  runs-on: ubuntu-latest
@@ -31,7 +31,7 @@ jobs:
31
31
  - name: Build a binary wheel and a source tarball
32
32
  run: python3 -m build
33
33
  - name: Store the distribution packages
34
- uses: actions/upload-artifact@v3
34
+ uses: actions/upload-artifact@v4
35
35
  with:
36
36
  name: python-package-distributions
37
37
  path: dist/
@@ -50,7 +50,7 @@ jobs:
50
50
 
51
51
  steps:
52
52
  - name: Download all the dists
53
- uses: actions/download-artifact@v3
53
+ uses: actions/download-artifact@v4
54
54
  with:
55
55
  name: python-package-distributions
56
56
  path: dist/
@@ -71,7 +71,7 @@ jobs:
71
71
 
72
72
  steps:
73
73
  - name: Download all the dists
74
- uses: actions/download-artifact@v3
74
+ uses: actions/download-artifact@v4
75
75
  with:
76
76
  name: python-package-distributions
77
77
  path: dist/
@@ -31,7 +31,7 @@ jobs:
31
31
  - name: Build a binary wheel and a source tarball
32
32
  run: python3 -m build
33
33
  - name: Store the distribution packages
34
- uses: actions/upload-artifact@v3
34
+ uses: actions/upload-artifact@v4
35
35
  with:
36
36
  name: python-package-distributions
37
37
  path: dist/
@@ -51,7 +51,7 @@ jobs:
51
51
 
52
52
  steps:
53
53
  - name: Download all the dists
54
- uses: actions/download-artifact@v3
54
+ uses: actions/download-artifact@v4
55
55
  with:
56
56
  name: python-package-distributions
57
57
  path: dist/