Flaky: update.rs an_archive_over_the_cap_fails_cleanly_and_keeps_the_build (Text file busy)

オープン
#16 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
linux, rust
領域
testing-qa

調査の方向性

The flaky assertion is at crates/daemon/tests/update.rs:138, where a stand-in build is written and then exec'd, so start by reading that test and its helper that writes the file. Reproduce by looping the test many times under parallel threads to see the ETXTBSY error. Done when the test no longer races, verified by a few hundred green runs at the core count.

索引モデルが issue の本文から書いたものです。

説明

bug ready-for-agent

Failed once on CI on Linux x86_64 (PR #13, run 45040063078) and passed on the re-run:

panicked at crates/daemon/tests/update.rs:138:41:
called `Result::unwrap()` on an `Err` value: Text file busy (os error 26)

ETXTBSY means a file was exec'd while a writable fd to it was still open, typically inherited by a child that another test thread forked at the same moment. Write the stand-in build to a temporary name and rename it into place before it's run, or keep the tests that write and exec files from running in parallel.

Done when the test can't hit this race. A loop of a few hundred runs under --test-threads at the core count stays green.

主要言語
Rust
スター
0
フォーク
0
平均マージ
3時間 30分
マージ済み PR(30日)
25

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

publicusr/singularity のほかの issue

publicusr/singularity の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。