simvue-io / simvue-io/python-api
Fetching config in file artifact snapshot breaks offline mode
@wk9874 y travaille déjà.
Depuis le 20/10/2025.
- Langage dominant
- Python
- Étoiles
- 4
- Forks
- 1
- Merge moyen
- 5 j 8 h
- PR mergées (30 j)
- 4
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.