mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
* fix: PosixIO::call_command 中 fork 后 child 缺少 _exit 导致 unwind 进 parent 代码 当 execlp 失败时,child 分支走 `return std::nullopt`,该子进程会从 PosixIO::call_command 一路 unwind 回 AdbController::call_command 及其 caller,跟 parent 同时跑: - 在 child 地址空间副本中释放 m_callcmd_mutex(caller 处持有的 unique_lock) - 后续命中 `kill(m_child, SIGTERM)` 时 child 视角 m_child==0 → POSIX `kill(0, SIG)` 给整个进程组发信号 → 把 parent 一并杀掉 - 析构时双 close 同一 fd 号(kernel 已重用给别处)→ 关掉 parent 的 socket / log fd → 后续 read/write 错乱 查看 git 历史发现回归引入于 #7748(perf: update PosixIO::call_command, 2023-12)。 当时 perf 重构把 child 分支结尾的 `::exit(exit_ret)` 替换成 `Log.error(...) + return std::nullopt`。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * ci: 将第三方 action 钉到 commit SHA,符合 GitHub 安全建议 https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix: filenum_ctrl 中 std::filesystem 调用缺 error_code 导致 SIGABRT Windows 上 debug 截图被另一进程占用时,std::filesystem 多个调用会抛 filesystem_error。 异常未被 filenum_ctrl / save_debug_image / AbstractTask::run 任一层 捕获,沿任务栈一路冒到 MaaCore 顶层(issue #16233)。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: 清理 PosixIO 子分支 execlp 死赋值 按 Sourcery review 清掉死代码。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: restore release package workflow --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
1019 B
YAML
33 lines
1019 B
YAML
name: Submodule Update
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "50 21 * * *" # Runs daily at 21:50 UTC (before `Release Pipeline (Nightly OTA)`)
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-submodules:
|
|
name: Update Submodules
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'MaaAssistantArknights'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Update submodules
|
|
shell: bash
|
|
run: bash ./.github/scripts/sync-optional-submodules.sh --remote src/MAAUnified src/MaaMacGui src/maa-cli
|
|
|
|
- name: Commit and push changes
|
|
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # master as of 2026-05-06
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
message: "feat: Update Submodules MAAUnified, MaaMacGui, maa-cli
|
|
|
|
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
|
|
[skip changelog]"
|
|
branch: ${{ github.ref }}
|