Skip to content

ci: add measured job timeouts to junit5 workflows and fail-open path triggers - #199

Merged
slayerjain merged 1 commit into
mainfrom
chore/ci-parity-java-sdk-timeouts
Nov 29, 2026
Merged

slayerjain merged 1 commit into
mainfrom
chore/ci-parity-java-sdk-timeouts

Conversation

@slayerjain

@slayerjain slayerjain commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Close the remaining GitHub Actions job-timeout and path-filter gaps in keploy/java-sdk (rebased onto main after #197) without removing or weakening any job, JDK leg, or test step:

  1. Measured timeout with 10-minute floor on junit5-sdk.yml rows job (timeout-minutes: 10):
    • Previously unset (fell back to GitHub's 6-hour default).
    • Derived from all 6 historical runs (41519655857..44957704902, 2026-11-02..2026-11-21; n=17 successful matrix legs across JDK 8/17/21): min 16 s, p50 25 s, p95 88 s, max 88 s -> 2 × p95 = 176 s (2.93 m).
    • Floored at max(2 × p95, 10 minutes) (10 minutes) because 6 historical runs are too small a sample to size a 3-minute bound safely against shared GitHub runner and Maven Central jitter, while 10 minutes still stops a 6-hour hang with no flake risk.
  2. Measured timeout with 10-minute floor on keploy-junit5-release.yml dry-run job (timeout-minutes: 10):
    • Previously unset (the only other non-reusable job in .github/workflows/ falling back to GitHub's 6-hour default).
    • Derived from all 5 historical runs (41519655995..44957701223, 2026-11-02..2026-11-21; n=5): min 31 s, p50 31 s, p95 49 s, max 49 s -> 2 × p95 = 98 s (1.63 m), floored at max(2 × p95, 10 minutes) (10 minutes).
  3. Run junit5-sdk.yml on every push to main:
    • Removed paths: from on.push in .github/workflows/junit5-sdk.yml so every commit landed on main runs the full keploy-junit5 matrix and e2e suite (on.pull_request.paths and workflow_call are unchanged).
  4. Fail-open pull_request filter on java-agent.yml:
    • Added paths-ignore: ["keploy-junit5/**"] under on.pull_request in .github/workflows/java-agent.yml (while keeping on.push: branches: [main] completely unfiltered and preserving feat(dedup): enable safe dedup on Jetty 11/12 and Undertow 2.2/2.3 #197's timeout-minutes: 20).
    • Confirmed on post-feat(dedup): enable safe dedup on Jetty 11/12 and Undertow 2.2/2.3 #197 main (2dc7ff2): root pom.xml lists only <module>keploy-sdk</module>, and keploy-junit5/ is not consumed by keploy-sdk's build, tests, or scripts/.
    • Because paths-ignore is fail-open, any change to keploy-sdk/, root pom.xml, scripts/, .github/workflows/, or any new top-level file/directory still runs the full 4-JDK matrix on every pull request regardless of target branch. main has no required status checks that a filtered PR would block.

Verification

  • Parsed all 4 workflow files under .github/workflows/ and verified every non-reusable job now declares timeout-minutes >= 10:
  • Verified identical job names, matrix strategies, JDK versions, steps, and 40-char commit-SHA action pins in junit5-sdk.yml and keploy-junit5-release.yml vs origin/main (2dc7ff2).

Add measured job timeouts (with a 10-minute floor) to the two GitHub
Actions jobs that still fell back to GitHub's 6-hour default, and align
path triggers to run all suites on main pushes while staying fail-open on
pull requests:

- .github/workflows/junit5-sdk.yml:
  - Set timeout-minutes: 10 on jobs.rows, derived from all 6 historical runs
    (41519655857..44957704902, 2026-11-02..2026-11-21; n=17 successful
    matrix legs across JDK 8/17/21: min 16s, p50 25s, p95 88s, max 88s ->
    2x p95 = 176s), floored at max(2x p95, 10m) so small-sample runner/Maven
    Central jitter cannot flake the job while still stopping a 6-hour hang.
  - Remove the push path filter on main so every push to main exercises
    junit5-sdk (pull_request path filter and workflow_call unchanged).
- .github/workflows/keploy-junit5-release.yml:
  - Set timeout-minutes: 10 on jobs.dry-run, derived from all 5 historical
    runs (41519655995..44957701223, 2026-11-02..2026-11-21; n=5: min 31s,
    p50 31s, p95 49s, max 49s -> 2x p95 = 98s), floored at max(2x p95, 10m).
- .github/workflows/java-agent.yml:
  - Add fail-open pull_request paths-ignore for keploy-junit5/** (isolated
    standalone Maven module not listed in root pom.xml and not consumed by
    keploy-sdk build, tests, or scripts). Any change to keploy-sdk/, root
    pom.xml, scripts/, workflows, or any new top-level path still runs the
    full 4-JDK matrix on every pull request, and pushes to main stay
    unfiltered.

No jobs, JDK matrix entries, steps, or pinned action SHAs are removed or weakened.

Signed-off-by: slayerjain <shubhamkjain@outlook.com>
@slayerjain
slayerjain force-pushed the chore/ci-parity-java-sdk-timeouts branch from 7f1f959 to 0fbc1b3 Compare November 29, 2026 07:55
@slayerjain
slayerjain merged commit e2035ec into main Nov 29, 2026
12 checks passed
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.

1 participant