The GitHub Actions job "MiMa Check" on pekko-management.git/use-compiled-regex 
has failed.
Run started by GitHub user akashchamp (triggered by akashchamp).

Head commit for run:
b43ac2c21fe1276d75826ba4202ffe0e2fe062a4 / Akash Kumar 
<[email protected]>
Use precompiled regex patterns for name normalisation

Motivation:
String.replaceAll compiles its regex on every call. The Kubernetes
lease/rolling-update name normalisation and the bootstrap host matching
call it repeatedly with constant patterns.

Modification:
Hoist the remaining regexes into precompiled scala.util.matching.Regex
vals. Replace the fixed-character replaceAll calls (" ", "_", ".",
and square brackets) with plain String.replace.

Result:
Same output, without recompiling the patterns on every call.

Tests:
- lease-kubernetes/test: 122 passed
- rolling-update-kubernetes/test: passed (new MakeDNS1039CompatibleSpec)
- management-cluster-bootstrap/test: 48 passed
- ++3.3.8 compile/test of the touched modules: passed
- mimaReportBinaryIssues, scalafmtCheckAll, headerCheckAll: passed

References:
Fixes #852

Report URL: https://github.com/apache/pekko-management/actions/runs/37826587270

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to