Openharmony ci

From openharmonyinsight/openharmony-skills · View interactive version

Openharmony ci is an AI agent skill from the GitHub repository openharmonyinsight/openharmony-skills. Use when investigating OpenHarmony PR CI status from `openharmony_ci` comments, DCP event IDs, build labels, artifact links, or CI log URLs.

How to use this skill

Skill file

OpenHarmony CI

Overview

Use the bundled script first. It resolves the latest DCP event from an OpenHarmony PR, summarizes per-job CI status, and fetches logs only for failed jobs unless explicitly told otherwise.

Permission Preflight

Primary Path

Run the bundled script:

python3 scripts/openharmony_ci.py --pr <pr_number> --repo <repo>

The script sets XDG_CACHE_HOME=/tmp/openharmony-ci-cache for oh-gc by default so it does not try to write under ~/.cache in sandboxed environments. If you already need a different cache location, set XDG_CACHE_HOME before invoking the script and the script will respect it.

Supported inputs:

Useful flags:

Only fetch logs for failed jobs. This is the default and should remain the normal mode.

Status only.

Fetch logs for every job that exposes artifacts or log links.

Machine-readable output.

Save downloaded log archives/files locally.

Expectations

Fallback

If the script cannot be used, fall back to the manual workflow:

  1. Extract the DCP event id from the latest openharmony_ci build-start comment.
  2. Query https://dcp.openharmony.cn/api/codecheckAccess/ci-portal/v1/event/<event_id>.
  3. If a failed job has Artifacts, query https://dcp.openharmony.cn/api/dataService/ci-portal/v1/files?directoryUrl=<ArtifactsPath>.
  4. Download the chosen log from https://cidownload.openharmony.cn/<path>.

Quick Examples

python3 scripts/openharmony_ci.py --pr 82764 --repo openharmony/arkui_ace_engine
python3 scripts/openharmony_ci.py --pr-url 'https://gitcode.com/openharmony/arkui_ace_engine/pull/82764' --json
python3 scripts/openharmony_ci.py --event-id 69c51ede64650f998b1d01a4 --log-mode auto
XDG_CACHE_HOME=/tmp/custom-oh-gc-cache python3 scripts/openharmony_ci.py --pr 82764 --repo openharmony/arkui_ace_engine
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.