Skip to content

Test Scenarios for the Runtimes Recommendations #1800

Description

@khansaad

Generate Recommendations Test scenarios:

  • Hotspot GC policy (OpenJDK/Hotspot): JVM workload with OpenJDK or Hotspot runtime and layer hotspot present.
    Expected: JDK_JAVA_OPTIONS or JAVA_OPTIONS contains appropriate GC flags (e.g., -XX:+UseG1GC for G1)
  • Semeru GC policy (Semeru/OpenJ9): JVM workload with Semeru or OpenJ9 runtime and layer semeru present.
    Expected: JAVA_OPTIONS contains -Xgcpolicy:gencon, -Xgcpolicy:balanced, or -Xgcpolicy:optthruput
  • Missing JVM metadata: Workload without jvm_info metrics or layer presence.
    Expected: No runtime recommendations; env absent or empty
  • Missing JVM version: jvm_info present but version label missing.
    Expected: No GC recommendation (null version handling)
  • Layer vs runtime mismatch: Layer name does not match effective runtime (e.g., hotspot layer for OpenJ9 workload).
    Expected: No recommendation for mismatched layer
  • Non-runtime datasource: Datasource that does not support runtime recommendations.
    Expected: API succeeds; server logs RUNTIMES_RECOMMENDATIONS_NOT_AVAILABLE

Metadata

Metadata

Assignees

Projects

Status
In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions