Skip to main content

Modules

All public functions and classes are re-exported from the top-level jeap_pipeline package. They group into the following areas.

ECS deployment (AWS)​

See ECS deployment checks for details.

SymbolPurpose
wait_until_deployments_completedBlock until the ECS deployments of the given services run the expected image version, or raise DeploymentFailedError / time out.
get_deployment_statusOne-shot deployment state of a single ECS service relative to an expected image version.
get_failure_diagnosticsCollect structured failure details (stopped tasks, container exit codes, CloudWatch log events via awslogs or FireLens cloudwatch_logs) for a failed rollout.
build_cloudwatch_log_stream_urlBuild a CloudWatch console URL pointing at a specific log stream.
wait_until_undeployment_has_finished, is_service_undeployedWait for / check that an ECS service is fully undeployed (INACTIVE or absent).
DeploymentStatus, DeploymentFailedError, DeploymentFailureDiagnostics, ServiceFailureDiagnostics, StoppedTaskDiagnostics, ContainerFailureDiagnostics, CloudWatchLogEventResult / error dataclasses.

Deployment Log service​

Records deployments and undeployments in the jEAP Deployment Log service.

SymbolPurpose
create_deployment_json, create_undeployment_jsonBuild the request payloads.
put_to_deployment_log_service, put_deployment_state, put_undeployment_stateCreate / update a (un)deployment and its state.
put_artifacts_versionRecord the artifact coordinates and build URL.
get_previous_deployment_on_environmentLook up the deployment currently on an environment.
create_change_log, get_commit_details, get_tagged_atAssemble the changelog (JIRA keys, commit and tag timestamps).
generate_deployment_id, get_actual_timestampHelpers for IDs and ISO-8601 timestamps.
Deployment, DeploymentTarget, DeploymentUnit, ComponentVersion, Link, ChangeLogModel dataclasses.

Pact / consumer-driven contract testing​

Talk to the Pact Broker from build and deployment pipelines.

SymbolPurpose
verify_pact_configurationValidate that configured pactPacticipants are real service names.
is_pact_enabled_for_service_and_stage, is_pact_can_i_deploy_check_enabledEvaluate the pipeline's Pact configuration for a service / environment.
get_pacticipant_namesResolve the Pact participant name(s) for an application.
do_can_i_deploy_checkRun a can-i-deploy check before deploying.
record_deployment, record_undeploymentRegister a (un)deployment of a participant in an environment.

Message Contract Service​

SymbolPurpose
is_message_contract_compatibility_check_enabledWhether the compatibility check runs for an environment.
get_app_name_for_message_contractResolve the app name used for message contracts.
get_compatibility, record_deployment, delete_deployments (message_contract_service_operations)Query compatibility and record / remove deployments.

Business process test orchestrator​

Drive jeap-bptest-orchestrator test runs from a pipeline.

SymbolPurpose
start_test_caseStart one test case, return its test id.
wait_until_test_case_endsPoll until the test case has a result or the timeout elapses.
start_multiple_test_casesStart several test cases (sequential or parallel) and collect the results.
PASS, NO_RESULTResult constants.

Staging, dispatch and change management​

SymbolPurpose
get_next_deployment_stageCompute the next stage from the current stage and the automated-staging configuration.
send_dispatch_eventSend a GitHub repository dispatch event to trigger a downstream workflow; optional extra_client_payload adds fields to the payload.
create_change_request_in_remedy, get_change_request_id_from_responseCreate a change request in Remedy and read its id from the response.

Documentation validation (jEAP doc service)​

Validate a repository's documentation before it is uploaded - see Documentation validation for the checks, the configuration and the finding codes.

