Skip to content

ci: sets benchmarking jobs as interruptible outside master#3489

Merged
igoragoli merged 18 commits intomasterfrom
augusto.deoliveira/apmsp-2369.ensure-correct-interrupt-policy
Nov 19, 2025
Merged

ci: sets benchmarking jobs as interruptible outside master#3489
igoragoli merged 18 commits intomasterfrom
augusto.deoliveira/apmsp-2369.ensure-correct-interrupt-policy

Conversation

@igoragoli
Copy link
Copy Markdown
Contributor

@igoragoli igoragoli commented Nov 18, 2025

Description

  • Sets benchmarking jobs as interruptible when outside master (and when outside release branches for macrobenchmarks).

I decided to set up rules as hidden jobs and use them with YAML anchors, since the macrobenchmark rules were set like this. There were other patterns being used (rules being directly written, or being used with extends). Using extends wouldn't work since it cannot merge arrays. Writing rules directly is entirely possible, but will make the job definitions large.

The rules are large since we need to control both the job creation and interruption behaviors (which depend on entirely different conditions) with rules (which unfortunately works on a first-match basis, without any possibility to nest rules in tidy if-elseif-else statements).

APMSP-2369
#incident-45572

Testing: cancelled benchmarking jobs after adding a "test interruptibility" commit, e46ab82.

image

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@igoragoli igoragoli changed the title Augusto.deoliveira/apmsp 2369.ensure correct interrupt policy ci: sets benchmarking jobs as interruptible outside master Nov 18, 2025
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Nov 18, 2025

Benchmarks [ profiler ]

Benchmark execution time: 2025-11-18 12:57:12

Comparing candidate commit e8ac91b in PR branch augusto.deoliveira/apmsp-2369.ensure-correct-interrupt-policy with baseline commit 12004d3 in branch master.

Found 0 performance improvements and 2 performance regressions! Performance is the same for 27 metrics, 7 unstable metrics.

scenario:php-profiler-timeline-memory-control

  • 🟥 cpu_user_time [+32.912ms; +44.448ms] or [+5.479%; +7.399%]
  • 🟥 execution_time [+34.020ms; +39.384ms] or [+5.405%; +6.257%]

@igoragoli igoragoli marked this pull request as ready for review November 18, 2025 12:51
@igoragoli igoragoli requested a review from a team as a code owner November 18, 2025 12:51
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Nov 18, 2025

Benchmarks [ appsec ]

Benchmark execution time: 2025-11-18 13:19:26

Comparing candidate commit e8ac91b in PR branch augusto.deoliveira/apmsp-2369.ensure-correct-interrupt-policy with baseline commit 12004d3 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics.

@igoragoli igoragoli merged commit 4485a51 into master Nov 19, 2025
1961 of 2007 checks passed
@igoragoli igoragoli deleted the augusto.deoliveira/apmsp-2369.ensure-correct-interrupt-policy branch November 19, 2025 13:05
@github-actions github-actions Bot added this to the 1.15.0 milestone Nov 19, 2025
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.

3 participants