Skip to content

ci: add Alpine+JDK21/25 test variants with ZGC for APPSEC-62784#201

Open
jandro996 wants to merge 2 commits into
masterfrom
ci/alpine-zgc-variants
Open

ci: add Alpine+JDK21/25 test variants with ZGC for APPSEC-62784#201
jandro996 wants to merge 2 commits into
masterfrom
ci/alpine-zgc-variants

Conversation

@jandro996
Copy link
Copy Markdown
Member

Summary

  • Adds Alpine musl + Temurin 21 and Alpine musl + Temurin 25 CI matrix entries and Dockerfiles
  • Enables ZGC Generational flags (-XX:+UseZGC -XX:+ZGenerational) for JDK 21+ test runs on HotSpot
  • Fixes -XX:+ZGenerational flag for JDK 23+ (JEP 474 made Generational ZGC the only mode; the flag was removed)
  • Skips ZGC flags for IBM OpenJ9/Semeru JVMs (they do not have HotSpot ZGC)

These variants are the reproduction environment for the SIGSEGV reported in APPSEC-62784: the crash occurs exclusively on Alpine (musl libc) with ZGC Generational. Ubuntu/glibc does not reproduce it.

Test plan

  • alpine-temurin21 and alpine-temurin25 CI jobs appear and pass (or fail with the crash before the fix lands)
  • Existing Semeru/OpenJ9 jobs still pass without ZGC flags

@jandro996 jandro996 requested a review from a team as a code owner May 25, 2026 10:10
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.55%. Comparing base (47c2db6) to head (25d50ea).
⚠️ Report is 85 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #201      +/-   ##
============================================
- Coverage     58.55%   57.55%   -1.01%     
- Complexity      134      175      +41     
============================================
  Files            34       34              
  Lines          3458     3645     +187     
  Branches        780      819      +39     
============================================
+ Hits           2025     2098      +73     
- Misses          900      973      +73     
- Partials        533      574      +41     
Flag Coverage Δ
helper 57.55% <ø> (-1.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@datadog-datadog-prod-us1
Copy link
Copy Markdown

datadog-datadog-prod-us1 Bot commented May 25, 2026

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 57.28% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 2867e87 | Docs | Datadog PR Page | Give us feedback!

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 25d50ea4fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/actions.yml
Adds the CI infrastructure needed to reproduce and verify the SIGSEGV
reported in APPSEC-62784. The crash occurs on Alpine (musl libc) with
ZGC Generational on JDK 21+ — not on Ubuntu/glibc.

- Add ci/alpine-temurin21 and ci/alpine-temurin25 Docker images
- Add corresponding x86_64 matrix entries in actions.yml
- Enable ZGC flags for JDK 21+ HotSpot test runs in build.gradle so
  that ReachabilityFenceTest exercises the concurrent-GC window where
  the stale-pointer crash occurs (stop-the-world GC never exposes it)
- Skip ZGC flags for IBM OpenJ9/Semeru (no HotSpot ZGC)
- JDK 23+ uses -XX:+UseZGC only; -XX:+ZGenerational was removed by
  JEP 474 (Generational ZGC became the only mode)
@jandro996 jandro996 force-pushed the ci/alpine-zgc-variants branch from 25d50ea to 8712890 Compare May 25, 2026 10:30
@jandro996 jandro996 requested a review from smola May 28, 2026 11:07
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