simvue-io / simvue-io/python-api

Fetching config in file artifact snapshot breaks offline mode

Abierto
#885 1 comentario 0 reacciones 1 asignado Ver en GitHub

@wk9874 ya está trabajando en esto.

Desde el 20/10/2025.

bug
Lenguaje dominante
Python
Estrellas
4
Forks
1
Merge medio
5 d 8 h
PR fusionados (30 d)
4

Descripción

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:

  1. Create an offline mode run
  2. Remove internet connection
  3. 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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.