Skip to content

#3307: return empty metrics when off_quota? triggers mid-loop in some_build_success_rate - #3309

Open
opusstudiohq-max wants to merge 1 commit into
zerocracy:masterfrom
opusstudiohq-max:3307
Open

opusstudiohq-max wants to merge 1 commit into
zerocracy:masterfrom
opusstudiohq-max:3307

Conversation

@opusstudiohq-max

Copy link
Copy Markdown
Contributor

Closes #3307.

Previously, break if Fbe.octo.off_quota? inside wfs.filter_map returned nil, causing runs.sort_by! { _1[:completed] } to raise NoMethodError.

Returning {} when Fbe.octo.off_quota? becomes true mid-loop avoids the crash and prevents persisting incomplete workflow metrics via Jp.incremate.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

some_build_success_rate crashes with NoMethodError when off_quota? triggers mid-loop

1 participant