fix-failed-build
Fix a prompt-specified failed OneDev build when the request has no issue or pull request context.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fix a prompt-specified failed OneDev build when the request has no issue or pull request context.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Work on a OneDev pull request. Use when the user asks to review, merge, resolve merge conflicts, approve, request changes, address feedback, investigate or fix a failed build, improve, or continue PR work.
Implement work for a OneDev issue. Use when the user asks to start, pick up, or continue issue work.
Submit completed work for a OneDev issue. Use when the user asks to submit, complete, or finish issue work.
Submit completed work for an existing OneDev pull request. Use when the user asks to submit, complete, or finish PR work.
Operate OneDev issues, pull requests, builds, and projects with `tod`. Use for general OneDev queries and actions not covered by a more specific skill.
Compose a Git commit message that satisfies applicable OneDev branch and pull request requirements. Use when the user asks to draft or generate a commit message. Do not use when running work-on-pull-request, submit-issue-work, or submit-pull-request-work -- those workflows compose commit messages themselves.
| name | fix-failed-build |
| description | Fix a prompt-specified failed OneDev build when the request has no issue or pull request context. |
Inspect the failed build from the user's prompt and implement the fix in the current checkout.
tod is installed and configured.Run the workflow sequentially. On any unrecoverable command failure, missing required output, or failed precondition, report the command and error and stop. Do not continue the workflow.
Given a required <build-reference> from the user prompt (e.g. 123, #123,
myproject#123, or PROJ-123):
Resolve the build reference. Use the <build-reference> from the user
prompt. If the prompt does not provide a build reference, stop and ask for
the failed build reference.
Verify the checkout context. Do not prepare or switch checkouts.
Confirm that the current checkout is on a branch:
git symbolic-ref --short HEAD
If the command fails or reports a detached HEAD, stop and report that the workflow requires a branch checkout.
Confirm the current project:
tod project current
Save the output as <current-project>.
Gather and examine build evidence. Run:
tod build get <build-reference>
tod build get-log <build-reference>
Read the build detail and log content carefully to identify the failure.
Verify that the build belongs to <current-project> using the project
field in the build detail when present. If the build detail indicates a
different project, stop and report the mismatch.
Assess and fix the failure.
Dependency build is required to be successful but failed: <dependency-build-reference>,
get the dependency build detail. If the dependency build is cancelled, do
not investigate or fix it; report that the relevant dependency build was
cancelled. If its commit hash is the same as the current build,
investigate or fix the dependency build failure instead; repeat this
process for same-commit dependency build failures. If the dependency
build's commit hash differs from the current build, conclude that the
current build failure is caused by this dependency build.<report-name>: found problems with severity <severity-level> or higher,
fetch the referenced problems report:
tod build get-code-problems <build-reference> <report-name> <severity-level>
Problems may point to workspace files, 1-based line ranges, or
non-workspace artifacts used by the project..onedev-buildspec.yml when job configuration may be involved, and
run below command to get its schema if you need to modify it:
tod build get-spec-schema
tod build get-changes-since-success <build-reference>
Implement any needed code changes in the working copy. Do not stage, commit, push, or post comments in this workflow. If no code change is appropriate, report the reason.
Leave the result in the working copy. Run:
git status --short
Leave any fixes as uncommitted changes in the working copy on the current branch.