-
Notifications
You must be signed in to change notification settings - Fork 45.9k
feat(tests): Add E2E test data creator script for comprehensive testing #10368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
feat(tests): Add E2E test data creator script for comprehensive testing #10368
Conversation
- Introduced a new script to generate test data for end-to-end (E2E) tests using API functions, ensuring compatibility with future model changes. - The script creates test users, agent blocks, graphs, profiles, library agents, presets, API keys, and store submissions. - Utilizes external services for image and video URLs, and includes error handling for data creation processes. - Provides a summary of created data upon completion, enhancing the testing framework for the AutoGPT platform.
❌ Deploy Preview for auto-gpt-docs-dev failed.
|
…-to-add-test-data-to-the-database-using
❌ Deploy Preview for auto-gpt-docs failed.
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Here's the code health analysis summary for commits Analysis Summary
|
- Updated the test data creator to save generated data to JSON files in the frontend .test-data directory. - Introduced a summary file that includes metadata about the generated test data. - Adjusted user and agent creation limits to ensure consistent test data generation. - Improved error handling during data saving processes to enhance reliability. - This update aims to streamline the E2E testing framework and facilitate easier data management.
… data generation - Added steps to set up Python 3.11 and install Poetry 1.6.1 in the CI workflow. - Included a step to install backend dependencies using Poetry. - Implemented a step to create E2E test data by running a dedicated script, improving the testing framework. - Updated .gitignore to exclude the new .test-data directory in the frontend.
…2E test data script - Eliminated the direct database creation of test profiles to streamline the test data generation process. - This change simplifies the code and focuses on creating test library agents, enhancing maintainability.
… saving logic - Removed the functionality to save generated test data to JSON files, simplifying the test data creation process. - Adjusted user creation logic to ensure the first user has a predefined email for testing. - Updated graph creation to include specific node types and links, enhancing the structure of generated graphs. - This refactor aims to improve maintainability and focus on in-memory data generation for E2E tests.
- Introduced a new step in the CI workflow to generate E2E test data by executing a dedicated script within the backend container. - This addition enhances the testing process by ensuring that relevant test data is available during the CI pipeline execution.
- Changed the backend container name from 'agpt-backend' to 'rest_server-1' in the CI workflow for generating E2E test data. - This update ensures the correct container is referenced during the CI process, improving the reliability of test data generation.
…ment - Added steps to set up Python 3.11 and install Poetry in the CI workflow. - Implemented caching for Poetry dependencies to speed up the installation process. - Updated the E2E test data generation step to ensure it runs within the backend directory. - This enhancement improves the reliability and efficiency of the CI pipeline for backend testing.
…rom CI workflow - Eliminated the steps for setting up Python 3.11 and installing Poetry in the CI workflow. - Removed caching for Poetry dependencies and the installation of Python dependencies. - This refactor streamlines the CI process by focusing on essential steps, improving overall efficiency.
Changes
Checklist 📋
For code changes: