Closed joverlee521 closed 7 months ago
Huh, the execution plan does not even include the head_branch
filter
Hmm, when I try to add a join with the repository
CTE, I get an error
ERROR: rpc error: code = Internal desc = github: rpc error: code = Internal desc = 'List' call for table 'github_actions_repository_workflow_run' is missing 1 required qual: column:'repository_full_name' operator: =
I don't understand what's going on under the hood in steampipe, so I'm just going to work around it with an additional CTE that filters to the default branch.
Odd! It definitely worked as a filter when I committed it. I'd bet some Steampipe change between versions broke it. It was treading on unstable ground a bit as a hack to work around a joining issue (which I never followed up with and wrote up…). I wonder if the join approach would work now. Hmm.
Maybe also a reason to pin the Steampipe version.
The shown run is a test run in the zika repo that was not run on the main branch.
Looks like we should only be including runs that are from the default branch
https://github.com/nextstrain/status/blob/507429a7195f1d52eb6d32343016115851f02afa/pathogen-workflows.sql#L122-L124