Sender will fail to upload file artifact if it changes between creation and sending
まだ誰も着手していません。
評価
調査の方向性
まず、run.save_file() からキャッシュされたアーティファクト JSON を経由して sender() に至るまでのアーティファクトの流れを追跡し、チェックサムとファイル内容がいつ読み取られるかに注目します。issue にあるオフラインモードの手順を再現し、save_file() の後に変更されたファイルが BadDigest エラーなしで正常にアップロードされることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Description of Bug
When creating an Artifact via run.save_file(), the checksum is calculated and stored in the artifact JSON in the cache, along with the path to the file. If that file is then changed between the time when it was asked to be saved by the user, and when it is actually sent by the sender(), the checksum will no longer match the file, and so the upload will fail. You'll get back an error like:
E RuntimeError: uploading artifact 'test_file_artifact_6c49f901' to object storage failed for url '[https://simvue-ci.s3.amazonaws.com/'](https://simvue-ci.s3.amazonaws.com/%27) with status 400: <?xml version="1.0" encoding="UTF-8"?>
E <Error><Code>BadDigest</Code><Message>The SHA256 you specified did not match the calculated checksum.</Message></Error>
Steps To Reproduce
Steps to reproduce the behavior:
- Create a run in offline mode
- Create a file
- Do
run.save_file() - Change the contents of the file
- Run
sender()
Expected behavior
The file should be uploaded (I guess as it was when the user called save_file()
Actual Behaviour
Error due to mismatched checksum
Setup
- OS: Ubuntu 22.04
- Python version 3.10
- 主要言語
- Python
- スター
- 4
- フォーク
- 1
- 平均マージ
- 7日 6時間
- マージ済み PR(30日)
- 6
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
simvue-io/python-api のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
simvue-io/python-api#994 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
simvue-io/python-api#538 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
simvue-io/python-api#1000 · コメント 2 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
simvue-io/python-api#987 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
simvue-io/python-api#932 ·
simvue-io/python-api の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·