Readme for build_stream#4152
Conversation
… pub/build_stream
Signed-off-by: priti-parate <140157516+priti-parate@users.noreply.github.com>
| **Development Setup:** | ||
| ```bash | ||
| # Install dependencies | ||
| pip install -r requirements.txt | ||
| pip install -r requirements-dev.txt | ||
|
|
||
| # Set environment variables | ||
| export HOST=<host ip> | ||
| export PORT=<port> | ||
|
|
||
| # Run development server | ||
| uvicorn main:app --reload | ||
|
|
||
| # Run tests | ||
| pytest | ||
| ``` |
There was a problem hiding this comment.
these only talks about the API server, we need to mention about other pre-req infra setup
| **Security:** | ||
| - JWT token-based authentication | ||
| - Vault integration for secret management | ||
| - Role-based access control |
There was a problem hiding this comment.
Not available today, can be removed.
There was a problem hiding this comment.
to build image we can pass any roles, so I kept this
There was a problem hiding this comment.
this is not ansible roles. these are referring to logged in user roles like admin, etc
build_stream/doc/developer-guide.md
Outdated
| - **Audit Trail**: Complete logging of all operations | ||
|
|
There was a problem hiding this comment.
not required at this point
build_stream/doc/developer-guide.md
Outdated
| pip install -r requirements.txt | ||
| pip install -r requirements-dev.txt |
There was a problem hiding this comment.
need to comeup on how to setup infra related to playbook executions.
build_stream/doc/developer-guide.md
Outdated
|
|
||
| **Integration Tests:** | ||
| - Test workflow end-to-end | ||
| - Use test database and artifact store |
There was a problem hiding this comment.
can add (in memory db, etc)
build_stream/doc/developer-guide.md
Outdated
| - Business rules in domain layer | ||
| - Security scanning for malicious content | ||
|
|
||
| ## Performance Optimization |
build_stream/doc/build_image.md
Outdated
| @@ -0,0 +1,114 @@ | |||
| # Image Building | |||
|
|
|||
| The Image Building workflow orchestrates container image creation for the Omnia platform components. | |||
There was a problem hiding this comment.
need to be os image and at all other places.
build_stream/doc/catalog.md
Outdated
| - `orchestrator/catalog/use_cases/parse_catalog.py` - Catalog parsing logic | ||
| - `orchestrator/catalog/use_cases/generate_input_files.py` - Input file generation | ||
| - `core/catalog/entities.py` - Catalog domain entities | ||
| - `core/catalog/repositories.py` - Catalog data access |
There was a problem hiding this comment.
not available, remove this line
build_stream/doc/catalog.md
Outdated
| - `orchestrator/catalog/use_cases/generate_input_files.py` - Input file generation | ||
| - `core/catalog/entities.py` - Catalog domain entities | ||
| - `core/catalog/repositories.py` - Catalog data access | ||
| - `generate_catalog.py` - Standalone catalog generation script |
There was a problem hiding this comment.
this is script to generate catalog from existing input files. this not to document.
build_stream/doc/catalog.md
Outdated
| - Package mapping files | ||
| - Role templates | ||
| - Platform-specific configurations |
There was a problem hiding this comment.
can we mention adapter policy to be consistent ?
Role templates? need more details
build_stream/doc/catalog.md
Outdated
| - Comprehensive schema validation for catalogs | ||
| - Detailed error reporting for invalid packages | ||
| - Graceful handling of missing dependencies | ||
| - Rollback capabilities for failed processing |
build_stream/doc/catalog.md
Outdated
| ## Standalone Script | ||
|
|
||
| The `generate_catalog.py` script provides: | ||
| - Command-line catalog generation | ||
| - Batch processing capabilities | ||
| - Integration with external CI/CD pipelines | ||
| - Detailed logging and error reporting |
build_stream/doc/jobs.md
Outdated
| The Jobs workflow provides: | ||
| - Job creation with idempotency guarantees | ||
| - Stage-based execution with state management | ||
| - Real-time job monitoring and status tracking |
There was a problem hiding this comment.
Realtime, can be removed.
build_stream/doc/jobs.md
Outdated
| - **catalog_roles** - Software catalog processing | ||
| - **local_repo** - Local repository creation | ||
| - **build_image** - Container image building | ||
| - **validate** - Input/output validation |
build_stream/doc/jobs.md
Outdated
| ## Error Handling | ||
|
|
||
| - Invalid state transitions are rejected | ||
| - Failed stages can be retried based on configuration |
There was a problem hiding this comment.
retry not supported today
build_stream/doc/jobs.md
Outdated
| ## Monitoring | ||
|
|
||
| - Job status available via `/api/v1/jobs/{job_id}` endpoint | ||
| - List all jobs with filtering options |
| **Security:** | ||
| - JWT token-based authentication | ||
| - Vault integration for secret management | ||
| - Role-based access control |
There was a problem hiding this comment.
this is not ansible roles. these are referring to logged in user roles like admin, etc
| ### Performance Tests | ||
| Test system performance and scalability: | ||
| - Load testing for concurrent requests | ||
| - Stress testing for resource limits | ||
| - Benchmark tests for critical operations |
Updated build_Stream overall doc, test doc and module wise doc
@Venu-p1 @abhishek-sa1