SymbolPurpose
validate_documentation_setsValidate every documentation set of a repository - content, diagrams and structure - and render the report a pipeline prints.
documentation_sets_from_configRead a documentation configuration - what the repository documents at its root, its sets under docs - into typed sets, applying the rules of the upload contract.
documentation_sets_from_entriesRead the documentation a build generates - a list under generated-docs, every entry naming its own subject - into typed sets, restricted to the formats the caller uploads.
DocumentationSetOne folder of documentation and what it is; validation_query_parameters and upload_query_parameters select what each request may send.
validate_documentation_contentThe pipeline's responsibility: encoding, CommonMark, front matter allowlist, links that resolve.
collect_documentation_pathsWalk a documentation folder into the relative path tree an upload would carry, the diagram sources left out.
check_diagram_sourcesCheck that the image of every diagram was exported after the diagram was last edited, by the commit dates. Deepens a shallow history on request rather than guessing.
diagram_pairs_of, diagram_sources_ofWhich file in a set is the source of which image, and which paths an upload therefore leaves out.
validate_documentation_structureAsk the doc service whether a path tree would be accepted, with retries on a server error.
DocumentationValidationOutcome, SetOutcome, Finding, ContentReport, ContentFinding, DiagramReport, DiagramFinding, DiagramPair, StructureReport, StructureFindingResult dataclasses.
ContentFindingCode, DiagramFindingCode, StructureFindingCode, ALLOWED_FRONT_MATTER_KEYS, IMAGE_EXTENSIONS, PUBLISHED_EXTENSIONS, NEVER_SOURCE_EXTENSIONS, CONFIGURATION_ROOT_KEYS, DOCUMENTATION_SET_KEYS, SUBJECT_KEYS, DOCUMENTATION_SETS_KEY, GENERATED_DOCUMENTATION_SET_KEYS, GENERATED_DOCUMENTATION_SETS_KEY, DOCUMENTATION_TYPES, SOURCE_FORMATSWhat the checks branch on, and what is allowed.
DocumentationConfigError, DocumentationPathError, DocServiceError, DocServiceRequestErrorErrors.

Documentation upload (jEAP doc service)​

Diagram collection and pairing helpers accept source_format (default markdown). Pass html to retain all microsite assets; asciidoc also protects .adoc and .asciidoc input documents. prepare_documentation_config and convert_asciidoc accept deepen_diagram_history to check referenced AsciiDoc image pairs against their original history before writing output in shallow checkouts.

Upload a repository's documentation to the doc service - see Documentation upload for the bundle, the idempotency key and the answers.

SymbolPurpose
upload_documentation_setsUpload the documentation sets of a repository and render the report a pipeline prints.
UploadProvenanceWhere an uploaded set comes from: the repository, the commit, the ref, its timestamp, and the run that uploaded it.
upload_documentation_bundleSend one ZIP with its prepared query parameters and read the answer, with the retries a restart and a concurrent attempt need.
write_documentation_bundleWrite the ZIP of one set, holding exactly the walked paths under their set-relative names.
upload_id_ofThe idempotency key of a set's upload, derived from the identity of the run so a retry repeats it and a re-run does not.
format_set_upload_reportRender what became of one set as the text a workflow prints.
DocumentationUploadOutcome, SetUploadOutcome, UploadResultResult dataclasses. The outcome carries findings, the refused sets flattened the way a validation flattens its own.
DEFAULT_UPLOAD_TIMEOUT, DEFAULT_IN_PROGRESS_ATTEMPTS, MAX_RETRY_AFTER_SECONDSThe defaults an upload can be given instead, and the cap on a Retry-After.

Which branches publish (jEAP doc service)​

Decide whether a push publishes the documentation of its repository - see Documentation upload for the key, the precedence and the pattern syntax.

SymbolPurpose
publishes_fromWhether a ref publishes, which rule decided and the sentence to print.
publish_branches_ofThe branch patterns a repository states at the root of its documentation configuration, if it states any.
branch_matchesWhether a branch name matches one branch glob - * stops at a /, ** does not.
PublicationDecisionWhat was decided: publishes, branch, rule, pattern and reason.
PUBLISH_BRANCHES_KEY, RULE_DEFAULT_BRANCH, RULE_PUBLISH_BRANCHES, RULE_TAGThe configuration key, and the rules a decision names.

OAuth 2.0 tokens​

SymbolPurpose
fetch_client_credentials_tokenObtain an access token with the client credentials grant, for any jEAP service a pipeline calls with a client of its own.
OAuthTokenErrorRaised when no token could be obtained.

AsciiDoc conversion​

See AsciiDoc conversion for convert_asciidoc, prepare_documentation_config, requires_asciidoc_conversion and DocumentationConversionError.

Documentation pipeline inputs​

read_documentation_configuration_file, configured_documentation_sets, documentation_versions, documentation_pom_version and documentation_commit_timestamp provide CI-independent configuration and provenance handling. See Documentation pipeline adapters.

documentation_versions returns versions keyed by path, or by DocumentationSet when paths are shared. upload_documentation_sets accepts both key types, with set keys taking precedence.