simvue-io / simvue-io/python-api
Fetching config in file artifact snapshot breaks offline mode
@wk9874 がすでに取り組んでいます。
2025年10月20日 から。
- 主要言語
- Python
- スター
- 4
- フォーク
- 1
- 平均マージ
- 5日 8時間
- マージ済み PR(30日)
- 4
説明
Description of Bug
Inside FileArtifact, if snapshot=True, the UserConfiguration is fetched. However since mode is not passed through, it does it in online mode, which breaks offline mode as it continually tries to ping the server
Maybe mode should be a required arg in fetch()?
Also we should have a CI job which runs offline mode tests fully offline, ie there is no server URL or token available
Steps To Reproduce
Steps to reproduce the behavior:
- Create an offline mode run
- Remove internet connection
- Save a file artifact with snapshot = True
Expected behavior
File artifact should save locally with a copy of the file in cache
Actual Behaviour
Run breaks since it tries to obtain server version, as UserConfiguration thinks it is in online mode
Screenshots
If applicable, add screenshots to help explain your problem.
Setup
- OS: Ubuntu
- Python version: v3.10
Additional context
Add any other context about the problem here.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。