How would you add performance regression detection to CI without making it flaky?
AdvancedScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Noisy benchmarks on shared runners.
What I'd do →
- Run load tests (k6 or Gatling) against a dedicated, stable environment nightly, not on every PR.
- Compare to a moving baseline with thresholds (
thresholds: { http_req_duration: ['p(95)<300'] }in k6). - Track trends in a time-series dashboard and alert on sustained regressions.
Why → Shared CI hardware is too noisy for strict per-PR performance gates.
Interview tip → Say you gate on trends and percentiles, not single runs.
More on Builds, Artifacts, Nexus, SonarQube and Testing
A Maven project resolves dependencies from Maven Central on every build and a left-pad style outage would stop all builds.BeginnerYou must publish snapshot and release artifacts without overwriting a released version.IntermediateEvery merge to main should produce a unique semantic version automatically.IntermediateAn npm build is non-reproducible: different versions install on different days.BeginnerThe SonarQube quality gate must block merging PRs that add new bugs, vulnerabilities or uncovered code.IntermediateCoverage shows 0% in SonarQube although tests run in CI.Intermediate