원클릭으로
microshift-release-pre-check
Check OCP release schedule, verify availability, evaluate z-stream need, or check nightly build gaps
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Check OCP release schedule, verify availability, evaluate z-stream need, or check nightly build gaps
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Surface your daily task list — QA-ready tickets, sprint backlog, carry-over items, open PRs, RHEL verification queue, and quarterly reminders. Use at the start of your day to see what needs attention.
Show detailed info about a specific TODO task — its tracked links, notes, and live Jira/PR status. Use when the user asks about a task, wants context to resume work on it, or asks what's needed to finish a ticket. Not for listing all tasks (read the TODO file directly or use edge-ic:sprint-status for sprint-wide views)
End-of-week automation - review active work and prepare next week's TODO
Run the full Prow CI release testing workflow — create PR, trigger jobs, check status, merge PR, download and upload artifacts
Generate interactive PCP performance dashboard from a Prow job URL
Download Prow job artifacts, identify root cause of failure, and produce a structured error report
/microshift-release:pre-check [release_type] [version|time-range...] [--verbose]
MicroShift ships as a layered product on top of OCP. Every time OCP releases a new version (z-stream, EC, RC, or nightly), the MicroShift team must evaluate whether to participate — checking for CVEs, verifying RPM builds exist in Brew, and deciding whether to ask ART to create artifacts.
This command automates that evaluation (Phase 0 of the release process). It checks lifecycle status, OCP payload availability, advisory CVEs, nightly build gaps, and EC/RC readiness — then outputs a clear action per version: OK, SKIP, ASK ART, NEEDS REVIEW, or ALREADY RELEASED.
When a time range is provided (e.g., "this week"), it queries ART Jira for OCP release tickets due in that period and evaluates each one.
| Requirement | Needed for | Mandatory? |
|---|---|---|
| VPN | Brew RPM checks (nightly, EC/RC), advisory report | Yes for nightly/ecrc — xyz degrades gracefully (skips advisory, 90-day rule) |
| Atlassian MCP | OCPBUGS enrichment, ART ticket queries, time range lookups | Yes — required to analyze OCPBUGS resolution and release action |
GITLAB_API_TOKEN | Advisory report for 4.20+ (shipment MR data) | No — advisory skipped for 4.20+ without it |
release_type (optional): One or more of Z, X, Y, RC, EC, nightly (case-insensitive). If omitted, defaults to Z.version (optional): Specific version (e.g., 4.19.27) or minor stream (e.g., 4.21)time-range (optional): Natural language time range instead of explicit versions. Detected by keywords like:
today, tomorrowthis week, next weeknext 3 days, next 7 daysthis month--verbose (optional): Show extra detail (tables for xyz, NVR/nightly names for nightly, next versions for EC/RC).All scripts are run relative to the repository root:
SCRIPTS_DIR=plugins/microshift-release/scripts
release_type(s) — tokens matching Z, X, Y, RC, EC, nightly (case-insensitive)version(s) — tokens matching X.Y or X.Y.Z patterntime range — remaining tokens that are not release types, versions, or flags (e.g., "this week", "next 3 days", "tomorrow")--verbose flagZ and treat version/time-range tokens accordinglyIf a time range is present instead of explicit versions, query ART Jira for release tickets due in that window:
Convert the time range to concrete dates (date_from, date_to) based on today's date:
today → today onlytomorrow → tomorrow onlythis week → Monday through Sunday of the current weeknext week → next Monday through next Sundaynext N days → today through N days from nowthis month → today through end of current monthQuery ART Jira using mcp__atlassian__searchJiraIssuesUsingJql:
JQL: project = ART AND issuetype = Story AND summary ~ "Release 4." AND duedate >= "{date_from}" AND duedate <= "{date_to}" ORDER BY duedate ASC
Use cloudId: "redhat.atlassian.net" for the Atlassian MCP tool.
Extract versions from ticket summaries. ART release tickets use the format "Release X.Y.Z [YYYY-Mon-DD]" (e.g., "Release 4.21.18 [2026-Jun-02]"). Extract the X.Y.Z version from each matching ticket.
Filter to 4.14+ only (MicroShift GA'd at 4.14 — older versions have no MicroShift images).
Pass the resolved versions as explicit arguments to the script in Step 4.
If no ART tickets are found in the date range, report "No OCP releases scheduled in {range}."
Before running the script, query ART Jira for in-progress release tickets so the script can show ART ticket status in the Release Schedule table.
Call mcp__atlassian__searchJiraIssuesUsingJql with:
cloudId: "redhat.atlassian.net"jql: project = ART AND summary ~ "Release" AND status = "In Progress" ORDER BY duedate ASCfields: ["summary", "status", "duedate"]maxResults: 50From the results, build a JSON array:
[{"key": "ART-XXXXX", "summary": "Release 4.21.18 [2026-Jun-03]", "status": "In Progress", "due_date": "2026-06-03"}]
Write the JSON to a temp file and set ART_TICKETS_JSON env var:
echo '<json>' > /tmp/art_tickets.json
If mcp__atlassian__searchJiraIssuesUsingJql is not available, skip this step — the script degrades gracefully (shows None for ART tickets).
Map each release type to the corresponding precheck.sh subcommand and run via Bash:
| Release Type | Command |
|---|---|
Z, X, Y (default) | ART_TICKETS_JSON=/tmp/art_tickets.json bash ${SCRIPTS_DIR}/precheck.sh xyz [versions...] |
nightly | bash ${SCRIPTS_DIR}/precheck.sh nightly [version] |
EC | ART_TICKETS_JSON=/tmp/art_tickets.json bash ${SCRIPTS_DIR}/precheck.sh ecrc EC [version] |
RC | ART_TICKETS_JSON=/tmp/art_tickets.json bash ${SCRIPTS_DIR}/precheck.sh ecrc RC [version] |
IMPORTANT: Only append --verbose to the command if the user explicitly passed --verbose in their arguments. Do NOT add it by default.
Stderr contains progress messages — only display it if the script exits non-zero.
Multiple types (e.g., nightly EC RC): Run each command as a separate Bash call in parallel.
Display the script output verbatim — do not reformat, add tables, or change the layout. The scripts produce deterministic pre-formatted text. Do NOT add any commentary, explanation, or summary after the output.
OCPBUGS follow-up: If any version shows OCPBUGS in the output (e.g., 1 OCPBUGS), automatically re-run the command with --verbose to list the specific bugs. Only do this once — do not re-run if --verbose was already passed.
After displaying the output (including any --verbose re-run), if any OCPBUGS appeared in the results:
Collect OCPBUGS keys: Extract all unique OCPBUGS-XXXXX keys from the output (they appear in the Resolved OCPBUGS table or the one-line summaries).
Fetch each bug via MCP: For each unique key, call mcp__atlassian__getJiraIssue with:
cloudId: "redhat.atlassian.net"issueIdOrKey: the OCPBUGS key (e.g., "OCPBUGS-12345")fields: ["summary", "status", "labels", "issuetype", "priority"]responseContentFormat: "markdown"
Make all getJiraIssue calls in parallel (multiple tool calls in one message).Build enriched JSON: For each successfully fetched bug, build a JSON object:
{
"key": "OCPBUGS-12345",
"version": "4.21",
"summary": "<from MCP response: fields.summary>",
"status": "<from MCP response: fields.status.name>",
"labels": ["<from MCP response: fields.labels array>"],
"issuetype": "<from MCP response: fields.issuetype.name>",
"priority": "<from MCP response: fields.priority.name>"
}
The version field is the minor version (e.g., "4.21") from the evaluation that referenced the bug. If a bug appears in multiple versions, include one entry per version.
Render enrichment table: Pipe the JSON array through the enrichment script:
echo '<json_array>' | bash ${SCRIPTS_DIR}/precheck.sh enrich
Display the enrichment output after the main precheck output. This shows real summaries, statuses, release actions (release-required/release-not-required/needs-review), and updated recommendations.
If mcp__atlassian__getJiraIssue is not available, skip enrichment and note that the Atlassian MCP is required for OCPBUGS analysis.
If the script exits non-zero, display stderr and suggest:
GITLAB_API_TOKEN (for 4.20+ advisory reports)/microshift-release:pre-check this week # OCP versions releasing this week
/microshift-release:pre-check next week # OCP versions releasing next week
/microshift-release:pre-check today # OCP versions releasing today
/microshift-release:pre-check next 3 days # OCP versions in next 3 days
/microshift-release:pre-check 4.21.10 # specific version
/microshift-release:pre-check 4.20 4.21 4.22 # xyz eval for multiple streams
/microshift-release:pre-check 4.19.27 --verbose # specific version, detailed report
/microshift-release:pre-check nightly # nightly gaps for all active branches
/microshift-release:pre-check EC # latest EC status
/microshift-release:pre-check RC # latest RC status
/microshift-release:pre-check nightly EC RC # combined report
--json for raw JSON output when called directly (e.g., bash ${SCRIPTS_DIR}/precheck.sh xyz 4.21.10 --json)--verbose works for all types: detailed tables for xyz, NVR/nightly names for nightly, next versions for EC/RCgetJiraIssue