Skip to content
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

Allow for the passing of a causal event #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion python/src/etos_api/routers/etos/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ async def _start(etos: StartEtosRequest, span: Span) -> dict:
span.set_attribute("etos.artifact.id", artifact_id)
span.set_attribute("etos.artifact.identity", identity)

links = {"CAUSE": artifact_id}
if etos.parent_activity is not None:
links = {"CAUSE": [artifact_id, etos.parent_activity]}
else:
links = {"CAUSE": artifact_id}
data = {
"selectionStrategy": {"tracker": "Suite Builder", "id": str(uuid4())},
"batchesUri": etos.test_suite_url,
Expand Down
1 change: 1 addition & 0 deletions python/src/etos_api/routers/etos/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class StartEtosRequest(EtosRequest):

artifact_identity: Optional[str]
artifact_id: Optional[UUID] = Field(default=None, validate_default=True)
parent_activity: Optional[UUID] = None
test_suite_url: str
dataset: Optional[Union[dict, list]] = {}
execution_space_provider: Optional[str] = os.getenv(
Expand Down
Loading