Skip to content

Readme for build_stream#4152

Open
priti-parate wants to merge 15 commits intodell:pub/build_streamfrom
priti-parate:pub/build_stream
Open

Readme for build_stream#4152
priti-parate wants to merge 15 commits intodell:pub/build_streamfrom
priti-parate:pub/build_stream

Conversation

@priti-parate
Copy link
Collaborator

@priti-parate priti-parate commented Mar 11, 2026

Updated build_Stream overall doc, test doc and module wise doc

@Venu-p1 @abhishek-sa1

@priti-parate priti-parate marked this pull request as ready for review March 11, 2026 07:52
@priti-parate priti-parate changed the title Pub/build stream Readme for build_stream Mar 11, 2026
Comment on lines +54 to +69
**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
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not available today, can be removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to build image we can pass any roles, so I kept this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not ansible roles. these are referring to logged in user roles like admin, etc

Comment on lines +17 to +18
- **Audit Trail**: Complete logging of all operations

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not required at this point

Comment on lines +88 to +89
pip install -r requirements.txt
pip install -r requirements-dev.txt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to comeup on how to setup infra related to playbook executions.


**Integration Tests:**
- Test workflow end-to-end
- Use test database and artifact store
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can add (in memory db, etc)

- Business rules in domain layer
- Security scanning for malicious content

## Performance Optimization
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reconsider this section

@@ -0,0 +1,114 @@
# Image Building

The Image Building workflow orchestrates container image creation for the Omnia platform components.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to be os image and at all other places.

- `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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not available, remove this line

- `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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is script to generate catalog from existing input files. this not to document.

Comment on lines +73 to +75
- Package mapping files
- Role templates
- Platform-specific configurations
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we mention adapter policy to be consistent ?
Role templates? need more details

- Comprehensive schema validation for catalogs
- Detailed error reporting for invalid packages
- Graceful handling of missing dependencies
- Rollback capabilities for failed processing
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed

Comment on lines +85 to +91
## 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

The Jobs workflow provides:
- Job creation with idempotency guarantees
- Stage-based execution with state management
- Real-time job monitoring and status tracking
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Realtime, can be removed.

Comment on lines +56 to +59
- **catalog_roles** - Software catalog processing
- **local_repo** - Local repository creation
- **build_image** - Container image building
- **validate** - Input/output validation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the stages.

## Error Handling

- Invalid state transitions are rejected
- Failed stages can be retried based on configuration
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retry not supported today

## Monitoring

- Job status available via `/api/v1/jobs/{job_id}` endpoint
- List all jobs with filtering options
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NA

**Security:**
- JWT token-based authentication
- Vault integration for secret management
- Role-based access control
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not ansible roles. these are referring to logged in user roles like admin, etc

Comment on lines +180 to +184
### Performance Tests
Test system performance and scalability:
- Load testing for concurrent requests
- Stress testing for resource limits
- Benchmark tests for critical operations
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have not added these

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants