Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Durable run summary on disk plus semantic exit codes

未关闭
#643 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 5 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp
领域
build-system, cli

调研方向

先阅读 #391,了解现有的 Serilog 事件核心和 NDJSON 机器路径,然后检查缓存 .fallout/temp 的 CI 工作流。定义 .fallout/last-run.json 的 schema、稳定的诊断字段和退出代码表;完成的标准是每次运行都写入带版本的摘要,并且测试覆盖所有列出的失败类别。

由索引模型根据 Issue 内容生成。

描述

enhancement target/backlog
Problem

A run's result exists only as console text. Once the terminal buffer is gone, or when the caller is a program that did not capture stdout, there is no way to find out what happened except to run the build again. Exit codes are coarse as well: a restore failure, a compile error, and a failing test are indistinguishable to the caller.

Outcome

Every run leaves a machine-readable record on disk, and the exit code says what class of failure occurred.

  • A summary at a known path (proposal: .fallout/last-run.json) with per-target status, duration, the diagnostics that target produced, and the artifacts it wrote.
  • Diagnostics carry a stable identity — severity, code, file, line, message — rather than prose.
  • Distinct exit codes per failure class, documented and stable.
Acceptance criteria
  • Every run writes a schema-versioned summary to a known path, including runs that fail
  • Each failed target names the tool invocation that failed and the diagnostics it produced
  • Diagnostics carry code, file, and line wherever the underlying tool reports them
  • Exit codes distinguish at least: success, target failure, build-project load failure, invalid arguments, unmet tool requirement
  • The exit-code table is documented and covered by tests
Notes

This complements #391 (Serilog event core plus NDJSON machine path), which covers the live event stream but not a durable artifact or exit codes. .fallout/temp is already cached by every CI workflow, so a sibling path needs no new workflow plumbing.

主要语言
C#
星标
169
派生
21
平均合并
3 天 7 小时
30 天内合并 PR
9

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Fallout-build/Fallout 的其他 Issue

查看 Fallout-build/Fallout 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。