Skip to content

Conversation

lovisaberggren
Copy link
Collaborator

Proposed changes

Adjusted metrics collection logic to run faster/be more efficient. Now it runs in ~8 seconds locally. Previous GH action runs have been taking ~50 mins.

Jira ticket: CLOUDP-347215

}
}
console.log('\tMerging violations (total ' + violations.length + ')');
const violationResults = violations.map((entry) => mapResults(entry, 'violated'));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Essentially, mapping the array to a new array using map() is faster than for-looping through the array and pushing each entry to a new array

@lovisaberggren lovisaberggren changed the title ci: make IPA metrics collection more efficient ci(ipa): make IPA metrics collection more efficient Sep 24, 2025
@lovisaberggren lovisaberggren marked this pull request as ready for review September 24, 2025 14:57
@lovisaberggren lovisaberggren requested a review from a team as a code owner September 24, 2025 14:57
@lovisaberggren lovisaberggren merged commit d4aba06 into main Sep 24, 2025
12 of 13 checks passed
@lovisaberggren lovisaberggren deleted the CLOUDP-347215 branch September 24, 2025 15:18
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.

2 participants