project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.16k stars 1.89k forks source link

[CI/CD] Run slow workflows only if fast workflows pass #32735

Open kliao-csa opened 3 months ago

kliao-csa commented 3 months ago

Workflow issues

I plan to create a master workflow file as the only workflow that runs on pull request, which manages other workflows to run in waves so that slow workflows don't start if fast ones fail in seconds

Platform

all

Anything else?

No response

kliao-csa commented 2 months ago

Getting back to this ticket. The plan:

  1. For starters, create a new callable workflow that use built-in Powershell scripting to execute a Github CLI call for workflow statuses and filter that to the status of the associated spellcheck action.
  2. If that fails, fail this yaml.
  3. Insert a call to this new yaml as a job on all heavy duty on-PR runs; fail instantly if this fails.
kliao-csa commented 1 month ago

Returning to this after knocking out some faster tickets.

Initial YAML created.

kliao-csa commented 1 month ago

https://github.com/project-chip/connectedhomeip/actions/runs/8897889850/job/24433825293?pr=33241 Found a way to access "restyled" and other non-workflow checks that gh run list does not see. Seems to error out and there's not an easy way to parse this output, so I will be working on putting this in a Python script.