Skip to content

feature: Allow different invocation methods of produce data workflow #88

@jmcgrathTT

Description

@jmcgrathTT

Issue:

Currently, the produce data workflow will only run for completed jobs. While this works functionally, it makes produced data workflow runs more difficult to track since they are not bounded to the original workflow due it's asynchronous nature from the github event trigger.

Image

https://github.com/tenstorrent/tt-mlir/actions/workflows/produce_data.yml

This also causes an issue if your workflow run is dynamically named using run-name: at runtime.

tenstorrent/tt-forge#496 (comment)

Suggested change:

Allow input override of the completed status behavior around this code path. Completed status remains the default.

assert github_job.get("status") == "completed", f"{github_job_id} is not completed"

This way, the produced data workflow can be properly bound to the workflow run that collects them. Users know best when data should be collected; otherwise, they rely on the default completed status.

Example:

https://github.com/tenstorrent/tt-forge/blob/d16b31763ebb257a050913f6e3e494c0e9375dfa/.github/workflows/perf-benchmark.yml#L497-L504

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions