How openshift/origin works
Origin’s maintained product is the openshift-tests binary: it selects and runs OpenShift test suites, while monitor components collect cluster behavior and produce recorded test results. The repository also provides disruption monitoring, e2e/risk analysis, and result-parsing utilities. Edges reflect only calls or references visible in the supplied excerpts, SOURCE INDEX, or README; unsampled command wiring and subsystem internals are intentionally not inferred.
Main entry points: openshift-tests.go openshift-tests · construction.go Monitor intervals · monitor.go Monitor runtime · disruption_backend_sampler.go Backend sampling
Components 17
Test CLI
- openshift-tests
cmd/openshift-tests/openshift-tests.go - Run tests
pkg/cmd/openshift-tests/run/command.go - Suite selection
pkg/testsuites/standard_suites.go - Disruption commands
pkg/cmd/openshift-tests/disruption/disruption_command.go
Cluster Monitoring
- Endpoint watcher
pkg/cmd/openshift-tests/disruption/watch-endpointslice/endpointslice_controller.go - Service poller
pkg/cmd/openshift-tests/disruption/poll-service/service_controller.go - Backend sampling
pkg/monitor/backenddisruption/disruption_backend_sampler.go - Monitor intervals
pkg/monitor/monitorapi/construction.go - Monitor runtime
pkg/monitor/monitor.go - Monitor test framework
pkg/monitortestframework/impl.go - Cluster discovery
pkg/clioptions/clusterdiscovery/cluster.go
Analysis
- Alert analysis
pkg/monitortestlibrary/allowedalerts/basic_alert.go - Event pattern analysis
pkg/monitortestlibrary/pathologicaleventlibrary/duplicated_event_patterns.go - E2E analysis
pkg/e2eanalysis/e2e_analysis.go - Risk analysis
pkg/riskanalysis/cmd.go
Test Reporting
- JUnit parsing
tools/junitreport/pkg/parser/gotest/parser.go
Other components
- Test operator
Connections 18
- Test operator → openshift-tests: invokes
- openshift-tests → Run tests: registers command
cmd/openshift-tests/openshift-tests.go - openshift-tests → Disruption commands: registers command
cmd/openshift-tests/openshift-tests.go - openshift-tests → Suite selection: includes suite commands
pkg/testsuites/standard_suites.go - Run tests → Suite selection: selects suites
- Disruption commands → Endpoint watcher: uses watcher
- Endpoint watcher → Backend sampling: starts sampling
pkg/cmd/openshift-tests/disruption/watch-endpointslice/endpointslice_controller.go - Service poller → Backend sampling: starts sampling
pkg/cmd/openshift-tests/disruption/poll-service/service_controller.go - Backend sampling → Monitor intervals: records intervals
pkg/monitor/backenddisruption/disruption_backend_sampler.go - Monitor runtime → Monitor test framework: uses framework
pkg/monitor/monitor.go - Monitor runtime → Monitor intervals: uses monitor API
pkg/monitor/monitor.go - Monitor runtime → Risk analysis: invokes analysis
pkg/monitor/monitor.go - Cluster discovery → Test operator: discovers target cluster
- Alert analysis → Monitor intervals: analyzes intervals
pkg/monitortestlibrary/allowedalerts/basic_alert.go - Event pattern analysis → Monitor intervals: examines events
pkg/monitortestlibrary/pathologicaleventlibrary/duplicated_event_patterns.go - E2E analysis → JUnit parsing: analyzes test results
- Risk analysis → Test operator: requests risk service
pkg/riskanalysis/cmd.go - JUnit parsing → Test operator: produces report data